Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was upgrading ubuntu to 13.04 from 12.10 when the software upgrade crashed. I restarted and it loaded 13.04 but the installation was half complete. I try sudo apt-get -f install and dpkg -a --configure and bother are telling me there are too many errors. Is there a way to recover this installation?

share|improve this question
1  
You might be able to fix it but it wont be a good install, you will have crashes and performance loss, so boot up with a live-usb and backup all the data then do a clean 13.04 install. –  Alvar Sep 27 '13 at 22:05
    
+1 to Alvar's suggestion. Use a live CD. And you should be backing up data when upgrading anyways, whether over the network or from a CD. –  nbm Sep 28 '13 at 4:33
add comment

2 Answers

Here's what you need to do:

  1. Open Terminal. I assume you know how to do this.
  2. Run sudo apt-get update && sudo apt-get install aptitude && sudo aptitude
  3. Press g
  4. Press Shift+U
  5. Press g again
  6. Follow any instructions you are given
  7. Once aptitude is done, press q
  8. Restart

This works because aptitude is often better at fixing these problems than apt-get is.

share|improve this answer
add comment

I recommend you to fix your problem in Recovery Mode

  • When your system starts chose Recovery Mode (2nd option in grub menu). You may have to hold Shift while booting if your system starts automatically without grub menu.

  • From the Menu just go to Grub option, it will give a message like Updating grub will mount your system in read/write mode. Just chose yes to mount your system in read/write mode. It will update your grub and will exit from Grub menu.

  • chose network option it may enable your network (It is good to be connected via Wired Lan).
  • Then chose dpkg menu from the list, chose yes for all. (it will try to fix your broken packages, in either of case success/fail proceed to next step)
  • Finally chose root option and login. Execute following commands one after another:

      apt-get autoremove
      apt-get autoclean
      apt-get update
      apt-get -f install
      apt-get dist-upgrade
      apt-get upgrade
    

    Then reboot your system and check whether your issue solved or not. Run this command to reboot:

      reboot
    

Reply if you need further assistance..

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.