因此,我有 lubuntu 20.10(我是新手),当我尝试安装软件包时,例如使用 curl
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.
有人知道怎么修这个东西吗?
答案1
您用于安装 curl 的命令是正确的。请尝试禁用 20.10 的所有其他非标准存储库,然后sudo apt update
尝试sudo apt install curl
。