LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-17-2011, 03:25 AM   #1
Alize
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Rep: Reputation: 0
DPKG/apt-get broken - GLIBC_2.6 not found (required by dpkg)


Hi all,

Been upgrading a local server which was running Debian 3 (kernel 2.4), got it all the way to 6 (kernel 2.6) successfully, upon updating 6, I had a bunch of:

'package uses Breaks; not supported by dpkg' errors, after googling, I found I needed to update dpkg.

Updated dpkg, now apt-get and dpkg are broken and I'm receiving these errors:

dpkg: /lib/tls/libc.so.6: version 'GLIBC_2.6' not found (required by dpkg) - I'm assuming because the C libraries I have are now out of date.

I'm a pretty techy person but I'm now stuck, I've tried all sorts from trying dist-upgrade to forcing upgrade with -f.

I have backups of the whole machine but I'd really rather not go down that route if possible.

Any help would be very, very much appreciated. Should I now manually try and update libc?
 
Old 05-17-2011, 03:52 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,818

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Hello,

I would try downloading the package directly and the associated dependencies and see how much that would help. Here is the link - http://packages.debian.org/squeeze/libs/libc6.1
Let me/us know if that works or not, and we can go from there.

Cheers,

Josh
 
1 members found this post helpful.
Old 05-17-2011, 03:59 AM   #3
Alize
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you very much for your reply.

I've downloaded glibc libraries and dpkg, trouble is, I can't install them, if I try and use dpkg, I get 'GLIBC_2.6' not found (required by dpkg)

I also tried using 'ar vx file.deb' but also to no avail, returned errors:
version 'GLIBC_2.11' not found (required by ar)
version 'GLIBC_2.7' not found (required by /usr/lib/libbfd-2.20.1-system.20100303.so

Seems my glibc libraries are very out of date
 
Old 05-17-2011, 04:02 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Hello,

How have you done your migrations? Using package manager, changing sources.list every time and running the following between major migrations?
Code:
sudo apt-get update
sudo apt-get install apt dpkg apt-get
sudo apt-get dist-upgrade
Or did you upgrade packages separately pointing to the repositories, without upgrading apt, dpkg and apt-get?

Kind regards,

Eric
 
1 members found this post helpful.
Old 05-17-2011, 04:06 AM   #5
Alize
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EricTRA View Post
Hello,

How have you done your migrations? Using package manager, changing sources.list every time and running the following between major migrations?
Code:
sudo apt-get update
sudo apt-get install apt dpkg apt-get
sudo apt-get dist-upgrade
Or did you upgrade packages separately pointing to the repositories, without upgrading apt, dpkg and apt-get?

Kind regards,

Eric
Hi,

I've changed sources.list everytime then apt-get update, apt-get install, apt-get dist-upgrade, then once the distribution was upgraded, I ran update and install again until dpkg was installed (can't remember which version of Debian it came with).

After dpkg was installed, I used dpkg until version 6 in which I received errors about packages using Break;
 
Old 05-17-2011, 04:07 AM   #6
Alize
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Rep: Reputation: 0
I've downloaded libc from debian repository, I've managed to unpack them to /tmp/dpkg using dpkg-deb. Now making backups of my /etc, /lib and /usr directories before copying the files across.

Is this a really bad idea? lol
 
Old 05-17-2011, 04:13 AM   #7
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Quote:
Originally Posted by Alize View Post
I've downloaded libc from debian repository, I've managed to unpack them to /tmp/dpkg using dpkg-deb. Now making backups of my /etc, /lib and /usr directories before copying the files across.

Is this a really bad idea? lol
Hi,

I know you're kidding! A backup is ALWAYS a good idea and most of the time it's just ignored until catastrophic things occur.

Kind regards,

Eric
 
1 members found this post helpful.
Old 05-17-2011, 04:23 AM   #8
Alize
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EricTRA View Post
Hi,

I know you're kidding! A backup is ALWAYS a good idea and most of the time it's just ignored until catastrophic things occur.

Kind regards,

Eric
I already have a backup of the whole machine before I started doing the dist upgrades but they're for disaster recovery, now just making local backups of these directories for quick recovery!

Thanks very much guys for all your help. I'll keep this thread updated in case anybody else does stupid things like me and comes across this thread! Note to self: never manually update dpkg/apt-get lol

Last edited by Alize; 05-17-2011 at 04:28 AM.
 
Old 05-17-2011, 05:35 AM   #9
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,818

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Sorry I got in this conversation so late... I was leaving work shortly after I made my first post, and had to drive home. Now I have a few hours to myself before I start another 12 hour shift
 
1 members found this post helpful.
Old 05-18-2011, 03:13 AM   #10
Alize
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by corp769 View Post
Sorry I got in this conversation so late... I was leaving work shortly after I made my first post, and had to drive home. Now I have a few hours to myself before I start another 12 hour shift
Thanks for your reply.

I was working on fixing the machine all day yesterday! I updated the libc libraries in which it broke the whole of linux, SSH gave me nothing but 'FATAL: Kernel too old' messages and webmin was giving perl errors.

I booted a few linux live CDs such as knoppix and found the only one to work was my recently downloaded CentOS server disk as that supported RAID, upon trying to restore my /etc, /usr and /lib folders, there isn't enough space on the partition! the /usr folder has gone from around 500MB to 1.5GB?? I've no idea how or why, but I'm now resizing the partitions using a GParted boot disc.

Left it going overnight and GParted failed to complete all operations so I'm now trying again! Seems whatever I try, I'm running into brick walls lol maybe now is the time to reinstall the OS and start again!
 
Old 05-18-2011, 03:35 AM   #11
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,818

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Since you got errors saying that your kernel is too old, have you checked your kernel version and upgraded it accordingly, if so?
 
1 members found this post helpful.
Old 05-18-2011, 03:36 AM   #12
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Hi,

If it's that broken I think that your best option is to perform a clean installation of Debian 6 and restore your documents. I think you'll save a lot of time in doing that.

Kind regards,

Eric
 
2 members found this post helpful.
Old 05-18-2011, 04:01 AM   #13
Alize
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by corp769 View Post
Since you got errors saying that your kernel is too old, have you checked your kernel version and upgraded it accordingly, if so?
That was my first thought too, trouble is, how do you upgrade your kernel when everything is broken? Couldn't SSH anything and webmin was completely broken - literally, the machine became inaccessible.

If my second attempt at GParted fails, I'm going to start over with CentOS, I personally prefer CentOS over Debian and have much more experience with CentOS.

I know this isn't Debian's fault at all, it's all mine!!
 
Old 05-18-2011, 04:08 AM   #14
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Hi,

Simplified answer: You can upgrade your kernel if you first resolve all your other problems and dependency issues. That's why I advised you to perform a clean install. Resolving all your errors manually will take you a lot more time to solve and give you a lot of headaches.

Kind regards,

Eric
 
2 members found this post helpful.
Old 05-23-2011, 04:20 AM   #15
Alize
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Hi Guys,

Was going to install CentOS but required around 5 or 6 CDs which meant downloading them first, I'm an impatient guy and had an Ubuntu 11.04 Server edition CD so installed that!

I've also installed Gnome as I'm the only techy guy here, if something goes wrong and I'm not here, it would be nice if someone else in the office could at least have a bash at fixing it instead of me having to come in.

Thanks for all your help guys! Now running back to normal, I'm already sick of typing 'sudo' lol

Loving Linux though

Last edited by Alize; 05-23-2011 at 04:20 AM. Reason: Typo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 16 12-01-2011 09:24 AM
apt-get error dpkg: ... not found on PATH linuxfia Ubuntu 7 12-02-2008 02:41 PM
how to manually install a package when dpkg, apt-get are broken and system wont boot. hisnumber666 Linux - Software 17 05-02-2006 11:12 AM
broken system. libc6 is missing, dpkg and apt-get not working. help!!! hisnumber666 Linux - Software 3 05-01-2006 07:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration