Dapper to Hardy in 23 painful hours

I I finally set about upgrad­ing my home server1 from Dap­per to Hardy yes­ter­day. I had been hop­ing for a less trau­matic expe­ri­ence then upgrad­ing my desk­top com­puter from Dap­per to Gusty2. Unfor­tu­nately I once again ran into prob­lems. First off, it’s been nearly a week since Hardy was offi­cially released but when I tried to run the offi­cial upgrade tools they all ini­tially told me I was run­ning the lat­est ver­sion. Accord­ing to the doc­u­men­ta­tion, I should have been able to run either sudo do-release-upgrade or sudo update-manager but nei­ther worked. I was only able to start the upgrade process by run­ning sudo update-manager -d and my under­stand­ing is that “-d” tells the pro­gram to grab the lat­est devel­op­ment ver­sion. Weird, but oh well. Then the process just dragged on and on and on and on and on.… I even­tu­ally went to bed leav­ing it run­ning. The only rea­son I stayed up as late as I did with it was the excel­lent book I was reading.

When I got up this morn­ing, it was still run­ning but was hung up on a ques­tion I needed to answer. I clicked through the ques­tion and a few more before head­ing off to work. When I got home, again the upgrade was hung up on a ques­tion. I worked my way through answer­ing all the ques­tions and let the upgrader do its job. Unfor­tu­nately the upgrader even­tu­ally failed on these pack­ages: gnome-applets-data, gnome-applets, ubuntu-desktop and update-manager. I clicked through the errors and then the upgrader said:

Could not install the upgrades
The upgrade aborts now. Your sys­tem could be in an unus­able state. A recov­ery will run now (dpkg –con­fig­ure –a).

I clicked ok to the error, some­thing flashed up and then the upgrader died/vanished/went away. I tried running:

  • sudo aptitude update but it sat there for far too long for my sleep deprived and impa­tient self.
  • sudo aptitude upgrade, only it said there wasn’t any­thing to upgrade.
  • sudo aptitude autoclean, *shrug* it's part of my standard script for updating my systems.
  • sudo aptitude dist-upgrade, only it said there wasn’t any­thing to upgrade.
  • sudo dpkg --configure -a, it said there were uncon­fig­ured pack­ages but it couldn’t fix them automag­i­cally. It mostly com­plained about gnome-applets-data.

I ended up run­ning sudo aptitude install gnome-applets-data gnome-applets ubuntu-desktop update-manager and that fixed up those errors no prob­lem. For gig­gles of insan­ity I tried run­ning sudo aptitude -s -f install to see what else might be left to update3. It found another 111 pack­ages it wanted to remove but some of them I want to keep, so I’ll have to look into that more closely. Most likely all these errors were caused by my own fool­ish­ness, as at one point I was test­ing some stuff out on the machine and enabled some 3rd party repos­i­to­ries to install unsup­ported apps. *blech* I don’t think I’ll be doing that again. I was able to reboot the machine and con­nect to it via SSH and SMB, but HTTP seems to be bro­ken at the moment. *bug­ger* Apache is one of the pack­ages sudo aptitude -s -f install wanted to remove. I guess look­ing into that just got bumped up my pri­or­ity list.

1 An old Dell Dimen­sion desk­top with a PII-400 CPU and 256 MB of RAM.
2 Never fear, Fritz (my desk­top PC) is next on my list of machines to upgrade.
3 More accu­rately, I found some instruc­tions when upgrad­ing my desk­top from Dap­per to Gusty that rec­om­mended doing that to ensure all apps got updated.

Similar Posts

  • Upgrade Complete
    I finished up all the upgrades to my home PC putting me on Kubuntu 7.10 (Gutsy Gibbon). Unfortunatel ...
  • Kubuntu 8.04 to 8.10
    Last night I upgraded my home PC from Kubuntu 8.04 to 8.10.  On the one hand, the upgrade went bette ...
  • Jaunty Upgrade After Effects
    Being something of a linux/technology geek and with the recent-ish release of Ubuntu 9.04, I decided ...
  • Lucky Day
    This will be a somewhat scatterbrained... err, random post. First off if you are having problems wit ...
  • Upgrade Begins!
    I've been running Kubuntu 6.06 LTS as my main OS on my home PC since it was released. Along the way ...

About Mark McKibben

Mark works as a [REDACTED] for [REDACTED], currently residing in Iowa. CoffeeBear.net is a place for him to blather on about whatever strikes his fancy. He currently spends his "free" time working on a photography project, playing with his cat and attempting to keep his wife happy (not necessarily in that order).

3 Comments

  1. Dan says:
    May 1st, 2008 at 9:10 am

    Some­times you have to ride the waves where they take you. Keep a list of what major apps you had run­ning (like apache), and if it unin­stalls them dur­ing the upgrade, rein­stall them after. As long as you don’t –purge remove any apps, you should be in fairly good shape.

    Even linux sys­tems get crufty. Some­times you just have to back up and start fresh. I cer­tainly did on our server, when I moved from Debian Sid to Ubuntu Gutsy.

  2. Mark says:
    May 1st, 2008 at 9:20 am

    Yup defin­tely looks like apache is going to need a rein­stall. I wrote up this post in part as I was so dang grumpy about the upgrade and in part for me to keep track for when I upgrade this machine again after the next LTS release comes out. I’ll be post­ing follow-ups to what I had to do to get every­thing work­ing prop­erly in the com­ments here if you’re interested.

  3. Mark says:
    May 1st, 2008 at 3:19 pm

    Ended up rein­stalling Apache, PHP & MySQL in order to get things work­ing cor­rectly again. Of course, this was after run­ning the force install which actu­ally removed some­where around 111 pack­ages rather than installing any­thing. *sigh* But at least now every­thing seems to be work­ing as it should be on that machine.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.