Blog entries
2008 Apr 03

Strawberry Perl for Windows.
2008 Apr 01

Oslo Hackathon day -4.
2008 Mar 28

Blogging about Perl outside the community?.
2008 Mar 27

OSCON Proposals rejected.
2008 Mar 26

Preparing for the QA Hackathon in Oslo.
2008 Mar 25

Missing licenses on CPAN modules?.
2008 Mar 24

License of Perl Modules on CPAN.
2007 Dec 24

Joining Technorati?.
2007 Dec 24

Regular Expressions in Perl 5.10.
2007 Dec 24

Switching in Perl 5.10.
2007 Dec 24

Smart Matching in Perl 5.10.
2007 Dec 24

What's new in Perl 5.10? say, //, state.
2007 Dec 23

The Zulo interview was published.
2007 Dec 08

Frequency of programming languages on LinkedIn.
2007 Dec 06

Interview in Zulo.
2007 Dec 06

Sun Startup Essentials Launch.
2007 Aug 25

Testing PostgresSQL.
2007 Aug 25

Testing Pugs and Perl 6.
2007 Aug 22

Testing Ruby.
2007 Aug 22

Testing GHC, the Glasgow Haskell Compiler.
2007 Aug 22

Testing NUT, the Network UPS Tools.
2007 Aug 21

Testing SQLite .
2007 Aug 20

Smoked Parrot.
2007 Aug 20

Quality Assurance of Perl 5.
2007 Jul 09

Using mod_perl for szabgab.com.
2007 Jul 07

Quality Assurance and Automated Testing in Open Source Software.
2007 Jul 07

Add tags to CPAN modules via CPAN::Forum .
2007 Jun 15

Windows on VMware.
2007 Jun 13

Reducing the social gap of the information age.
2007 May 25

Moving to a new server.
2007 May 04

Preparing an application for distribution.
2007 May 01

Spreadsheet::ParseExcel is looking for a maintainer.
2007 Apr 28

CPAN Modules in Linux Distributions.
2007 Apr 18

Version control of single files using Subversion.
2007 Apr 13

Testing results, Perl and CPAN module availability.
2006 Aug 05

Perltraining.org split into two.
2006 Jul 23

Upgrading Ubuntu to 6.06, (Dapper Drake).
2006 Jul 22

Ginger Spam Salad.
2006 Jul 20

Automating the blog.
2006 Jul 19

Wish list: search engine for Perl related sites.
2006 Jul 19

Perltraining.org .
2006 Jul 19

More blog related issues.
2006 Jul 19

Starting a blog.

 

home | blog

Upgrading Ubuntu to 6.06, (Dapper Drake)

As the latest version of Ubuntu (version 6.06 also called Dapper Drake) has been released a couple of weeks ago I decided it was time to upgrade.

I think I have never upgraded (successfully) an operating system. Back when I ran Microsoft Windows and even admined a few of them I used to reinstall the whole system every 6 months or so. That way I did not have to take too much care how much rubbish the developers installed. I did this both using the same version and while upgrading.

Since I started to use Linux I kept replacing distributions every year or so. Once or twice - when I was using Debian - I attempted to move from stable to unstable every time resulting in a fresh installation of the whole machine.

So I was a bit worried.

I had 3 machines with Ubuntu 5.10 (Breezy Badger). The graphical Update Manager offers a button to upgrade to 6.06. Pressing it you get a short explanation what will happen and where can you get help and then the rest is nearly automatic.

The first one was a simple upgrade. The machine was installed just 2 months ago and was hardly used. There were hardly any applications on it. I did not worry either as if something went wrong I would only need to reinstall it. There was hardly any configuration or personal files on it.

The upgrade was nearly smooth, during the configuration step the system reported that /etc/login.defs was changed so I had to decide to keep my changes or to upgrade to the one that ships with the new version of Ubuntu.

The second machine was a bit harder. This is my home server with some development tools and many games on it. It had the same issue with /etc/login.defs and in addition at some point near the end, the upgrade suddenly stopped. tetex-base had some problems and the window said installArchives() failed and that my system might be in an unstable state. Not too promising.

Luckily after a short search and a few trial and errors I figured out I have to remove the packages that depend on tetex-base. In my case it was the following:

sudo dpkg --purge docbook-utils
sudo dpkg --purge jadetex
sudo dpkg --purge mailutils

sudo apt-get dist-upgrade

sudo install mailutils
sudo install docbook-utils

The third machine - my notebook - is right now under upgrade. It has the most of the packages and right now it seems to be stuck. It is in the Downloading and installing the upgrades phase saying Downloading file 1247 of 1496 It has been like this for over 20 minutes now. I guess the connection to the server is down.

I waited quite a long time till I decided to kill the dapper process. It seems http://us.archive.ubuntu.com/ stopped responding. In /etc/apt/sources.list I replaced all occurance of the above URL by one that should be also faster for me: http://il.archive.ubuntu.com/ then started the process again with the graphical Update Manager. I was happy to notice it remembered that the first 1246 files were already downloaded and went on from 1247.

The it had the same issue with /etc/login.defs as the other two and the same problem with tetex as the server. This time I took more detailed notes. If this is relevant for someone.

The error message I got.

Could not install 'tetex-base'
subprocess post-installation script returned error exit status 1

In the console this appeared:

dependency problems - leaving unconfigured
(the same for tetex-extra)
dapper: Fatal IO error 9 (Bad file descriptor) on X server :0.0.
tetex-base
tetex-bin
tetex-extra
jadetext

The upgrade aborts now. Your system can be in an unusable state. A recovery
was run (dpkg --configure -a).
installArchives() failed

And the solution that worked for me:

$ sudo dpkg --purge tetex
$ sudo dpkg --purge jadetex
$ sudo dpkg --purge docbook-utils

$ sudo apt-get dist-upgrade

$ sudo apt-get remove libtidy-dev
$ sudo apt-get install libtidy-dev
$ sudo apt-get install docbook-utils

It was a bit scary, but now I think I have three upgraded machines.

Last Update: Tue Sep 25 17:06:26 2007