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.

Yesterday I started the upgrade from 12.10 to 13.04, but I interrupted it because it was taking too long. Now if I restart it, it doesn't proceed.

Is there any possibility to clean the mess he left when I interrupted him and make a clean restart of this update?

Thanks for any help you can provide!

share|improve this question
    
There must be a way to a) delete all temporary data he stored for the last trial or b) tell him to start again. The simple way "just go ahead where you were interrupted" does not seem to work! –  Dave Sep 17 '13 at 14:33
1  
I'm not sure, but maybe 'sudo apt-get upgrade' and afterwards 'sudo apt-get update' could have fixed it! –  Dave Sep 17 '13 at 19:08
    
I added instructions to my answer for how to delete all the download packages. As for the upgrade/update, usually you want to do it the other way around: "sudo apt-get update && sudo-apt-get upgrade" (you can do it on one line--the '&&' means the second command will only run if the first succeeds). –  Eric Lambart Sep 17 '13 at 19:36
add comment

1 Answer 1

up vote 13 down vote accepted

Try these steps, from the command line:

Kill any process which may be locking the package system (if it finds any, it will ask you to confirm):

$ sudo fuser -vki /var/lib/dpkg/lock

At this point you may want to try to restart the upgrade.

If that doesn't work, try this (-f is short for --fix-broken); it will try to fix broken dependencies:

$ sudo apt-get install -f

If it still doesn't work, try this to fix/reconfigure the existing, unpacked-but-not-yet-configured packages:

$ sudo dpkg --configure -a

Then try the upgrade again.

If it fails again, you may want to delete all the already- downloaded packages (they should be stored in /var/cache/apt/archives), do

$ sudo apt-get clean

That will clean up the packages but if you're still stuck in some weird state, I'm not sure what else to suggest.

Of course, before you do anything you should back up any important contents of your /home/dave directory (or whatever your $HOME dir is). Hopefully you won't have to do a complete re-installation but at least you'd have your data.

Good luck!

share|improve this answer
    
I did everything you wrote here. Thanks for the detailed advice! But I'm afraid the GUI-Software-Updater still fails. The only way I get him to do anything is via terminal, but that doesn't change my computer being stuck in some weird state. –  Dave Sep 18 '13 at 14:08
    
Sure, sorry nothing worked. I found this thread yesterday which mentions a couple other angles. Maybe something in here? ubuntuforums.org/… –  Eric Lambart Sep 18 '13 at 17:12
    
Thank you very much for your help! Didn't give up and than, after a couple of trials in altering steps, I got it to work! Your code did fix the problem. –  Dave Sep 19 '13 at 13:21
    
You're welcome, glad I could help! –  Eric Lambart Sep 19 '13 at 18:27
1  
confirm that sudo apt-get install -f restarted dpkg for me. my upgrade was interrupted when network connection dropped. prob should use screen when upgrading remotely, which I thought ubuntu did at one point... –  lukewendling Mar 9 at 2:26
show 1 more 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.