当我这样做时,我收到以下错误
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.
谁能告诉我问题出在哪里
编辑: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
答案1
首先确保它有效:
sudo rm -rf /var/lib/apt/lists/*
sudo rm -rf /etc/apt/sources.list.d/*
sudo apt-get update
如果不起作用,算了吧,除了跑步,我没有找到其他选择
sudo apt-get update --allow-unauthenticated
这是一个安全风险,但如果您已做好准备,您可以使用--allow-unauthenticated
标志来执行其他一些 apt 命令。