我还有一个开放的帖子Bitnami 的支持论坛我已经安装了Bitnami 认证的 WordPress Multisite通过 AWS 市场。
我正在尝试安装 webmin(或任何软件包),但无法
通过 SSH,我运行:
sudo apt-get update
sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libnet-ssleay-perl 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
Package libauthen-pam-perl 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
Package libio-pty-perl 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
Package apt-show-versions 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
Package python 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 'libnet-ssleay-perl' has no installation candidate
E: Package 'libauthen-pam-perl' has no installation candidate
E: Package 'libio-pty-perl' has no installation candidate
E: Package 'apt-show-versions' has no installation candidate
E: Package 'python' has no installation candidate
我尝试了许多修复方法,但似乎 /etc/apt/sources.list 中有些东西需要调整……奇怪的是这个文件是空的。
我也尝试过
nano /etc/apt/sources.list
deb http://download.webmin.com/download/repository sarge contrib
...然后..
sudo apt-get -f install webmin
...输出
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
webmin : Depends: libnet-ssleay-perl but it is not installable
Depends: libauthen-pam-perl but it is not installable
Depends: libio-pty-perl but it is not installable
Depends: apt-show-versions but it is not installable
Depends: python but it is not installable
E: Unable to correct problems, you have held broken packages.
先感谢您!
答案1
您是否尝试过填充 /etc/apt/sources.list ?这是我在 aws 中针对 16.04 的 fie:
cat /etc/apt/sources.list | grep -v '#'
德布http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/xenial 主要受限 deb-srchttp://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ xenial 主要受限
德布http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/xenial-updates 主要受限 deb-src http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/xenial-updates 主要受限
德布http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/xenial universe deb-srchttp://eu-west-2.ec2.archive.ubuntu.com/ubuntu/xenial 宇宙 debhttp://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ xenial-updates universe deb-src http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/xenial-更新宇宙
德布http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/xenial multiverse deb-srchttp://eu-west-2.ec2.archive.ubuntu.com/ubuntu/xenial multiverse debhttp://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ xenial-updates 多元宇宙 deb-src http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/xenial-更新多元宇宙
德布http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/xenial-backports 主要受限宇宙多元宇宙 deb-src http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/xenial-backports 主要受限宇宙多元宇宙
德布http://security.ubuntu.com/ubuntuxenial-security 主要受限 deb-srchttp://security.ubuntu.com/ubuntuxenial-security 主要受限 debhttp://security.ubuntu.com/ubuntuxenial-security universe deb-srchttp://security.ubuntu.com/ubuntuxenial-security universe debhttp://security.ubuntu.com/ubuntuxenial-security multiverse deb-srchttp://security.ubuntu.com/ubuntuxenial-安全多元宇宙
跑步
apt-cache madison libnet-ssleay-perl libauthen-pam-perl libio-pty-perl apt-show-versions python
显示所选存储库中可用的软件包
libnet-ssleay-perl | 1.72-1build1 | http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 Packages libauthen-pam-perl | 0.16-3build2 | http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages libio-pty-perl | 1:1.08-1.1build1 | http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 Packages apt-show-versions | 0.22.7 | http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages apt-show-versions | 0.22.7 | http://gb.archive.ubuntu.com/ubuntu xenial/universe i386 Packages python | 2.7.12-1~16.04 | http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages python | 2.7.11-1 | http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
希望这会有所帮助。谢谢