当包(来自 AUR)已经安装时,有没有办法让 yaourt 不重新安装
$ yaourt -Q jruby
local/jruby 1.7.3-1
Run Code Online (Sandbox Code Playgroud)
但不知何故
$ yaourt --needed --noconfirm -S jruby
Run Code Online (Sandbox Code Playgroud)
保持重新下载(即使之前已经下载过)并重新安装 jruby
我正在尝试升级我的系统,我什至尝试使用另一个镜像,但它总是显示signature from <email> unknown trust,[package-file] is corrupted (invalid or corrupted package (PGP signature))如何解决此问题?
$ sudo pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
tokumx is up to date
:: Starting full system upgrade...
:: Replace attica with extra/attica-qt4? [Y/n] y
:: Replace dirmngr with core/gnupg? [Y/n] y
:: Replace gtk-theme-menda with extra/menda-themes? [Y/n] y
:: Replace lxpolkit with …Run Code Online (Sandbox Code Playgroud) 是否有一个命令行程序可以检查一个或多个 torrent 文件的可用播种机(和对等点)的数量,可以提供如下输出:
# peercount *.torrent
12/136 a.torrent
0/3 b.torrent
40/2 c.torrent
Run Code Online (Sandbox Code Playgroud)
12、0 和 40 为播种机数量
136、3 和 2 为对等点数
a、b 和 c 为 torrent 文件名
我需要这个来删除几乎没有机会完成的 torrent 文件
nemo将所有文件视为Binary (application/octet-stream),因此发生了以下情况:
.mkv、.mp4、.torrent、任何内容)都失去了与任何程序的关联.pdf文件都无法打开evince然而,它们是 pdf 文件:
\n\n $ file bla.pdf\n bla.pdf: PDF document, version 1.4\nRun Code Online (Sandbox Code Playgroud)\n\nevince bla.pdf显示:
Unable to open document \xe2\x80\x9cfile:///tmp/bla.pdf\xe2\x80\x9d.\nFile type application/octet-stream type (application/octet-stream) is not supported\nRun Code Online (Sandbox Code Playgroud)\n\n另一个例子:
\n\n$ file bla.mkv \nbla.mkv: Matroska data\nRun Code Online (Sandbox Code Playgroud)\n\n但是当我右键单击nemo>属性时,它显示为:

例如,我有这个命令:
lxc launch ubuntu:18.04 memsql1
lxc exec memsql1 -- wget -O - 'https://release.memsql.com/release-aug2018.gpg' 2>/dev/null | sudo apt-key add - && apt-key list
lxc exec memsql1 apt-cache policy apt-transport-https
lxc exec memsql1 -- apt -y install apt-transport-https
lxc exec memsql1 -- echo "deb [arch=amd64] https://release.memsql.com/production/debian memsql main" | sudo tee /etc/apt/sources.list.d/memsql.list
Run Code Online (Sandbox Code Playgroud)
^ 上面的命令(第二行也是最后一行)将通过管道传输到主机而不是容器。我知道我可以lxc exec memsql1 bash在 bash 中使用然后运行命令,但我想用这些命令制作脚本。
我正在使用 Arch Linux (Linux 3.13),当我运行时qtcreator,它崩溃了,其他基于 Qt 的软件也会发生同样的情况:
$ qtcreator
"Qt Warning - invalid keysym: dead_actute"
Segmentation fault (core dumped)
$ qtalarm
"Qt Warning - invalid keysym: dead_actute"
Segmentation fault (core dumped)
Run Code Online (Sandbox Code Playgroud)
我所有的“qt”安装包是:
gambas3-gb-qt4 3.5.2-1
gambas3-gb-qt4-ext 3.5.2-1
gambas3-gb-qt4-opengl 3.5.2-1
gambas3-gb-qt4-webkit 3.5.2-1
kdebindings-qtruby 4.12.1-1
kdebindings-smokeqt 4.12.1-1
libdbusmenu-qt 0.9.2-2
phonon-qt4 4.7.1-1
polkit-qt 0.103.0-2
poppler-qt4 0.24.5-1
pyqt4-common 4.10.3-1
python2-pyqt4 4.10.3-1
qt4 4.8.5-7
qt5-base 5.2.0-3
qt5-declarative 5.2.0-3
qt5-graphicaleffects 5.2.0-3
qt5-imageformats 5.2.0-3
qt5-jsbackend 5.1.1-5
qt5-location 5.2.0-3
qt5-multimedia 5.2.0-3
qt5-qtsystems-git 20130509-1
qt5-quick1 5.2.0-3
qt5-quickcontrols 5.2.0-3 …Run Code Online (Sandbox Code Playgroud) 我已使用更改用户(user1)密码 root
passwd user1
Run Code Online (Sandbox Code Playgroud)
但是当我尝试ssh user@localhost或通过gdm或tty总是失败时
该journalctl日志显示
Failed password for user1 from ::1
FAILED LOGIN 1 FROM tty3 FOR user1, Authentication failure
pam_unix(gdm-password:auth): conversation failed
pam_unix(gdm-password:auth): auth could not identify password for [user1]
Run Code Online (Sandbox Code Playgroud)
我正在使用全新的 Arch Linux 安装(64 位)
我们可以在单个接口上设置多个 IP 地址,例如使用 NetworkManager:

如何与此 PC 外部建立任何连接以使用不同的 IP?
例如,如果我有 8 个 IP 地址 ( 10.7.4.x, 10.7.4.x+1, 10.7.4.x+2, ...),我想使用不同的 IP 连接每个目标地址,使用随机 IP 或顺序 mod(当目标 IP mod 8 = 0 时,然后使用x, 当目标 mod 时8 = 1,然后使用x+1,依此类推)
我一直在使用enp7s0(以太网)和wlp5s0(wifi),但还有一些我不认识的其他网络接口在 dmesg 中定期显示。它们是什么?如何删除它们?
$ sudo dmesg -w
[ 5400.052789] device veth517d19f entered promiscuous mode
[ 5400.052861] br-b6747aa2af8f: port 1(veth517d19f) entered blocking state
[ 5400.052862] br-b6747aa2af8f: port 1(veth517d19f) entered forwarding state
[ 5400.213261] eth0: renamed from veth244244e
[ 5400.222378] IPv6: ADDRCONF(NETDEV_CHANGE): veth517d19f: link becomes ready
[ 5568.791784] veth244244e: renamed from eth0
[ 5568.810950] br-b6747aa2af8f: port 1(veth517d19f) entered disabled state
[ 5568.830903] br-b6747aa2af8f: port 1(veth517d19f) entered disabled state
[ 5568.831278] device veth517d19f left promiscuous mode
[ 5568.831280] br-b6747aa2af8f: …Run Code Online (Sandbox Code Playgroud) arch-linux ×3
bash ×1
bittorrent ×1
docker ×1
htop ×1
lxc ×1
manjaro ×1
mime-types ×1
nemo ×1
networking ×1
pacman ×1
pipe ×1
pop-os ×1
qt4 ×1
qtcreator ×1
shell-script ×1
ubuntu ×1
yaourt ×1