6
apt update 异常
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.
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
目录,删除上述出现的文件即可
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK