所以我有lubuntu 20.10 (其中我是新的),当我尝试安装一个软件包时,例如
sudo apt install curl
我得到了一个错误
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'curl' has no installation candidate
当我试图安装其他软件包时,也会发生同样的错误。
一些较老的论坛帖子建议做
sudo apt-get update
但这会返回一个错误
Get:1 http://fi.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 http://ppa.launchpad.net/pinta-maintainers/pinta-stable/ubuntu groovy InRelease
Ign:4 http://ppa.launchpad.net/webupd8team/java/ubuntu groovy InRelease
Hit:5 https://download.mono-project.com/repo/debian stable-buster InRelease
Err:6 http://ppa.launchpad.net/webupd8team/java/ubuntu groovy Release
404 Not Found [IP: 2001:67c:1560:8008::19 80]
Err:1 http://fi.archive.ubuntu.com/ubuntu xenial InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu groovy 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://fi.archive.ubuntu.com/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://fi.archive.ubuntu.com/ubuntu xenial 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.
有人知道怎么解决这个问题吗?
发布于 2021-02-01 16:30:50
用于安装curl的命令是正确的。请尝试禁用所有其他非标准存储库20.10,然后尝试sudo apt update
和sudo apt install curl
。
https://askubuntu.com/questions/1312734
复制相似问题