无法从 apt 安装任何软件包(软件包不可用)

无法从 apt 安装任何软件包(软件包不可用)

在过去的一周中,我在尝试安装许多软件包时都遇到了这个问题apt

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package **package_name** 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


每个包都会有这个问题。

顺便提一下。我已经尝试了这里提到的所有解决方案 “但被另一个包引用了。” - 找到那个包

但什么都不起作用。我真的被这个包裹的事情困住了。我的系统。

Description:    Ubuntu 20.04.3 LTS
Release:    20.04
Codename:   focal
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libwxgtk3.0-dev 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 'libwxgtk3.0-dev' has no installation candidate

答案1

该软件包libwxgtk3.0-dev不适用于 Ubuntu 20.04。

我猜你的项目文档是为 Ubuntu 18.04 编写的,该包名称存在

不过,你可以使用替换包libwxgtk3.0-gtk3-dev
注意:它是universe存储库,您可能需要启用它:

sudo apt-add-repository universe

对于此类问题,https://packages.ubuntu.com/是一个开始包装研究的好网站。

相关内容