LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-01-2006, 03:32 PM   #1
hisnumber666
Member
 
Registered: Mar 2006
Distribution: Debian Sarge, Windows Server 2003
Posts: 66

Rep: Reputation: 15
broken system. libc6 is missing, dpkg and apt-get not working. help!!!


ok this is a continuing problem... libc6 was removed ignoring dependencies, system crashed. booted up in knoppix and trying to install a stable libc6.
i wasnt expecting chroot not to work. i cant change root.
dpkg has its own -root but when i execute i get this:

root@ttyp0[root]# dpkg --force all --ignore-depends libc6 --root=/mnt/hda1 -i libc6_2.3.2.ds1-22sarge3_i386.deb
(Reading database ... 182847 files and directories currently installed.)
Preparing to replace libc6 2.3.6-7 (using libc6_2.3.2.ds1-22sarge3_i386.deb) ...
dpkg (subprocess): unable to execute new pre-installation script: No such file or directory
dpkg: error processing libc6_2.3.2.ds1-22sarge3_i386.deb (--install):
subprocess pre-installation script returned error exit status 2
dpkg (subprocess): unable to execute new post-removal script: No such file or directory
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
libc6_2.3.2.ds1-22sarge3_i386.deb

cant use apt-get right now since the root is wrong, apt-get uses dpkg which will not work.
any ideas?
 
Old 05-01-2006, 05:10 PM   #2
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
You need to extract it without chrooting. Use the dpkg included with Knoppix to just extract it:
Code:
cd /tmp
dpkg --extract libc6_2.3.2.ds1-22sarge3_i386.deb
Then you can copy the individual files into the right places.

If that doesn't work either, you'll have to use "ar" to get the files out:
Code:
cd /tmp
ar x libc6_2.3.2.ds1-22sarge3_i386.deb
tar xzf data.tar.gz
Don't do either of these in a "real" directory, they will make a mess. Do it in /tmp or make a new directory as a scratch area.
 
Old 05-01-2006, 06:14 PM   #3
hisnumber666
Member
 
Registered: Mar 2006
Distribution: Debian Sarge, Windows Server 2003
Posts: 66

Original Poster
Rep: Reputation: 15
that does not work since the system does not see the files. i can view the files manually and run binaries, but they dont see external files.
 
Old 05-01-2006, 07:20 PM   #4
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
I don't understand you. Once you get the files extracted, copy them in, then you should be able to do it the way you originally wanted to. You might have to run ldconfig in there somewhere as well.
 
  


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-get dpkg error: files list file ... missing final newline PBSchmidt Debian 13 04-29-2023 05:55 PM
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 16 12-01-2011 09:24 AM
dpkg: error processing libc6 linux-ibook Debian 5 12-15-2005 08:35 PM
dpkg: error processing libc6 (--configure) spid3r DamnSmallLinux 1 10-18-2005 03:53 PM
dpkg not working nor apt-get alhaidry Debian 2 08-12-2004 08:45 AM

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

All times are GMT -5. The time now is 11:08 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
Open Source Consulting | Domain Registration