LinuxQuestions.org
Review your favorite Linux distribution.
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 09-29-2004, 11:17 AM   #1
falling
LQ Newbie
 
Registered: Sep 2004
Location: nyc
Posts: 6

Rep: Reputation: 0
apt-get errors...


Hi, readers,

I'm a sarge user, and seem to have locked my system from using apt-get any further due to some tricky dependency error. It all occurred during a routine ` apt-get update && apt-get upgrade all ` when the command ended with an error that went something like:

Code:
menon:/home/falling# apt-get upgrade all
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
  libperl5.8: Depends: perl-base (= 5.8.4-2.2) but 5.8.4-2 is installed
  perl: Depends: perl-base (= 5.8.4-2.2) but 5.8.4-2 is installed
E: Unmet dependencies. Try using -f.
After this, I tried to do an ` apt-get -f install ` to fix the dependency mis-mash, and this resulted in another error:

Code:
menon:/home/falling# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  perl-base
The following packages will be upgraded:
  perl-base
1 upgraded, 0 newly installed, 0 to remove and 229 not upgraded.
8 not fully installed or removed.
Need to get 0B/747kB of archives.
After unpacking 172kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 61212 files and directories currently installed.)
Preparing to replace perl-base 5.8.4-2 (using .../perl-base_5.8.4-2.2_i386.deb) ...
Unpacking replacement perl-base ...
dpkg: error processing /var/cache/apt/archives/perl-base_5.8.4-2.2_i386.deb (--unpack):
 trying to overwrite `/usr/lib/perl/5.8', which is also in package gimp-perl
Errors were encountered while processing:
 /var/cache/apt/archives/perl-base_5.8.4-2.2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

SO, there seems to be some error happening when apt-get tries to upgrade my perl distribution from 5.8.4 to 5.8.4-2.2. I've tried to remove the perl distro, but this is impossible since a whole slew of other apps, including apt-get itself I believe, depend on it. I can't install any other packages with apt-get now either, since it always dies at this dependency error no matter what I throw at it. I need to fix this error to start using my apt-get again, and as it currently stands, I'm totally lost.

So where I do begin? If anyone knows apt-get fairly well I'd really appreciate any advice on things I can try to correct this.

thanks
 
Old 09-29-2004, 11:26 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,656

Rep: Reputation: 115Reputation: 115
Try using dpkg -i --force-overwrite /var/cache/apt/archives/perl-base_5.8.4-2.2_i386.deb then dpkg --configure -a to get the packages left unconfigure when the errors happened and it might be a good idea to do the apt-get upgrade again as well.
 
Old 09-29-2004, 11:48 AM   #3
falling
LQ Newbie
 
Registered: Sep 2004
Location: nyc
Posts: 6

Original Poster
Rep: Reputation: 0
sweetness! it worked perfectly.... thank you.
 
  


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

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

All times are GMT -5. The time now is 09:40 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