problems upgrading from 14.04 to 16.04

Tom H tomh0665 at gmail.com
Tue Sep 27 12:42:14 UTC 2016


On Mon, Sep 26, 2016 at 11:02 AM, J.L. Blom <joep at neuroweave.nl> wrote:
> On 26/09/16 15:36, Tom H wrote:
>>
>> Run
>> apt-get install -s gcc-5-base=5.4.0-6ubuntu1~16.04.2
>> to check what'll happen.
>>
>> If it looks OK, run
>> apt-get install gcc-5-base=5.4.0-6ubuntu1~16.04.2
>>
>> If that doesn't work, you'll have to try to force it:
>>
>> apt-get install -s -o Dpkg::Options::="--force-all"
>> gcc-5-base=5.4.0-6ubuntu1~16.04.2
>> then
>> apt-get install -o Dpkg::Options::="--force-all"
>> gcc-5-base=5.4.0-6ubuntu1~16.04.2
>
> Tom, thanks for the suggestions.

You're welcome.

> First, I don't think I downloaded this from a testing PPA as I always
> use only LTS for ubuntu.
> Second, I followed your suggestions and neither the first nor the
> forged second version did do anything else than the chicken and egg
> problem. I think something -not directly mentioned in the error
> messages prevents the re-installation of the gcc-5-base library.
> Maybe I have to forcibly remove this library, hoping at doesn't
> corrupt completely the rest of the system.

I was hoping that you'd be able to fix this problem simply by dealing
with gcc-5-base but the problem's probably with the "real" package,
gcc-5's probably the culprit.

What's the output of "apt-cache policy gcc-5-base"?

(Please ignore the versions below because they're from my laptop running 16.10.)


root at localhost ~ # dpkg -L gcc-5-base
/.
/usr
/usr/lib
/usr/lib/gcc
/usr/lib/gcc/x86_64-linux-gnu
/usr/lib/gcc/x86_64-linux-gnu/5
/usr/share
/usr/share/doc
/usr/share/doc/gcc-5-base
/usr/share/doc/gcc-5-base/README.Debian.amd64.gz
/usr/share/doc/gcc-5-base/TODO.Debian
/usr/share/doc/gcc-5-base/changelog.Debian.gz
/usr/share/doc/gcc-5-base/copyright
/usr/lib/gcc/x86_64-linux-gnu/5.4.1

root at localhost ~ # apt-cache policy gcc-5-base
gcc-5-base:
  Installed: 5.4.1-2ubuntu1
  Candidate: 5.4.1-2ubuntu1
  Version table:
 *** 5.4.1-2ubuntu1 500
        500 http://uk.archive.ubuntu.com/ubuntu yakkety/main amd64 Packages
        100 /var/lib/dpkg/status

root at localhost ~ # apt-cache policy gcc-5
gcc-5:
  Installed: 5.4.1-2ubuntu1
  Candidate: 5.4.1-2ubuntu1
  Version table:
 *** 5.4.1-2ubuntu1 500
        500 http://uk.archive.ubuntu.com/ubuntu yakkety/main amd64 Packages
        100 /var/lib/dpkg/status

root at localhost ~ # aptitude search '?reverse-depends(gcc-5-base)'

root at localhost ~ # aptitude search '?depends(gcc-5-base)' | grep ^i
i  cpp-5 - GNU C preprocessor
i  g++-5 - GNU C++ compiler
i  gcc-5 - GNU C compiler
i  libasan2 - AddressSanitizer -- a fast memory error detector
i  libgcc-5-dev - GCC support library (development files)
i  libmpx0 - Intel memory protection extensions (runtime)
i  libstdc++-5-dev - GNU Standard C++ Library v3 (development files)

root at localhost ~ #




More information about the ubuntu-users mailing list