LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-15-2003, 11:56 PM   #1
sienarot
Member
 
Registered: Mar 2003
Location: Calgary, Alberta, Canada
Distribution: Gentoo 1.4, Debian Woody, Mandrake 8.1
Posts: 43

Rep: Reputation: 15
"Unable to correct dependencies"


Hi all! Hopefully someone can help me out here!!

I'm trying to fix broken dependencies on my Debian box, but when I do, I get the following errors:

Code:
athlonbox:/home/sienarot# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... failed.
Sorry, but the following packages have unmet dependencies:
  debconf-i18n: Depends: liblocale-gettext-perl but it is not installed
  libdbi-perl: Depends: perlapi-5.8.0 but it is not installable
  libterm-readkey-perl: Depends: perlapi-5.8.0 but it is not installable
  libtext-charwidth-perl: Depends: perlapi-5.8.0 but it is not installable
                          Depends: perl-base (>= 5.8.0-18) but 5.6.1-8.2 is installed
  libtext-iconv-perl: Depends: perlapi-5.8.0 but it is not installable
                      Depends: perl-base (>= 5.8.0-15) but 5.6.1-8.2 is installed
  perl: Depends: perl-base (= 5.8.0-19) but 5.6.1-8.2 is installed
  x-window-system-core: Depends: xlibmesa4-gl but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
Any suggestions as to how I can fix this?

Last edited by sienarot; 09-15-2003 at 11:58 PM.
 
Old 09-16-2003, 09:22 AM   #2
dowmun
Member
 
Registered: Feb 2003
Posts: 119

Rep: Reputation: 15
broken dependecies

Hi,
You might start out by using the <dpkg -l | less> command to see the condition of the packages on your system. At the very top of this list is a message explaining what the two letters to the far left of each package mean.
Any letters except two small i's ( ii ) indicate that the package has a problem of some sort. It may be being held (as your error message indicates), or it may have somehow failed to be configured, etc.

I believe that one possible solution would be to go through this list, look at each package that is not completely installed, and use
<dpkg --purge (package name)> to get rid of packages that are in trouble, unless you are absolutely sure that you want that package.
This is often time consuming, but I believe it is the best way. The <dselect> program may let you accomplish the same job a little faster, but many people dislike it. Unless you are comfortable with <dselect>, it is possible to get caught up in the same problem you are having now.

If you do this, apt-get may still fail to install a wanted package if you have correctly installed packages that conflict with it. This would be a different problem, though, and I believe would involve you making a choice of what you want.
 
Old 09-16-2003, 12:29 PM   #3
masinick
Member
 
Registered: Apr 2002
Location: Greenville, SC
Distribution: Debian, antiX, MX Linux
Posts: 639
Blog Entries: 16

Rep: Reputation: 104Reputation: 104
Re: "Unable to correct dependencies"

Quote:
Originally posted by sienarot
Hi all! Hopefully someone can help me out here!!

I'm trying to fix broken dependencies on my Debian box, but when I do, I get the following errors:

Code:
athlonbox:/home/sienarot# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... failed.
Sorry, but the following packages have unmet dependencies:
  debconf-i18n: Depends: liblocale-gettext-perl but it is not installed
  libdbi-perl: Depends: perlapi-5.8.0 but it is not installable
  libterm-readkey-perl: Depends: perlapi-5.8.0 but it is not installable
  libtext-charwidth-perl: Depends: perlapi-5.8.0 but it is not installable
                          Depends: perl-base (>= 5.8.0-18) but 5.6.1-8.2 is installed
  libtext-iconv-perl: Depends: perlapi-5.8.0 but it is not installable
                      Depends: perl-base (>= 5.8.0-15) but 5.6.1-8.2 is installed
  perl: Depends: perl-base (= 5.8.0-19) but 5.6.1-8.2 is installed
  x-window-system-core: Depends: xlibmesa4-gl but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
Any suggestions as to how I can fix this?
dowmun gives some good answers. One of the things I sometimes do when I run into these kinds of problems is that I try removing, one by one, the packages that the installer is complaining about. I do this by running the command apt-get remove followed by the package name or a list of packages.

On occasion, I've had success with this kind of a situation by using synaptic, a graphical user interface for the packaging system, I find it much easier to use than either dselect or aptitude, and easier to find stuff than having to resort to the individual apt commands. I do still use apt-get at times, but synaptic is very convenient and it seems to be a bit more forgiving than other package front ends. I install it by running the command apt-get install synaptic, then I call it up either from the command line or by adding the synaptic command to my window or desktop manager (it's located at /usr/sbin/synaptic on my system).

See if synaptic helps you get rid of some of the problems. If it doesn't remove the problems, remove the offending libraries, one by one and keep trying. It may be a bit time consuming unless you have a good idea of what to remove, but it will yield better results.

Finally, avoid forcing the installation of packages unless you also know how to get rid of them. I rarely run into such problems when I simply use either apt-get install or the synaptic interface, I'm more likely to have problems if I manually install software using dpkg -i, especially if I force the installation.
 
Old 09-18-2003, 09:13 PM   #4
sienarot
Member
 
Registered: Mar 2003
Location: Calgary, Alberta, Canada
Distribution: Gentoo 1.4, Debian Woody, Mandrake 8.1
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks for the suggestion guys! What do you think could result in some of the packages not being "installable"?
 
Old 09-18-2003, 10:14 PM   #5
footfrisbee
Member
 
Registered: Apr 2003
Distribution: Debian Sarge
Posts: 259

Rep: Reputation: 30
They are not installable because they don't exist in your package lists. In fact they (perlapi and xlibmesa4) don't exist in any of the main distributions (stable, testing, unstable). They're probably still in experimental.
 
Old 09-19-2003, 08:07 AM   #6
dowmun
Member
 
Registered: Feb 2003
Posts: 119

Rep: Reputation: 15
broken dependencies

Hi,
This would be an excellent time for me to be quiet, but since your problem is how to correct the existing situation, I am going to climb out on a limb. I am pretty sure that masinick and footfrisbee are waiting with chainsaws.
I am not familiar with synaptic. As masinick suggests, that may be the best solution. If using it does not satisify, then you might consider the following.

I believe you may have tricked up your /etc/apt/sources.list (as in switching from stable, to unstable, and then back to stable )
I think this because you have perl-5.6.1 installed, but apt-get seems to want version 5.8.0. Version 5.6.1 is stable, while version 5.8.0 is testing (I think).
Perhaps it might help if you posted the contents of /etc/apt/sources.list

You might consider using the command < dpkg -C > and see what is suggested by the output. This command is supposed to make suggestions about what to do to get the packages fixed.

If you have changed the contents of your sources list recently, it is important to run <apt-get update > to reflect newly available or newer versions of packages.

In order to correct the broken dependency problem, you used < apt-get -f install >. The command < apt-get -f remove > will allow apt-get to try to fix broken dependencies by removing things. I would certainly read about this before doing it.
 
Old 09-19-2003, 03:01 PM   #7
footfrisbee
Member
 
Registered: Apr 2003
Distribution: Debian Sarge
Posts: 259

Rep: Reputation: 30
In response to dowmum, those are very good solutions, but this is a bit of a different circumstance. Those two packages just do not exist. The package maintainers just having got to making them yet, but the dependencies are there. This is a possibility when running the unstable distribution. sienarot's sources.list is most likely just fine.
 
Old 09-14-2004, 12:54 AM   #8
Elsiebeth
LQ Newbie
 
Registered: Jun 2004
Location: Missouri
Posts: 1

Rep: Reputation: 0
Unhappy Somewhat same as sienarat's problem

It seems that my problem is that apt-get wants to use perl-base to install and update programs, but there is a dependancy problem between perl-base and libclass-multimethod-perl so that perl-base cannot update itself and I can't uninstall libclass-multimethod-perl because uninstalling it requires the new perl-base.

(I have a Debian SID/KDE system, has always been on SID)

//results of command: apt-get dist-upgrade

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.

//results of command: apt-get -f install

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 libclass-multimethods-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)

//results of command: apt-get remove libclass-multimethod-perl

imethods-perl
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 to be installed
libquantum-superpositions-perl: Depends: libclass-multimethods-perl but it is not going to be installed
perl: Depends: perl-base (= 5.8.4-2.2) but 5.8.4-2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify asolution).
 
Old 09-15-2004, 01:12 PM   #9
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
"I'm trying to fix broken dependencies on my Debian box, but when I do, I get the following errors:"

have you done a dist-upgrade?

what were you trying to install when instructed to do an 'apt-get -f install'?

if you are on sid do:
#apt-get update
#apt-get dist-upgrade

before attempting to install anything.

install 'reportbug' if you're in Sid.

Last edited by macondo; 09-15-2004 at 01:19 PM.
 
  


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
lilo says, "L 01 01 01" and fdisk says, "Unable to seek on /dev/hda1" clausawits Linux - General 3 12-31-2007 09:33 PM
How do I verify my locale information is "correct"? TheLinuxDuck General 3 03-02-2006 03:06 AM
Mandrake 9.2 hangs at "searching for module dependencies" right after install dvishloff Mandriva 1 01-25-2004 12:49 PM
What is correct code for "Include File Function" on .asp pages gregoryfrancis Linux - General 1 02-11-2003 10:49 PM
garbagy screen, says "PC Display settings correct?" eyemopiated Linux - Newbie 4 07-19-2001 04:29 AM

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

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