"Dependency resolution failed"
I keep getting messages "Dependency Resolution Failed" I don't know what to do. Tells me to use Synaptic or aptitude. But I don't know how. I can get no updates now. Have been using Kubuntu for 1 year now with no problems except for losing all audio. But I can live with that. Otherwise working great.
Can you please help? "Dependency resolution failed" messages keep popping up on my screen about every ten minutes.
I am thinking this must be a major problem.
I have never seen this message before. It also says: "A package dependency could not be found."
How can I repair this problem? Do you have suggestions?
Can I re-install Kubuntu on my hard drive and still keep all of my old data?
Hope you can help.
Best regards
Pat L.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Pat
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Message says: "There are broken dependencies in my system".
Revision history for this message
|
#2 |
Hi,
First please make sure to close all open programs, including all package managers like Synaptic, Add/remove programs, etc ...
Then please try this procedure:
Step 1: Open Terminal from "Applications-
Terminal"
Step 2: Please COPY-PASTE each line below into the Terminal then hit <enter> after each line)
sudo cp -arf /var/lib/dpkg /var/lib/
sudo cp /var/lib/
sudo cp /var/lib/
sudo rm -rf /var/lib/
sudo rm -rf /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/
LANG=C;sudo aptitude clean
LANG=C;sudo aptitude autoclean
LANG=C;sudo apt-get update
sudo dpkg --clear-avail
sudo dpkg --configure -a
LANG=C;sudo aptitude install -f
LANG=C;sudo aptitude update
LANG=C;sudo aptitude dist-upgrade
Step 3: Please post results (copy/paste terminal output from each command) on this thread
Hope it helps,
Regards,
Mark
Revision history for this message
|
#3 |
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
liz@liz:~$ LANG=C;sudo aptitude autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Freed 0B of disk space
liz@liz:~$ LANG=C;sudo apt-get update
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Get:50 http://
Get:51 http://
Get:52 http://
Fetched 11.5MB in 2min 36s (73.2kB/s)
Reading package lists... Done
iz@liz:~$ LANG=C;sudo aptitude install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
liz@liz:~$ LANG=C;sudo aptitude update
[sudo] password for liz:
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Reading package lists... Done
liz@liz:~$ LANG=C;sudo aptitude dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages are BROKEN:
libpq5
The following packages will be upgraded:
libavformat52 libpostproc51 tzdata tzdata-java
5 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 1730kB of archives. After unpacking 8192B will be used.
The following packages have unmet dependencies:
libpq5: Depends: libkrb53 (>= 1.6.dfsg.2) but it is not installable
The following actions will resolve these dependencies:
Keep the following packages at their current version:
libpq5 [8.4.3-0ubuntu9.10 (now)]
Score is 120
Accept this solution? [Y/n/q/?] Y
The following packages will be upgraded:
libavformat52 libpostproc51 tzdata tzdata-java
4 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 1601kB of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n/?] Y
Writing extended state information... Done
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Fetched 1601kB in 13s (118kB/s)
Preconfiguring packages ...
(Reading database ... 238326 files and directories currently installed.)
Preparing to replace tzdata-java 2010h-0ubuntu0.9.10 (using .../tzdata-
Unpacking replacement tzdata-java ...
Preparing to replace tzdata 2010h-0ubuntu0.9.10 (using .../tzdata_
Unpacking replacement tzdata ...
Setting up tzdata (2010i-
Current default time zone: 'America/Chicago'
Local time is now: Sat May 1 17:44:15 CDT 2010.
Universal Time is now: Sat May 1 22:44:15 UTC 2010.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
(Reading database ... 238326 files and directories currently installed.)
Preparing to replace libavformat52 4:0.5+svn200907
Unpacking replacement libavformat52 ...
Preparing to replace libpostproc51 4:0.5+svn200907
Unpacking replacement libpostproc51 ...
Setting up tzdata-java (2010i-
Setting up libavformat52 (4:0.5+
Setting up libpostproc51 (4:0.5+
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Current status: 1 update [-4].
Revision history for this message
|
#4 |
The Terminal output seems to indicate that your package manager is working correctly now.
Revision history for this message
|
#5 |
Thank you very much Mr. Rijkenberg!
Would you please share with me the possible reason that
this problem occurred, and also what exactly was required to
repair the problem.
Did I somehow cause this problem on my computer?
Best regards,
Pat L.
Revision history for this message
|
#6 |
Impossible to say what exactly caused the issue to occur. I do not have the history of actions taken on your pc before you received the error ""Dependency resolution failed"
The first message I sent you (and that you followed) contains the procedure for fixing package manager issues (like this one) in the future.