小编Kok*_*zzu的帖子

已安装时使yaourt不重新安装

当包(来自 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

arch-linux package-management yaourt

6
推荐指数
1
解决办法
2331
查看次数

升级时吃豆子总是失败(未知信任)

我正在尝试升级我的系统,我什至尝试使用另一个镜像,但它总是显示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)

pacman manjaro

6
推荐指数
1
解决办法
6179
查看次数

检查种子种子数量的命令行程序

是否有一个命令行程序可以检查一个或多个 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 文件

bittorrent

5
推荐指数
0
解决办法
1485
查看次数

为什么在 nemo 中所有文件都被检测为 application/octet-stream?

nemo将所有文件视为Binary (application/octet-stream),因此发生了以下情况:

\n\n
    \n
  • 所有文件(.mkv.mp4.torrent、任何内容)都失去了与任何程序的关联
  • \n
  • 所有.pdf文件都无法打开evince
  • \n
\n\n

然而,它们是 pdf 文件:

\n\n
    $ file bla.pdf\n    bla.pdf: PDF document, version 1.4\n
Run Code Online (Sandbox Code Playgroud)\n\n

evince bla.pdf显示:

\n\n
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\n
Run Code Online (Sandbox Code Playgroud)\n\n

另一个例子:

\n\n
$ file bla.mkv \nbla.mkv: Matroska data\n
Run Code Online (Sandbox Code Playgroud)\n\n

但是当我右键单击nemo>属性时,它显示为:

\n\n

                               在此输入图像描述

\n\n
    \n
  • 造成这个问题的可能原因是什么?
  • \n
  • 是否有任何我应该重新安装的软件包?
  • \n
\n\n

信息

\n\n
    \n
  • 我正在使用 64 位 ArchLinux。
  • \n
  • 存在 …

mime-types nemo

5
推荐指数
0
解决办法
2481
查看次数

如何使用管道运行 lxc exec 命令?

例如,我有这个命令:

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 中使用然后运行命令,但我想用这些命令制作脚本。

bash pipe shell-script lxc

5
推荐指数
1
解决办法
4891
查看次数

如何找出我所有 Qt 程序的问题?

我正在使用 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)

arch-linux qt4 qtcreator

4
推荐指数
1
解决办法
2968
查看次数

一个用户无法登录,修改密码无效

我已使用更改用户(user1)密码 root

passwd user1
Run Code Online (Sandbox Code Playgroud)

但是当我尝试ssh user@localhost或通过gdmtty总是失败时

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 位)

authentication arch-linux

4
推荐指数
1
解决办法
7489
查看次数

Linux 中单个接口上的多个 IP 源

我们可以在单个接口上设置多个 IP 地址,例如使用 NetworkManager:

多个IP

如何与此 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,依此类推)

networking load-balancing

3
推荐指数
1
解决办法
8252
查看次数

内核日志中出现的这些意外网络设备是什么?

我一直在使用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)

ubuntu docker network-interface pop-os

3
推荐指数
1
解决办法
2851
查看次数

如何切换htop选项卡?

我最近看到htop上有新的“I/O”(蓝色的),如何切换到该选项卡? 在此输入图像描述

htop

3
推荐指数
1
解决办法
907
查看次数