AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1010789
Accepted
Ryan Dorn
Ryan Dorn
Asked: 2018-03-01 15:04:46 +0800 CST2018-03-01 15:04:46 +0800 CST 2018-03-01 15:04:46 +0800 CST

Ubuntu 16.04 + Bitnami WP AWS+ Webmin 安装失败 + E: Package [] has no installation Candidate

  • 772

我在Bitnami 的支持论坛上也有一个开放线程。我已经通过 AWS 市场安装了由 Bitnami 认证的 WordPress 多站点。

我正在尝试安装 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.

先感谢您!

package-management server apt webmin
  • 1 1 个回答
  • 2741 Views

1 个回答

  • Voted
  1. Best Answer
    bogdan
    2018-03-02T03:19:24+08:002018-03-02T03:19:24+08:00

    您是否尝试填充 /etc/apt/sources.list ?这是我在 aws 中的 16.04:

    cat /etc/apt/sources.list | grep -v '#'
    

    deb http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ xenial main 受限 deb-src http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ xenial main 受限

    deb http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ xenial-updates 主要受限 deb-src http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ xenial -更新主要受限

    deb http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ xenial 宇宙 deb-src http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ xenial 宇宙 deb http ://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ xenial-updates 宇宙 deb-src http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ xenial-updates 宇宙

    deb http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ xenial multiverse deb-src http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ xenial multiverse deb http ://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ xenial-updates multiverse deb-src http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

    deb http://eu-west-2.ec2.archive.ubuntu.com/ubuntu/xenial-backports主要受限宇宙多元宇宙 deb-src http://eu-west-2.ec2.archive.ubuntu.com/ubuntu / xenial-backports 主受限宇宙多元宇宙

    deb http://security.ubuntu.com/ubuntu xenial-security 主要受限 deb-src http://security.ubuntu.com/ubuntu xenial-security 主要受限 deb http://security.ubuntu.com/ubuntu xenial-安全宇宙 deb-src http://security.ubuntu.com/ubuntu xenial-security 宇宙 deb http://security.ubuntu.com/ubuntu xenial-security multiverse deb-src http://security.ubuntu.com/ubuntu xenial-security 多元宇宙

    跑步

    apt-cache madison  libnet-ssleay-perl libauthen-pam-perl libio-pty-perl apt-show-versions python
    

    显示可从选定的 repos 获得的包

    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
    

    希望这会有所帮助。谢谢

    • 1

相关问题

  • 如何回滚到 PHP 5.2?

  • 包管理器之间有什么区别?

  • 如果在服务器机器上运行 Ubuntu 桌面版,性能损失是多少?

  • 将桌面版剥离为服务器版的最简单方法是什么?

  • 如何与无头服务器进行图形交互?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve