由于Ubuntu 18.10中存在未满足的依赖关系,因此未安装build-essential

阿卜杜勒·拉夫(Abdul Rauf)|

build-essential 在新安装的Ubuntu 18.10上安装失败,并显示以下错误:

$ sudo apt install build-essential
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:
 build-essential : Depends: libc6-dev but it is not going to be installed or
                            libc-dev
                   Depends: gcc (>= 4:7.3) but it is not going to be installed
                   Depends: g++ (>= 4:7.3) but it is not going to be installed
                   Depends: dpkg-dev (>= 1.17.11) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

通过deb文件安装也失败。

我认为此软件包未正确移植到18.10,因为它要求过时的依赖项(在18.04 LTS中可用的依赖项版本)。最安全的安装方法是什么?

请注意,我已经使用不安全的方法(例如,通过aptitude降级软件包)在其他机器上安装了该软件包,但是此方法破坏了太多其他软件包。

更新#1:

libc6-dev安装失败。

$ sudo apt install libc6-dev
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:
 libc6-dev : Depends: libc6 (= 2.27-3ubuntu1) but 2.28-0ubuntu1 is to be installed
             Depends: libc-dev-bin (= 2.27-3ubuntu1)
E: Unable to correct problems, you have held broken packages.

我不知道apt为什么要寻找libc6and的旧版本libc-dev-bin

同样,apt显示gcc也取决于的早期版本cpp

$ sudo apt install gcc
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:
 gcc : Depends: cpp (= 4:8.1.0-2ubuntu1) but 4:8.2.0-1ubuntu1 is to be installed
       Depends: gcc-8 (>= 8.1.0-4~) but it is not going to be installed
       Recommends: libc6-dev but it is not going to be installed or
                   libc-dev
E: Unable to correct problems, you have held broken packages.

更新#2: apt-cache策略输出

$ apt-cache policy gcc cpp
gcc:
  Installed: (none)
  Candidate: 4:8.1.0-2ubuntu1
  Version table:
     4:8.1.0-2ubuntu1 500
        500 http://pk.archive.ubuntu.com/ubuntu cosmic/main amd64 Packages
cpp:
  Installed: 4:8.2.0-1ubuntu1
  Candidate: 4:8.2.0-1ubuntu1
  Version table:
 *** 4:8.2.0-1ubuntu1 100
        100 /var/lib/dpkg/status
     4:8.1.0-2ubuntu1 500
        500 http://pk.archive.ubuntu.com/ubuntu cosmic/main amd64 Packages
吉韦克

我怀疑(现在证明)您使用的镜子严重过时,例如。如果您检查了https://launchpad.net/ubuntu/+archivemirrors,我相信您选择的镜像将列出未知的最新更新(计数器在很久以前就溢出了),因此您的软件包会出现问题。

我怀疑这是因为您的结果与https://packages.ubuntu.com/上的预期软件包不匹配

解决方法是切换到维护的镜像(从上述列表)或主归档。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Debian:由于未满足依赖关系,“ apt install build-essential”失败

来自分类Dev

由于未满足的依赖关系,PinguyBuilder 未安装在 Ubuntu 20.04 上

来自分类Dev

由于依赖关系未满足,因此无法安装Google Chrome更新

来自分类Dev

由于依赖关系未满足,因此无法安装Google Chrome更新

来自分类Dev

在ubuntu未满足的依赖关系中安装GD库

来自分类Dev

由于未满足的依赖关系而无法在Ubuntu 16上安装php-memcached

来自分类Dev

Docker CrossCompile Debian build-essential:armhf未满足的依赖关系

来自分类Dev

由于未满足依赖关系而无法安装VLC

来自分类Dev

由于未满足依赖关系而无法在Ubuntu 16.04上安装libxi-dev和libxmu-dev

来自分类Dev

由于存在“未满足的依赖项”,因此无法再使用“ apt-get install”

来自分类Dev

由于未满足的依赖性,无法在 Ubuntu 18.04 上安装 git 相关软件包

来自分类Dev

Ubuntu 18,无法安装xelatex

来自分类Dev

由于未满足的依赖关系而无法安装gcc-4.8

来自分类Dev

由于未满足的依赖关系而无法安装gcc-4.8

来自分类Dev

由于未满足的依赖关系而无法安装linux-header

来自分类Dev

由于未满足依赖关系而无法安装qtbase5-dev

来自分类Dev

由于未满足依赖关系而无法安装libsdl2-dev

来自分类Dev

由于未满足的依赖关系而无法安装Meson,似乎无法解决?

来自分类Dev

在Docker中安装build-essential失败

来自分类Dev

无法在 ubuntu 18 中安装 Laravel Telescope

来自分类Dev

与Ubuntu中的build-essential对应的RHEL软件包是什么?

来自分类Dev

由于未满足的依赖项或存在,无法运行 apt install

来自分类Dev

安装 Ubuntu 18 后的 Windows 安装

来自分类Dev

由于 Debian 中未满足的依赖关系,无法重新安装 ffmpeg/为什么 ffmpeg 没有在视频转换中使用指定的比特率?

来自分类Dev

Ubuntu 14.04,安装gstreamer1.0-libav时出现问题,依赖关系未满足

来自分类Dev

在运行ubuntu的arm v7上安装openjdk 7时未满足的依赖关系

来自分类Dev

Ubuntu双引导安装Grub错误18

来自分类Dev

在Ubuntu 16.04上安装libmysqlclient18

来自分类Dev

无法在 Ubuntu 18 上安装 Chrome

Related 相关文章

  1. 1

    Debian:由于未满足依赖关系,“ apt install build-essential”失败

  2. 2

    由于未满足的依赖关系,PinguyBuilder 未安装在 Ubuntu 20.04 上

  3. 3

    由于依赖关系未满足,因此无法安装Google Chrome更新

  4. 4

    由于依赖关系未满足,因此无法安装Google Chrome更新

  5. 5

    在ubuntu未满足的依赖关系中安装GD库

  6. 6

    由于未满足的依赖关系而无法在Ubuntu 16上安装php-memcached

  7. 7

    Docker CrossCompile Debian build-essential:armhf未满足的依赖关系

  8. 8

    由于未满足依赖关系而无法安装VLC

  9. 9

    由于未满足依赖关系而无法在Ubuntu 16.04上安装libxi-dev和libxmu-dev

  10. 10

    由于存在“未满足的依赖项”,因此无法再使用“ apt-get install”

  11. 11

    由于未满足的依赖性,无法在 Ubuntu 18.04 上安装 git 相关软件包

  12. 12

    Ubuntu 18,无法安装xelatex

  13. 13

    由于未满足的依赖关系而无法安装gcc-4.8

  14. 14

    由于未满足的依赖关系而无法安装gcc-4.8

  15. 15

    由于未满足的依赖关系而无法安装linux-header

  16. 16

    由于未满足依赖关系而无法安装qtbase5-dev

  17. 17

    由于未满足依赖关系而无法安装libsdl2-dev

  18. 18

    由于未满足的依赖关系而无法安装Meson,似乎无法解决?

  19. 19

    在Docker中安装build-essential失败

  20. 20

    无法在 ubuntu 18 中安装 Laravel Telescope

  21. 21

    与Ubuntu中的build-essential对应的RHEL软件包是什么?

  22. 22

    由于未满足的依赖项或存在,无法运行 apt install

  23. 23

    安装 Ubuntu 18 后的 Windows 安装

  24. 24

    由于 Debian 中未满足的依赖关系,无法重新安装 ffmpeg/为什么 ffmpeg 没有在视频转换中使用指定的比特率?

  25. 25

    Ubuntu 14.04,安装gstreamer1.0-libav时出现问题,依赖关系未满足

  26. 26

    在运行ubuntu的arm v7上安装openjdk 7时未满足的依赖关系

  27. 27

    Ubuntu双引导安装Grub错误18

  28. 28

    在Ubuntu 16.04上安装libmysqlclient18

  29. 29

    无法在 Ubuntu 18 上安装 Chrome

热门标签

归档