Debian-“警告:以下软件包的不可信版本将被安装!”


9

当我尝试安装或更新任何软件包时,我得到:

Untrusted packages could compromise your system's security. You should only proceed with the installation if you are certain that this is what you want to do.

我强烈怀疑这与我更新时出现的错误有关:

$ sudo aptitude update
Get: 1 http://ftp.us.debian.org wheezy InRelease [208 kB]
Get: 2 http://debian.lcs.mit.edu wheezy InRelease [208 kB]
Ign http://ftp.us.debian.org wheezy InRelease
Hit http://ftp.us.debian.org wheezy/main amd64 Packages/DiffIndex
Hit http://ftp.us.debian.org wheezy/contrib amd64 Packages/DiffIndex
Hit http://ftp.us.debian.org wheezy/non-free amd64 Packages/DiffIndex
Hit http://ftp.us.debian.org wheezy/contrib Translation-en
Hit http://ftp.us.debian.org wheezy/main Translation-en
Hit http://ftp.us.debian.org wheezy/non-free Translation-en
Get: 3 http://debian.lcs.mit.edu wheezy-updates InRelease [116 kB]
Ign http://debian.lcs.mit.edu wheezy InRelease
Ign http://debian.lcs.mit.edu wheezy-updates InRelease
Hit http://debian.lcs.mit.edu wheezy/main Sources/DiffIndex
Hit http://debian.lcs.mit.edu wheezy/main amd64 Packages/DiffIndex
Hit http://debian.lcs.mit.edu wheezy/main Translation-en
Ign http://ftp.us.debian.org wheezy/contrib Translation-en_US
Ign http://debian.lcs.mit.edu wheezy-updates/main Sources/DiffIndex
Ign http://debian.lcs.mit.edu wheezy-updates/main amd64 Packages/DiffIndex
Ign http://ftp.us.debian.org wheezy/main Translation-en_US
Ign http://ftp.us.debian.org wheezy/non-free Translation-en_US
Hit http://debian.lcs.mit.edu wheezy-updates/main Sources
Hit http://debian.lcs.mit.edu wheezy-updates/main amd64 Packages
Ign http://debian.lcs.mit.edu wheezy/main Translation-en_US
Ign http://debian.lcs.mit.edu wheezy-updates/main Translation-en_US
Ign http://debian.lcs.mit.edu wheezy-updates/main Translation-en
Fetched 531 kB in 1s (304 kB/s)
W: GPG error: http://ftp.us.debian.org wheezy InRelease: Unknown error executing gpgv
W: GPG error: http://debian.lcs.mit.edu wheezy InRelease: Unknown error executing gpgv
W: GPG error: http://debian.lcs.mit.edu wheezy-updates InRelease: Unknown error executing gpgv

我尝试重新安装钥匙圈:( sudo aptitude reinstall debian-archive-keyring 令人惊讶的是,这不会引起警告)。



Answers:


19

请尝试以下方法:

打开终端并运行以下命令:

sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get clean
sudo apt-get update

您真的不认为我已经忽略这个问题已有16个月了吗?我不确定这是否行得通,因为我再也看不到问题了。我可能只是重建了,但不确定,因为我什至不记得它是哪台机器。
user1794469 2014年

7
@ user1794469。该网站应该对所有人都有用,而不仅仅是您。因此,对未解决问题的最新答案是完全可以接受的,因为它们可能会帮助他人。就是说,如果试图解释这些命令的作用,那么此答案的质量会更好。
TRiG 2014年

从压缩升级到喘息时为我工作。非常感谢!
Tobia 2015年

甚至得到一个不受信任的警告时,而在Windows 10的“的Windows子系统的Linux的安装混帐混帐与核心工作对我来说
wruckie

4

阅读APZ的答案后,但想使用aptitude,我成功执行了以下命令:

# clean the obsolete cache
sudo aptitude clean
# update the package information
sudo aptitude update
# install or upgrade the packages
sudo aptitude install <list of packages to upgrade/install>

该错误可能与过时的apt缓存内容有关,但是我得到的错误消息有些不同:

警告:以下软件包的不受信任版本将被安装!


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.