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 / 问题 / 462094
Accepted
Nathan Osman
Nathan Osman
Asked: 2014-05-07 21:09:49 +0800 CST2014-05-07 21:09:49 +0800 CST 2014-05-07 21:09:49 +0800 CST

由于“未满足的依赖项”而无法安装 libssl1.0.0:i386?

  • 772

我已阅读并遵循了此问题中的建议,但无济于事。我正在尝试libssl1.0.0:i386在我的 14.04 机器 (amd64) 上安装,但是当我尝试通过 APT 执行此操作时,我收到以下错误消息:

nathan@nathan-desktop:~$ sudo apt-get install libssl1.0.0:i386
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 resolve the situation:

The following packages have unmet dependencies:
 default-jre-headless : Depends: openjdk-7-jre-headless (>= 7~u3-2.1.1) but it is not going to be installed
 openjdk-7-jre : Depends: openjdk-7-jre-headless (= 7u55-2.4.7-1ubuntu1) but it is not going to be installed
                 Recommends: libgnome2-0 but it is not going to be installed
                 Recommends: libgnomevfs2-0 but it is not going to be installed
 openssh-client : Depends: libssl1.0.0 (>= 1.0.1) but it is not going to be installed
 openssh-server : Depends: libssl1.0.0 (>= 1.0.1) but it is not going to be installed
                  Depends: openssh-sftp-server but it is not going to be installed
                  Recommends: ssh-import-id but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

我已经安装了所有最新的更新。我已经跑了apt-get -f install。我已确保在软件源中启用了所有存储库。

是什么原因造成的?


更新:

以下是内容apt-cache policy libssl1.0.0:

libssl1.0.0:
  Installed: 1.0.1g-1ppa1~trusty1
  Candidate: 1.0.1g-1ppa1~trusty1
  Version table:
 *** 1.0.1g-1ppa1~trusty1 0
        100 /var/lib/dpkg/status
     1.0.1f-1ubuntu2.1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     1.0.1f-1ubuntu2 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

...和apt-cache policy libssl1.0.0:i386:

libssl1.0.0:i386:
  Installed: (none)
  Candidate: 1.0.1f-1ubuntu2.1
  Version table:
     1.0.1f-1ubuntu2.1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main i386 Packages
     1.0.1f-1ubuntu2 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty/main i386 Packages
apt
  • 4 4 个回答
  • 58433 Views

4 个回答

  • Voted
  1. Javatech Automation
    2020-06-26T11:02:24+08:002020-06-26T11:02:24+08:00

    我正在使用 Ubuntu 20.04,以下步骤对我有用:

    使用添加 18.04 的主存储库

    echo "deb http://security.ubuntu.com/ubuntu bionic-security main" | sudo tee -a /etc/apt/sources.list.d/bionic.list
    

    更新存储库缓存并检查 libssl1.0-dev 现在是否可用。

    sudo apt update
    apt-cache policy libssl1.0-dev
    

    安装 libssl1.0-dev。

    sudo apt-get install libssl1.0-dev 
    
    • 19
  2. Best Answer
    Michael Miller
    2014-05-08T09:58:01+08:002014-05-08T09:58:01+08:00

    这种错误消息通常表示正在安装的包与其他已安装的包冲突,并且会强制删除其他依赖包。当同时为多个架构安装同一个包时(参见MultiArch),amd64在i386这种情况下,要安装的包的版本必须完全匹配。

    在这种情况下可能发生的事情(由我们在评论中的讨论证实)是libssl1.0.0升级到比 Ubuntu 存储库中可用的任何版本都新的 PPA 版本。如果 PPA 后来被禁用或取消配置,较新的软件包通常会保持安装状态。阅读此问题了解禁用和清除 PPA 之间的区别。但是,如果您已经从 apt 配置中删除了 PPA,则需要手动降级之前从 PPA 升级的软件包。

    为了能够安装libssl1.0.0:i386,您必须libssl1.0.0:amd64从存储库安装相同版本。并且因为openssl源码包构建了多个相关的二进制包,你必须确保它的所有包也在同一个版本上。如果您没有指定要降级的所有软件包,apt 将宁愿卸载而不是降级。在这种情况下,如果您有libssl1.0.0、libssl-dev和openssl从 PPA 安装,您应该

    sudo apt-get install libssl1.0.0/trusty libssl-dev/trusty openssl/trusty
    

    apt-get对有关降级软件包的提示回答是。您现在应该能够libssl1.0.0:i386从存储库安装包。

    • 9
  3. sharat kanthi
    2018-04-17T02:44:26+08:002018-04-17T02:44:26+08:00

    这是因为没有安装web socket库。尝试跑步

    sudo apt-get install libwebsockets-dev
    

    跑步前

    sudo apt-get install mosquitto
    
    • 2
  4. necrifede
    2017-06-29T18:57:38+08:002017-06-29T18:57:38+08:00

    我到达这里试图在 debian 9 stretch 上安装官方的 mongodb-org。但是我遇到了与您类似的错误:

    user@debian:~/folder$ sudo apt-get install -y mongodb-org
    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:
     mongodb-org : Depends: mongodb-org-shell but it is not going to be installed
                   Depends: mongodb-org-server but it is not going to be installed
                   Depends: mongodb-org-mongos but it is not going to be installed
                   Depends: mongodb-org-tools but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    

    并尝试一个一个地安装软件包:

    user@debian:~/folder$ sudo apt-get install -y mongodb-org-tools 
    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:
     mongodb-org-tools : Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
    E: Unable to correct problems, you have held broken packages.
    

    我在下一篇文章中找到了我的解决方案: https ://linuxconfig.org/how-to-install-spotify-on-debian-9-stretch-linux

    它只安装旧的 ssl 包做:

    $ wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u6_amd64.deb
    $ sudo dpkg -i libssl1.0.0_1.0.1t-1+deb8u6_amd64.deb
    

    这样做之后,mongodb-org 就安装好了。希望你会发现它有帮助。

    • 1

相关问题

  • 如何编写 shell 脚本来安装应用程序列表?

  • 如何查看存档中可用的软件包的所有版本?

  • 是否可以说出我安装的哪些软件包不在原版安装中?

  • 如何删除 PPA?

  • 使用 apt-get upgrade 时如何强制安装内核更新?

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