相关疑难解决方法(0)

无法安装任何东西,依赖错误

我对 Linux/命令行的东西非常陌生,所以请原谅我的无知。

每次我尝试使用安装任何东西时sudo apt-get install ...都会出现依赖错误。我正在尝试在我的机器上安装 OpenSSH Server 和 GitLab,每当我输入命令时,我似乎都会收到这样的依赖错误:

sudo apt-get install openssh-server
reading package lists... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 openssh-server : Depends: libwrap0 (>= 7.6-4~) …
Run Code Online (Sandbox Code Playgroud)

server apt dependencies git software-installation

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

/var/cache/apt-show-versions/files: 没有这样的文件或目录

当我运行时,sudo apt-get update结果如下:

can't create /var/cache/apt-show-versions/files: No such file or directory at /usr/bin/apt-show-versions line 196.
E: Problem executing scripts APT::Update::Post-Invoke-Success 'test -x /usr/bin/apt-show-versions || exit 0 ; apt-show-versions -i'
E: Sub-process returned an error code
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?

输出ls -ld /var/cache/apt-show-versions

ls: cannot access /var/cache/apt-show-versions: No such file or directory
Run Code Online (Sandbox Code Playgroud)

apt 14.04

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

我怎样才能摆脱这些 NO_PUBKEY 错误?

sudo apt-get update最后给了我这个错误。我正在使用 Y PPA Manager,现在似乎所有 PPA 都可以,但问题(我认为)出在官方 Ubuntu 存储库上:

W: GPG error: http://repository.spotify.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 13B00F1FD2C19886
W: GPG error: http://archive.ubuntu.com wily InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://archive.canonical.com wily InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32 …
Run Code Online (Sandbox Code Playgroud)

updates apt repository gnupg

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

我的 ubuntu 没有正确更新

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.playonlinux.com precise InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 73F0D6E88E3D6C3A
W: Failed to fetch http://deb.playonlinux.com/dists/precise/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 73F0D6E88E3D6C3A
W: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)

updates

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

“http://download.opensuse.org/repositories/home:/strycore/xUbuntu_16.04 ./ Release”未签名

W: GPG error: http://download.opensuse.org/repositories/home:/strycore/xUbuntu_16.04 ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2F7F0DA5FD5B64B9
W: The repository 'http://download.opensuse.org/repositories/home:/strycore/xUbuntu_16.04 ./ Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Run Code Online (Sandbox Code Playgroud)

我试图摆脱上面似乎与释放密钥和 opensuse url 相关的错误消息。

什么是正确的解决方案?

apt gnupg

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

公钥乱了?

更新系统时出现此错误:

W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 241FE6973B765FAE

有什么可以解决的吗?

updates 14.04

2
推荐指数
1
解决办法
1797
查看次数

`apt-get update` 导致此错误的原因是什么

什么时候sudo apt-get update发出这个错误?

W: GPG error: http://download.virtualbox.org trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54422A4B98AB5139
Run Code Online (Sandbox Code Playgroud)

事件顺序:

安装 14.04(可信赖),从中安装 VirtualBoxUbuntu Software Centre并发现它不起作用,使用 卸载 VirtualBox Ubuntu Software Centrevirtualbox.org使用链接中的 Debian 说明进行安装,发出apt-get update.

virtualbox.org,Debian 说明

编辑:有一个回应表明这个问题在某个链接上得到了回答。我阅读了链接中的答案。这个问题不一样。在链接中,我们看到了如何解决错误。这个问题是不同的,因为它要求原因。它不要求解决。这是我对上述“最简单的解决方法”链接的回应。如有必要,我将检查评论并修改此编辑。

apt virtualbox

2
推荐指数
1
解决办法
6853
查看次数

16.04:无法更新 OwnCloud

我对 OwnCloud 桌面版本的更新有疑问:

teddy@Yoga-2:~$ sudo apt-get update --allow-unauthenticated
[sudo] password for teddy: 
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Ign:2 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_15.10  InRelease
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [94,5 kB]
Get:4 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_15.10  Release [1023 B]
Get:5 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_15.10  Release.gpg [189 B]
Ign:5 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_15.10  Release.gpg
Hit:6 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_15.10  Packages
Hit:7 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:8 http://archive.ubuntu.com/ubuntu xenial-security InRelease [94,5 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [242 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [238 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [130 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [127 kB]
Fetched …
Run Code Online (Sandbox Code Playgroud)

update-manager repository owncloud-client 16.04

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

Ubuntu 18.04.1 LTS 更新不起作用 - 没有发布文件/GPG 错误

终端更新(截图)

当我尝试更新运行 Ubuntu 18.04.1 LTS 的笔记本电脑时,我使用这些命令sudo apt updatesudo apt-get update并且每次收到此消息时:

E: The repository 'cdrom://Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426) bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: https://dl.bintray.com/resin-io/debian stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY …
Run Code Online (Sandbox Code Playgroud)

package-management apt

1
推荐指数
1
解决办法
2万
查看次数