LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-17-2004, 11:58 AM   #1
sin-x
LQ Newbie
 
Registered: Dec 2004
Distribution: Debian, Slackware, ubuntu
Posts: 11

Rep: Reputation: 0
apt-get errors


Ok, I did an apt-get upgrade on my box, and got all sorts of unusual errors, like things just uninstalled themselves (or atleast removed from the apt database) and i could use a bit of help fixing these

Code:
debian:~# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these.
Sorry, but the following packages have unmet dependencies:
  libdb1-compat: Depends: libc6 (>= 2.2.5-13) but it is not installed
E: Unmet dependencies. Try using -f.
debian:~# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libc6
The following NEW packages will be installed:
  libc6
0 packages upgraded, 1 newly installed, 0 to remove and 0  not upgraded.
1 packages not fully installed or removed.
Need to get 0B/4895kB of archives. After unpacking 15.9MB will be used.
Do you want to continue? [Y/n] y
E: Cannot get debconf version. Is debconf installed?
(Reading database ... 18 files and directories currently installed.)
Unpacking libc6 (from .../libc6_2.3.2.ds1-19_i386.deb) ...
dpkg not recorded as installed, cannot check for epoch support !
dpkg: error processing /var/cache/apt/archives/libc6_2.3.2.ds1-19_i386.deb (--un
pack):
 subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.3.2.ds1-19_i386.deb
  localepurge: processing locale files ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
debian:~#
This all started after an apt-get update failed and was resolved (it seems the security list was bad or something and made it all go fubar?) so now, i need to repair the sys without a reinstall, and soon so i can get things up and running properly again (it was supposed to be ready last fri, but things came up)
I know debconf is installed, as is libc6, how could i rebuild the database so it will fix these?
 
Old 12-17-2004, 07:32 PM   #2
audibel
Member
 
Registered: Oct 2004
Distribution: Debian Sarge
Posts: 177

Rep: Reputation: 30
This would be extremely easy to fix if you just use aptitude front end.
 
Old 12-17-2004, 09:14 PM   #3
sin-x
LQ Newbie
 
Registered: Dec 2004
Distribution: Debian, Slackware, ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
never heard of it, but what ive seen refers it to being for x, and the box doesnt have x at all (nor will it) but that source may be wrong. I am looking for the best fix for this though (least amount of work prefered, chances of biting me later as low as possible)
 
Old 12-17-2004, 09:21 PM   #4
kiljoy001
LQ Newbie
 
Registered: Sep 2003
Posts: 12

Rep: Reputation: 0
aptitude

aptitude does not need x to work, give it a try. The one your thinking about is prob. synaptic.
 
Old 12-20-2004, 07:45 AM   #5
sin-x
LQ Newbie
 
Registered: Dec 2004
Distribution: Debian, Slackware, ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
Well, I tried that, came out missing the same things apt-get claimed to be missing. I then updated the locate db, and did a locate for them, and all were there, yet neither program could use them.
 
Old 12-20-2004, 02:48 PM   #6
sin-x
LQ Newbie
 
Registered: Dec 2004
Distribution: Debian, Slackware, ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
well, as i look more and more, it seems as if the system forgot how to use glibc6 compleatly... and i cant compile the required files, it freaks at me and dies... :/
Im running into the option of reinstall over the top to reset the glibc if i cant get it fixed
 
Old 12-20-2004, 11:46 PM   #7
kiljoy001
LQ Newbie
 
Registered: Sep 2003
Posts: 12

Rep: Reputation: 0
at that point

at the point your at, something is (obviously) seriously wrong with your system, if were my box, I'd backup what ever valuable data. and reformat, provided that you can ensure that you are able to obtain (and burn) new iso images (or however you installed). Also if you are using sid... well it can break so don't be surprised.
 
Old 12-21-2004, 08:07 AM   #8
sin-x
LQ Newbie
 
Registered: Dec 2004
Distribution: Debian, Slackware, ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
yeah, im using sid, it all happened after an update off it. Well, looks like its backup time... good thing I seperated the user dir on its own partition
 
Old 12-22-2004, 11:15 AM   #9
sin-x
LQ Newbie
 
Registered: Dec 2004
Distribution: Debian, Slackware, ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
Ok, i fixed it, it was a hasle though. the problem was that debconf lost its version number, once that happened all hell broke loose (how it lost it ill never know) so i faked a version number in the file as 1.0 and updated it
after that i reinstalled base-files, then fixed some errors by copying files places to fake them (though the files existed, just not where they wanted them to be). slowly ill rebuild what it knows about, but if i was logging all of that i would show you exactly what i went though, but it wasnt cool at all. and now things are working properly again.

edit : from .bash_history
cat /var/lib/dpkg/status
pico /var/lib/dpkg/status
nano /var/lib/dpkg/status
dpkg --configure
apt-get update
apt-get upgrade
apt-get install dpkg
apt-get install debconf
apt-get upgrade
apt-get remove whiptail
apt-get install base-files
apt-get purge debconf
apt-purge debconf
apt-get -help
apt-get --help
apt-get dist-upgrade
apt-get install glibc6
apt-get install glibc
apt-get upgrade
/sbin/ldconfig
updatedb
apt-get install base-files
locate libnewt.so
cp /usr/lib/libnewt.so.0.50 /usr/lib/libnewt.so.0.51
apt-get install base-files
locate libnewt
apt-get install libnewt
dpkg -i /var/cache/apt/archives/libnewt0.51_0.51.6-20_i386.deb
apt-get install slang1a-utf8
apt-get install findutils slang1a-utf8
apt-get install perl
apt-get install perl perl-modules libdb4.2 libgdbm3
debconf
dselect
locate Basename
cp /usr/share/perl/5.6.1/File/Basename.pm /usr/share/perl/5.8.4/File
apt-get install perl perl-modules libdb4.2 libgdbm3
apt-get -f install
apt-get update
apt-get upgrade
dselect
apt-get install dselect
apt-get install apache
apt-get dist-upgrade


if that helps anyone that may end up with the same problem

Last edited by sin-x; 12-22-2004 at 11:24 AM.
 
  


Reply



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 errors gvaught Debian 1 11-12-2005 10:13 PM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
apt-get errors doctorwebbox Debian 2 02-05-2005 12:40 PM
apt-get errors mattwilson247 DamnSmallLinux 2 01-15-2005 03:01 PM
apt-get errors mohapi Linux - General 4 05-05-2003 10:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:42 AM.

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