LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   apt-get errors... (https://www.linuxquestions.org/questions/debian-26/apt-get-errors-236657/)

falling 09-29-2004 10:17 AM

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

HappyTux 09-29-2004 10:26 AM

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.

falling 09-29-2004 10:48 AM

sweetness! it worked perfectly.... thank you.


All times are GMT -5. The time now is 07:39 AM.