我有 Ubuntu 16.04 LTS,并且在初始设置中安装了一些东西,但是东西太多了,我不记得在哪些步骤上搞砸了才出现apt get update
这个错误:
Get:48 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [4.712 B]
Reading package lists... Done
W: GPG error: http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_16.04 Release: The following signatures were invalid: KEYEXPIRED 1496576244
E: The repository 'http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_16.04 Release' is not signed.
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.
我该如何修复这些错误?
答案1
你必须下载密钥,http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_16.04
否则你将不得不禁用它
在 Ubuntu 软件中心,你可以进入edit
菜单,然后选择software sources
选项other software
卡并将其从那里删除
或者查看/etc/apt/sources.list
它是否列在那里并将其注释掉“#”或删除该条目的行/行...如果您在那里没有看到它,请查找它/etc/apt/sources.list.d
并找到该行所在的文件(它可能在单独的文件中)将其删除。