在ubuntu中一输入sudo apt-get update就显示下列错误是怎么回事

2025-03-26 14:03:06
推荐回答(2个)
回答1:

方法1:
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update

方法2:
gpg –keyserver keyserver.ubuntu.c –recv 3E5C1192
gpg –export –armor 3E5C1192 | sudo apt-key add -
sudo apt-get update

方法3:
sudo sh -c "echo 'Dir::Ignore-Files-Silently:: \"(.save|.distupgrade)$\";' > /etc/apt/apt.conf.d/99ignoresave"

方法4:
Go into Software Sources > Other Software and remove the conflicting ppa's.
(我用的服务器,没图形界面,这个方法就不知道有效没了,见评论里说是有效的。)

方法5:
sudo apt-get -f install

回答2:

/etc/apt/sources.list配置系统更新源文件明显边错误能