On Ubuntu 16.04 I've problems with gcc-5-base package:
user@laptop:~$ sudo apt install libgfortran3
The following packages have unmet dependencies:
libgfortran3 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.11) but 5.5.0-12ubuntu1~16.04 is to be installed
E: Unable to correct problems, you have held broken packages.
No hold packages: dpkg --get-selection | grep hold
returns nothing.
No automatic fixes to apply:
user@laptop:~$ sudo apt -f install
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reinstall says that everything is ok (but of course is not):
user@laptop:~$ sudo apt install gcc-5-base
gcc-5-base is already the newest version (5.5.0-12ubuntu1~16.04).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
No dependencies to clean:
user@laptop:~$ sudo apt-get --purge autoremove
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded
I think that the problem arose upgrading from 14.04 to 16.04: I've used these commands to fix libstdc++, after do-release-upgrade
.
Any other hints?
Thank you.
apt update
recently? – fkraiem Sep 12 '19 at 08:38sudo apt update
returnsAll packages are up to date
. No issue with repositories at all. And I don't have PPAs. – caneta Sep 12 '19 at 09:405.5.0-12ubuntu1~16.04
ofgcc-5-base
despite its not being the latest version (the latest version is5.4.0-6ubuntu1~16.04.11
). Maybeapt-cache policy gcc-5-base
could give a hint... – fkraiem Sep 12 '19 at 10:09gcc-5-base: Installed: 5.5.0-12ubuntu1~16.04 Candidate: 5.5.0-12ubuntu1~16.04 Version table: *** 5.5.0-12ubuntu1~16.04 100 100 /var/lib/dpkg/status 5.4.0-6ubuntu1~16.04.11 500 500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages 5.4.0-6ubuntu1~16.04.10 500 500 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages 5.3.1-14ubuntu2 500 500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
– caneta Sep 12 '19 at 10:54dpkg --get-selections | grep deinstall
returns nothing as well. – caneta Sep 13 '19 at 09:575.5.0-12ubuntu1~16.04
version installed, and it's not clear where it's coming from (it's not from the official repos). You could try reverting to the correct one withsudo apt install gcc-5-base=5.4.0-6ubuntu1~16.04.11
, but if you have other packages that depend on the 5.5 version, they would need to be reverted as well. – fkraiem Sep 13 '19 at 14:29E: Version '5.4.0-6ubuntu1~16.04' for 'gcc-5-base' was not found
– caneta Sep 13 '19 at 14:3616.04.11
). ;) You can see in theapt-cache policy
output that version5.5.0-12ubuntu1~16.04
does not correspond to any repository. The reason why it appears is that it's installed, but it's unclear where you got it from. – fkraiem Sep 13 '19 at 14:52