首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Debian -“警告:将安装下列软件包的不可信版本!”

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

Server Fault用户
提问于 2012-11-02 14:43:56
回答 3查看 6.2K关注 0票数 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.

我强烈怀疑这与我在更新中遇到的错误有关:

代码语言:javascript
复制
$ 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 (这令人惊讶地没有引起警告)。

EN

回答 3

Server Fault用户

回答已采纳

发布于 2014-01-30 07:28:54

请试试这个:

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

代码语言:javascript
复制
sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get clean
sudo apt-get update
票数 19
EN

Server Fault用户

发布于 2014-12-13 00:26:42

在阅读了APZ的答复之后,但是想要使用智能,我成功地执行了以下命令:

代码语言:javascript
复制
# 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缓存内容有关,但我得到的错误消息有点不同:

警告:将安装下列软件包的不可信版本!

票数 4
EN

Server Fault用户

发布于 2012-11-02 17:30:49

你似乎被Debian #657561击中了。您可以尝试移动有问题的/var/lib/apt/list/*InRelease文件和重新运行apt-get更新。

票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/444798

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档