Ubuntu 软件包下载失败

Ubuntu 软件包下载失败

我在使用 ubuntu server 18.04 下载软件包时遇到问题。我以前用过。但是,我重新安装了操作系统,不记得上次是怎么修复的了。我记得上次我启用/下载了存储库。有人能帮我吗?

sudo apt install shorewall
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package shorewall 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 'shorewall' has no installation candidate

答案1

通过执行以下命令尝试查看该包是否shorewall以不同的名称列出:

sudo apt-cache search shorewall

您可能还想从 Google 搜索存储库shorewall并将其添加到您的/etc/apt/sources.list文件中

你可以试试:https://packages.ubuntu.com/trusty/all/shorewall/download并在那里下载适用于所有架构的 Shorewall .deb 包,然后使用 dpkg 安装

你还应该看看http://www.shorewall.org/download.htm因为他们也列出了不同的要求

相关内容