运行 sudo apt update 并显示错误

运行 sudo apt update 并显示错误

我正在运行 21.04 当我运行更新时,它显示几个错误。我该如何纠正它们?或者应该忽略它们?谢谢 Cliff

结果apt update

Ign:9 http://linux.dropbox.com/ubuntu eoan InRelease      
Err:10 http://linux.dropbox.com/ubuntu eoan Release
  404  Not Found [IP: 13.227.39.129 80]
Err:8 http://archive.canonical.com/ubuntu bionic InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
Reading package lists... Done
E: The repository 'http://linux.dropbox.com/ubuntu eoan Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.canonical.com/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://archive.canonical.com/ubuntu bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

答案1

假设您正在运行 Ubuntu 21.04...

笔记:您的系统过去可能没有正确更新/升级。

笔记:如果您对这些说明有任何困难,请停止并寻求帮助。

编辑两个文件...

sudo -H gedit /etc/apt/sources.list

deb http://us.archive.ubuntu.com/ubuntu/ hirsute main universe restricted multiverse
deb http://archive.canonical.com/ubuntu hirsute partner

像上面两行所示,将bionic改为hirsute。

保存文件并退出 gedit。

sudo -H gedit /etc/apt/sources.list.d/dropbox.list

deb http://linux.dropbox.com/ubuntu disco main

像上行所示,将 eoan 更改为 disco。

保存文件并退出 gedit。

sudo apt update

相关内容