Firstly, Thank You for responding to my request for help.
The "sudo apt install --reinstall cpp-5" returns:
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
gcc-5-locales
The following packages will be upgraded:
cpp-5
1 upgraded, 0 newly installed, 0 to remove and 536 not upgraded.
2 not fully installed or removed.
Need to get 0 B/7,660 kB of archives.
After this operation, 16.4 kB of additional disk space will be used.
(Reading database ... 210734 files and directories currently installed.)
Preparing to unpack .../cpp-5_5.4.0-6ubuntu1~16.04.11_amd64.deb ...
Unpacking cpp-5 (5.4.0-6ubuntu1~16.04.11) over (5.4.0-6ubuntu1~16.04.4) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/cpp-5_5.4.0-6ubuntu1~16.04.11_amd64.deb (--unpack):
cannot copy extracted data for './usr/lib/gcc/x86_64-linux-gnu/5/cc1' to '/usr/lib/gcc/x86_64-linux-gnu/5/cc1.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
/var/cache/apt/archives/cpp-5_5.4.0-6ubuntu1~16.04.11_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
In case the item "1 upgraded" from the output was a positive step, I tried:
"sudo apt install --reinstall gcc-5"
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cpp-5 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.4) but 5.4.0-6ubuntu1~16.04.11 is to be installed
gcc-5 : Depends: cpp-5 (= 5.4.0-6ubuntu1~16.04.11) but 5.4.0-6ubuntu1~16.04.4 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Please note that I have previously tried the 'sudo apt-get -f install' approach without success.
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
cpp-5
Suggested packages:
gcc-5-locales
The following packages will be upgraded:
cpp-5
1 upgraded, 0 newly installed, 0 to remove and 536 not upgraded.
2 not fully installed or removed.
Need to get 0 B/7,660 kB of archives.
After this operation, 16.4 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 210734 files and directories currently installed.)
Preparing to unpack .../cpp-5_5.4.0-6ubuntu1~16.04.11_amd64.deb ...
Unpacking cpp-5 (5.4.0-6ubuntu1~16.04.11) over (5.4.0-6ubuntu1~16.04.4) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/cpp-5_5.4.0-6ubuntu1~16.04.11_amd64.deb (--unpack):
cannot copy extracted data for './usr/lib/gcc/x86_64-linux-gnu/5/cc1' to '/usr/lib/gcc/x86_64-linux-gnu/5/cc1.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
/var/cache/apt/archives/cpp-5_5.4.0-6ubuntu1~16.04.11_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
From the second batch of output:
Code:
cpp-5 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.4) but 5.4.0-6ubuntu1~16.04.11 is to be installed
gcc-5 : Depends: cpp-5 (= 5.4.0-6ubuntu1~16.04.11) but 5.4.0-6ubuntu1~16.04.4 is to be installed
Is there a problem between the xx.xx.11 and xx.xx.4 versions of Ubuntu?
This 16.04 version in question is on a disc that I previously used without problem to do a fresh install on an i7 desktop. So, I feel that the source material is uncorrupted.
At this point, is this a core issue or an unnecessary detour?
Bookmarks