Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
25% Recurring Discount on NVMe VPS
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

libc problems after Debian update

So I just ran a Debian update and saw this

apt-get update ; apt-get upgrade -y
Hit http://ftp.us.debian.org wheezy Release.gpg
Hit http://ftp.us.debian.org wheezy Release
Hit http://ftp.us.debian.org wheezy/main Sources
Hit http://ftp.us.debian.org wheezy/main i386 Packages
Hit http://ftp.us.debian.org wheezy/main Translation-en
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://security.debian.org wheezy/updates Release
Hit http://security.debian.org wheezy/updates/main Sources
Hit http://security.debian.org wheezy/updates/main i386 Packages
Hit http://security.debian.org wheezy/updates/main Translation-en
Reading package lists... Done
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:
 libc6 : Depends: libc-bin (= 2.13-38) but 2.13-38+deb7u1 is installed
         Recommends: libc6-i686 but it is not installed
E: Unmet dependencies. Try using -f.
root@tx256:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libc6
Suggested packages:
  glibc-doc
Recommended packages:
  libc6-i686
The following packages will be upgraded:
  libc6
1 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
Need to get 0 B/3,950 kB of archives.
After this operation, 9,216 B of additional disk space will be used.
Preconfiguring packages ...
dpkg: warning: files list file for package 'libwrap0:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libc6:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libselinux1:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'gcc-4.7-base:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libbz2-1.0:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libdb5.1:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'liblzma5:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsensors4:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgcc1:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'zlib1g:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsemanage1:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpam-modules:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsepol1:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpam0g:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgdbm3:i386' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libustr-1.0-1:i386' missing; assuming package has no files currently installed
(Reading database ... 52262 files and directories currently installed.)
Preparing to replace libc6:i386 2.13-38 (using .../libc6_2.13-38+deb7u1_i386.deb) ...

A copy of the C library was found in an unexpected directory:
  '/lib/i386-linux-gnu/libc-2.13.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.13-38+deb7u1_i386.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.13-38+deb7u1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Anyone run into this issue and have a fix for it?

Comments

  • Just remove it and install libc6-i686

  • Be careful though, my friend had the same issue and he ended up re-installing his system.

  • @MassNodes said:
    Be careful though, my friend had the same issue and he ended up re-installing his system.

    I did remove it, but once you do, everything breaks. It's really strange because I have identical setups and some are fine :/

  • MassNodesMassNodes Member
    edited February 2014

    I would google it :/ Did you try to install multi-lib?

  • blackblack Member
    edited February 2014

    @MassNodes said:
    I would google it :/ Did you try to install multi-lib?

    I tried everything on Google within the first 2 search page results. Some say it's a kernel issue and in openvz, I don't have my own kernel so I can't do anything. Then again, that doesn't make much sense because other ovz containers are just fine. Some say it's something in the sources.list file, which also doesn't make sense either because I have identical setups on other machines and they work fine.

  • Did you find this: http://serverfault.com/questions/486254/cant-upgrade-libc6

    See the first answer....

    Thanked by 1black
  • @sleddog said:
    Did you find this: http://serverfault.com/questions/486254/cant-upgrade-libc6

    See the first answer....

    Nope I didn't. Maybe because I put wheezy in the search terms.

    This does seem to work though, thanks a lot!

  • There is a post about this on the lowendspirit forums, think Nyr gave a solution that worked.

    http://forum.lowendspirit.com/viewtopic.php?id=721

    Thanked by 1trexos
  • Can you post your solution? I tried this from nyr:
    dpkg-deb -c /var/cache/apt/archives/libc6_2.13-38+deb7u1_i386.deb | awk {'print $6'} | cut -f2- -d. | sed 's|^/$|/.|' | sed 's|/$||' > /var/lib/dpkg/info/libc6:i386.list

    But it doesn't work.

  • rubikrubik Member
    edited February 2014

    @trexos said:
    Can you post your solution? I tried this from nyr:
    dpkg-deb -c /var/cache/apt/archives/libc6_2.13-38+deb7u1_i386.deb | awk {'print $6'} | cut -f2- -d. | sed 's|^/$|/.|' | sed 's|/$||' > /var/lib/dpkg/info/libc6:i386.list

    But it doesn't work.

    Are you on 64-bit Debian by any chance? (EDIT: I think you are, just saw your LES post...)

    If yes, your command should be this:

    dpkg-deb -c /var/cache/apt/archives/libc6_2.13-38+deb7u1_amd64.deb | awk {'print $6'} | cut -f2- -d. | sed 's|^/$|/.|' | sed 's|/$||' > /var/lib/dpkg/info/libc6:amd64.list
    

    Followed by forcing an upgrade:

    apt-get upgrade -f
    

    Worked for me, at least... (I also posted in that LES thread)

    Thanked by 2trexos aMunster
  • trexostrexos Member
    edited February 2014

    @rubik

    Thank you so much, it worked great. This is my only LES box where I use x64. Forgot it^^

    Btw can somebody explan me what this command does and what the problem was?

  • None of the VPSes i upgraded showed such problem. This must be some problem specific to your installation or to the template used for your VPS.

  • @black said:
    I did remove it, but once you do, everything breaks. It's really strange because I have identical setups and some are fine :/

    Because even the bash terminal you're in depends on it as a shared library...

  • blackblack Member
    edited February 2014

    @MitchellRobert said:
    Because even the bash terminal you're in depends on it as a shared library...

    That's correct. I didn't know about LD_PRELOAD variable in bash. I guess you learn something new everyday :)

  • I've had this problem recently, this should fix it:

    apt-get -f install libc6-i686

  • And yes it's something to do with the kernel and libc. Is it on RHEL5?

  • @black
    I'm curious about this. Did you encounter this error with a Prometeus VPS?

  • @typh0n said:
    black
    I'm curious about this. Did you encounter this error with a Prometeus VPS?

    No. They're all openvz containers, but even on identical setups, one has this problem and the other one doesn't so the host shouldn't matter.

  • That's so strange. At least you were able to find a fix for it, but the strange part is it affected some machines but not the others even on identical setups.

  • Had the issue too. Thanks rubik for the solution. Anyway, http://howfuckedismydistro.com/debian/

  • As I understand it, there was a bugged Debian/Ubuntu package released sometime March/April 2013, which later got fixed.

    Thanked by 1Mark_R
  • rubikrubik Member
    edited February 2014

    I think some Debian 7 (minimal?) templates are messed up (or more messed up than others?)

    I am running Debian 7 x64 (all installed from minimal templates) on 3 VPS instances with 3 different providers and only had this issue happen with one of the three.

    No big deal, the fix was easy enough. /shrug

    EDIT: Actually, now that I think about it, I think the instance that puked on me started out as a Debian 6 x64 minimal install (there was no Debian 7 template available). I then updated the apt sources to point to Debian 7 and did a dist-upgrade which brought me to Debian 7.3, which was current up until the other day when 7.4 came out. Only THEN I started getting the libc errors (upgradeing from 7.3 to 7.4).

  • I also had the problem with Debian 7 minimal x86.

  • I can sewer that this happened in Debian 6 too.

  • I had this same problem with debian 7 minimal x64 at ramnode. Nyr's oneliner was magic!

Sign In or Register to comment.