Monday, December 10, 2012

Ubuntu and the peril of distribution upgrades

Most people would agree that software updates can be extremely annoying. This is especially true if you are a Windows user and have experienced sudden shutdowns or a half hour delay while Adobe Acrobat updated. Updating antivirus, Firewall, Flash, browser, Java and Windows can be a big annoyance. Furthermore, the updates are usually enforced at the most inconvenient times. I have been in situations where I needed to quickly open a PDF file in order to print it and then had to wait 40 minutes for the program to update.

Luckily most Linux distributions have a much better way of installing updates. The unattended upgrades in Ubuntu are rarely noticed. They may require restart of Firefox or a reboot of the machine to use the new kernel, but it can usually be delayed until it is convenient. This is made possible partly by the filesystem that, unlike Windows, allows you to update a file while in use (the program will just continue to use the old file until restarted) and partly thanks to the brilliant program known as Apt.

Apt is a wonderful thing. apt-get, aptitude and synaptic were the programs that always attracted me to Debian, and then Ubuntu made it easily accessible. I was not late to make the switch from Debian to Ubuntu. After all, time is the limiting resource in my life, so allowing me to use more of it is great.

There is however one thing that still does need improvement, and that is the distribution upgrade process. It is not that it is worse than for any other operating system. It is better than installing a service pack, for instance, but it is not as good as it could be. Yesterday I updated an old Ubuntu 11.04 machine to Ubuntu 11.10. I fired up the update program and soon afterwards the program started to get files. The time remaining bar said about two hours. As my time is too valuable to spend two hours looking at a bar moving, I want to do better things. After two hours I returned to see that it had stopped after 30 minutes to tell me that it had updated PostgreSQL from 8.4 to 9.1 and asked me to click "Ok". Was it absolutely necessary to halt the installation for 90 minutes to ask me to make no choices at all? So I went away to use the next 90 minutes for something productive. When I returned, a new popup box had appeared and asked me for the password to phpMyAdmin. At least this time the program actually asked for information, but was it important to halt the remaining updates for 30 minutes to ask me that?

Sometimes I just opt for a full reinstall. I have a separate /home partition, so it is not that big a deal. However, this is not limited to my desktop but also affects my Debian servers. Servers that I prefer not to take down and reinstall if I can avoid it.

It is not that it is bad compared to other operating systems, it just isn't as good as it could be and that annoys me.