6

apt update 异常

 11 months ago
source link: https://lunashu.org/apt-update-yi-chang/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
01 10月 2023 •

apt update 异常

在Server上执行 apt update 或者 apt-get update时 出现报错:

E: Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/debian/ buster: /etc/apt/keyrings/docker.gpg !=
E: The list of sources could not be read.

此时关注第一条报错的链接域名

比如我的报错中的域名是download.docker.com

下一步执行搜索

$ grep "download.docker.com" /etc/apt/sources.list.d/*

注意结果文件,cd/etc/apt/sources.list.d目录,删除上述出现的文件即可


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK