无法验证来自此类存储库的数据

Pet*_*ter 12 repository

当我这样做时,我收到以下错误

sudo apt-get update


Reading package lists... Done
W: The repository 'http://download.opensuse.org/repositories/home:    /Horst3180/xUbuntu_16.04  Release' does not have a Release file.
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)

谁能告诉我可能是什么问题

编辑: cat /etc/apt/sources.list 的输出

deb http://archive.ubuntu.com/ubuntu xenial main
deb http://security.ubuntu.com/ubuntu/ xenial-security main
deb http://archive.ubuntu.com/ubuntu xenial-updates main
Run Code Online (Sandbox Code Playgroud)

Oli*_*jon 22

首先确保,这是有效的:

sudo rm -rf /var/lib/apt/lists/*
sudo rm -rf /etc/apt/sources.list.d/*
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

如果它不起作用,算了,我没有为你找到任何其他选择,除了跑步

sudo apt-get update --allow-unauthenticated
Run Code Online (Sandbox Code Playgroud)

这是一个安全风险,但如果你准备好了,你可以将--allow-unauthenticated标志用于其他一些 apt 命令。

  • 在调用 *update* 之前删除这两个文件是可行的。 (2认同)