错误信息:下载软件仓库信息失败,大大看看是什么原因?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
xthncn
帖子: 58
注册时间: 2011-05-10 22:01

错误信息:下载软件仓库信息失败,大大看看是什么原因?

#1

帖子 xthncn » 2018-12-01 14:29

sudo apt-get update 出现以下信息,软件更新器不能更新软件。这是什么原因?:The repository 'cdrom://Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725) bionic Release' does not have a Release file., W:Updating from such a repository can't be done securely, and is therefore disabled by default., W:See apt-secure(8) manpage for repository creation and user configuration details., W:GPG error: http://download.opensuse.org/repositori ... untu_18.10 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0FAD31CA8719FCE4, E:The repository 'http://download.opensuse.org/repositori ... untu_18.10 Release' is not signed.
头像
astolia
论坛版主
帖子: 6439
注册时间: 2008-09-18 13:11

Re: 错误信息:下载软件仓库信息失败,大大看看是什么原因?

#2

帖子 astolia » 2018-12-01 19:51

编辑/etc/apt/sources.list,把开头有cdrom://的那行前面加上#注释掉
还有就是你添加了 http://download.opensuse.org/repositori ... untu_18.10 源,但没有添加相应的公钥,导致这个源无法验证有效性。如果你确实相信这个源中的软件不会破坏你的系统,执行下面的命令来添加公钥

代码: 全选

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0FAD31CA8719FCE4
xthncn
帖子: 58
注册时间: 2011-05-10 22:01

Re: 错误信息:下载软件仓库信息失败,大大看看是什么原因?

#3

帖子 xthncn » 2018-12-01 22:50

感谢帮主的指导,问题解决,还请问添加的 http://download.opensuse.org/repositori ... untu_18.10的源在那个文件下,导入秘钥后还要不要注销这个源。
头像
astolia
论坛版主
帖子: 6439
注册时间: 2008-09-18 13:11

Re: 错误信息:下载软件仓库信息失败,大大看看是什么原因?

#4

帖子 astolia » 2018-12-03 10:35

要么写在/etc/apt/sources.list文件里,要么在/etc/apt/sources.list.d下面的某个文件里。
导入公钥是让这个源可以用,注销源是让它不能用,你到底想干啥?
回复