jump to navigation

How to repair a bad upgrade on Ubuntu! November 29, 2009

Posted by galigio in Computers & Internet, GNU/Linux, Linux, Linux & OpenSource, repair, Tech, Technology, Technology and Software, Technology News, Tecnologia, Ubuntu 9.10, Ubuntu command line, Ubuntu Documentation, Ubuntu tips.
Tags: , , , , , , , , ,
trackback

This week, in our Linux Page (in Spanish) we posted some tips about repairing a bad Linux upgrade.  In fact, it is rare but sometimes, unfortunately, it happens. I mean one or more error during an upgrade installation on Ubuntu. In my case the problem was caused by a blackout and a battery which did not worked properly. When I restarted the PC it worked only in text mode and it asked me the login and the password to enter into the Ubuntu root mode. Obviously, as usual, I typed the requested data and then, after reading how to solve similar problems on internet, I decided to go forward with sudo apt-get update. At this point Ubuntu advised me that something had been wrong during the last update and suggested to try with sudo dpkg –configure -a.  I followed the suggestions and I concluded the “repair session” with  sudo apt-get upgrade –fix-broken. Fifteen minutes later and after rebooting all the “bad upgrade” problems were solved. Recommended! Bookmark this page! mp3 link

Comments»

1. tony - December 10, 2009

its worked man thanksssssssssssss

2. tuah - January 30, 2010

You are a genius…my eyes are so red..thanks man…it works!!

3. Wasif - March 26, 2010

it works…great!

4. karmic - April 15, 2010

what version you are working on. cause I have 9.10 and none on the commands you said worked.

Retuow - May 20, 2010

Try :
dpkg –configure -a
apt-get upgrade –fix-broken

5. Gary - February 4, 2011

I’m about to look for online pc services to help me out….

6. Anuja - April 26, 2011

MAN U ROCK!!!!!!!!!!!!!!!
Thankz!!!

7. Anonymous - August 1, 2011

thanks man..!!!!

8. preston - October 29, 2011

will this work with 11.04

9. qzjul - January 17, 2012

unless you don’t have networking =/
<– got no networking after fail on upgrade to 11.10

10. stoptheworldandturnyourself - February 15, 2012

i have the latest ubuntu available as of 2/14/12;

it tells me;

“E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?”

11. stoptheworldandturnyourself - February 15, 2012

OK, so after going through forums and trying many codes I just rebooted to end all my processes and everything went fine. until sudo apt-get upgrade –fix-broken

I get;

error: cannot read from ‘/dev/sda’.

it hangs and just keeps repeating the error.

This is the problem i was having when i initially tried installing ubuntu (right now i am just trying to get my wireless driver, ubuntu runs just fine). The harddrive was bad on this laptop so i had to get an external and install it on that. i think it is, for whatever reason, trying to read my bad internal hd. Any help would be great. So far, everything else on ubuntu seems to be fine. But then again, I have barely been using it because I don’t have the wireless driver. right now i am crammed in a corner next to my router lol. Please help if you can.

12. Zach Darian - March 16, 2012

If I try “sudo apt-get upgrade -fix-broken” I get the following error:
“E: Command line option ‘i’ [from -fix-broken] is not known.”

I get a similar error with trying the other line you provided…I think this upgrade really screwed something up.

Anonymous - April 3, 2012

The line should be “sudo apt-get upgrade –fix-broken”
Note the second ‘-’ before the last argument.

13. Anonymous - April 3, 2012

Wow, the comment system strips away one of the dashes. No wonder this has been hard to get correct.
Anyway, there are supposed to be two dashes before the ‘fix-broken’ argument.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,360 other followers