Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 20439  / 3 Years ago, thu, august 19, 2021, 4:06:22

Problem



So I having this problem after upgrading from Ubuntu server 8.04->10.04->12.04.



Initial Command



apt-get install -f

dpkg: warning: files list file for package `tcpd' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `python-pkg-resources' missing, assuming package has no files currently installed.
.... Many many more of these warnings
dpkg: warning: files list file for package `libxml-libxml-perl' missing, assuming no files currently installed.

(Reading database ... 1126 files and directories currently installed.)
Preparing to replace libc6 2.15-0ubuntu10 (using .../libc6_2.15-0ubuntu10.5_i386.deb) ...

A copy of the C library was found in an unexpected directory:
'/lib/i386-linux-gnu/libc-2.15.so'
It is not safe to upgrade the C library in this situation;
please remove that copy of the C library or get it out of
'/lib/i386-linux-gnu' and try again.

dpkg: error processing /var/cache/apt/archives/libc6_2.15-0ubuntu10.5_i386.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.15-0ubuntu10.5_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Things I have tried




  • I have tried moving the libc-2.15.so but this creates an error:
    apt-get: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

  • apt-get --purge remove libc6 this will not work as libc6 is needed by the system

  • sudo apt-get install --reinstall libc6=2.15-0ubuntu10.5 libc6-dev=2.15-0ubuntu10.5 just guess work but this didn't work either.



Anyway, as you can see I'm stuck, I can not upgrade any of my packages...



My sources list is take from here https://help.ubuntu.com/12.04/sample/sources.list


More From » apt

 Answers
7

Run :



sudo dpkg -r libc6

sudo rm /var/cache/apt/archives/libc6_2.15-0ubuntu10.5_i386.deb


If above are successful or not, run :



gksudo gedit /var/lib/dpkg/status


In the resulting gedit, remove the whole section starts with :



Package : libc6



then run an update. If this not resolves, You need to format.


[#24405] Friday, August 20, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rcraftemur

Total Points: 118
Total Questions: 119
Total Answers: 144

Location: Turks and Caicos Islands
Member since Sun, Mar 7, 2021
3 Years ago
;