Dependency problem

Ervin Hegedüs airween at gmail.com
Tue Jan 23 21:14:12 UTC 2018


Hi folks,

I've a Linux Mint 18.2, based on Ubuntu 16.04 (as I know).

I'ld like to install the g++-5 package, there are two versions
avaliable:

basil ~ # apt-cache show g++-5
Package: g++-5
Priority: optional
Section: devel
Installed-Size: 22835
Maintainer: Ubuntu Core developers <ubuntu-devel-discuss at lists.ubuntu.com>
Original-Maintainer: Debian GCC Maintainers <debian-gcc at lists.debian.org>
Architecture: amd64
Source: gcc-5
Version: 5.4.0-6ubuntu1~16.04.4
Provides: c++-compiler, c++abi2-dev
Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.4), gcc-5 (= 5.4.0-6ubuntu1~16.04.4), libstdc++-5-dev (= 5.4.0-6ubuntu1~16.04.4), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl15 (>= 0.15), libmpc3, libmpfr4 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: g++-5-multilib, gcc-5-doc (>= 5.2.1-23), libstdc++6-5-dbg (>= 5.4.0-6ubuntu1~16.04.4)
Filename: pool/main/g/gcc-5/g++-5_5.4.0-6ubuntu1~16.04.4_amd64.deb
Size: 8299854
MD5sum: 218ba077dc7a555055446919bc51545a
SHA1: d8e403dd0f15465b4be029720f8eef80cf2329d8
SHA256: 1f756d568c8d4bfbb01aaadd72687e8dd7ec7bba1b8d3376a1d7cbba237fe7eb
Description-en: GNU C++ compiler
 This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c
Homepage: http://gcc.gnu.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Build-Essential: yes
Origin: Ubuntu
Supported: 5y
Task: ubuntu-desktop, ubuntu-usb, edubuntu-desktop, edubuntu-usb, ubuntustudio-audio, ubuntukylin-desktop

Package: g++-5
Priority: optional
Section: devel
Installed-Size: 22855
Maintainer: Ubuntu Core developers <ubuntu-devel-discuss at lists.ubuntu.com>
Original-Maintainer: Debian GCC Maintainers <debian-gcc at lists.debian.org>
Architecture: amd64
Source: gcc-5
Version: 5.3.1-14ubuntu2
Provides: c++-compiler, c++abi2-dev
Depends: gcc-5-base (= 5.3.1-14ubuntu2), gcc-5 (= 5.3.1-14ubuntu2), libstdc++-5-dev (= 5.3.1-14ubuntu2), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl15 (>= 0.15), libmpc3, libmpfr4 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: g++-5-multilib, gcc-5-doc (>= 5.2.1-23), libstdc++6-5-dbg (>= 5.3.1-14ubuntu2)
Filename: pool/main/g/gcc-5/g++-5_5.3.1-14ubuntu2_amd64.deb
Size: 8433074
MD5sum: 023284e68d96fe5423ef29a202b1e63e
SHA1: b2ee1f13b1cdff4dd8e827fe624776925fc9af98
SHA256: 6d2869c96e3e0064ef9c00dc097466cc3bb7ae3eeff5da05ad9e18a4cbac8208
Description-en: GNU C++ compiler
 This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.
Description-md5: 0a3fad3367cb994bd16c61b0e16a8b9c
Homepage: http://gcc.gnu.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Build-Essential: yes
Origin: Ubuntu
Supported: 5y
Task: ubuntu-desktop, ubuntu-usb, edubuntu-desktop, edubuntu-usb, ubuntustudio-audio, ubuntukylin-desktop


basil ~ # apt-get install g++-5=5.4.0-6ubuntu1~16.04.4
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:
 g++-5 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.4) but 5.4.0-6ubuntu1~16.04.5 is to be installed
         Depends: gcc-5 (= 5.4.0-6ubuntu1~16.04.4) but 5.4.0-6ubuntu1~16.04.5 is to be installed
         Depends: libstdc++-5-dev (= 5.4.0-6ubuntu1~16.04.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

basil ~ # apt-get install g++-5=5.3.1-14ubuntu2
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:
 g++-5 : Depends: gcc-5-base (= 5.3.1-14ubuntu2) but 5.4.0-6ubuntu1~16.04.5 is to be installed
         Depends: gcc-5 (= 5.3.1-14ubuntu2) but 5.4.0-6ubuntu1~16.04.5 is to be installed
         Depends: libstdc++-5-dev (= 5.3.1-14ubuntu2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


What should I do to correct it?


Thanks,


a.







More information about the Ubuntu-devel-discuss mailing list