Fixing an ubuntu ‘broken dependencies’ manually

2009 April 27
by rumytaulu

I got a little problem after upgrading my Fujitsu’s Ubuntu 8.10 to 9.04, I removed some of the kernel files and directory by hand some time ago, and it turned back as a problem after the upgrading was complete. To make it short, I can not update anything before the broken dependencies is fixed, but I can’t fix the broken dependencies because all the files were already manually deleted by me. Lucky me the Synaptic Package Manager list the directories and files that were deleted, so here’s what I’ve done

1. Created all the directories with mkdir
mkdir -p /lib/modules/2.6.27-7-generic/volatile/

2. Created all the files with touch
touch /boot/System.map-2.6.27-7-generic
touch /boot/initrd.img-2.6.27-7-generic

3. Fixing it with
sudo aptitude -f remove

And finally I can use the Update Manager again.

3 Responses leave one →
  1. 2009 April 28

    Thank you, I did the same. With your instructions I was able to fix the broken dependences

    • 2009 April 28
      rumytaulu permalink

      You’re welcome David, glad my blog can help you.

  2. 2009 October 22
    addy b. permalink

    thanx sweetheart I fixed a problem you’re great

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS