PDA

View Full Version : [ubuntu] Borked apt-get



Kareeser
October 6th, 2009, 01:38 AM
So, I wanted to try the new notify-osd on Jaunty... except it's not backported because of the unmet deps.

So I downloaded the karmic notify-osd from my mirror and attempted to install it (using dpkg), but it wanted libgtk2.0-0 1.18, while I only had 1.16... so I downloaded libgtk2.0-0 and tried to install it (again, using dpkg), and found that it needed four or five MORE other packages.

So, I gave up.

Except now, I can't install anything because apt still thinks libgtk2.0-0 2.18.1-1 is installed... when it is clearly not.

When trying to correct dependencies using apt-get -f install, apt says I should remove 238 programs, many of which are crucial system packages.

Not so smart.

Any ideas on how I can restore my system?

earthpigg
October 6th, 2009, 01:42 AM
did you do this by putting karmic stuff in your jaunty install and trying to trick it?

if so,

get yourself back to a normal jaunty sources.list and try running 'sudo apt-get update'.

Kareeser
October 6th, 2009, 01:46 AM
Nope... if I changed my sources.list to karmic values, I should end up updating everything, and end up with a karmic system, which I've done in the past.

In this scenario, my sources.list is unchanged, and sudo apt-get update doesn't fix the problem.

Kareeser
October 6th, 2009, 02:10 PM
Bump?

The problem is that my install seems to think dependencies are broken, because a more recent package (libgtk2.0-0) was in the middle of installing, but was aborted.

unutbu
October 6th, 2009, 02:26 PM
Perhaps download the correct jaunty deb from http://packages.ubuntu.com/jaunty/libgtk2.0-0
and then try


sudo dpkg --install --force-overwrite libgtk2.0-0_2.16.1-0ubuntu2_i386.deb

Kareeser
October 6th, 2009, 02:43 PM
Thanks, unutbu. I was about to give --force-downgrade a try when I got to work (since this was on a work computer), but --force-overwrite seems to be similar.

I'm also planning on inspecting /var/lib/dpkg/status for differences.

I'll let you know.

Kareeser
October 6th, 2009, 06:36 PM
Note for future users: the --force-downgrade option worked.

I retrieved the packages from my mirror: http://ubuntu.mirror.rafal.ca/ubuntu

unutbu
October 6th, 2009, 07:15 PM
Thank you for the update, Kareeser, and glad you got it fixed.

Just out of curiosity, did the --force-overwrite fail to work, or did you try the --force-downgrade first?

Kareeser
October 7th, 2009, 01:19 AM
I tried just the one. To be honest, I think both options would have achieved the same effect.