Friday, 30 October 2009

upgrading to 9.10 64 bit

At the time of writing, ubuntu 9.10 64 bit is not available for download from the ubuntu site but you can upgrade from 9.04 (64 bit) to 9.10 (64 bit) via the UpdateManager.
So, I tried.
Mostly it was OK but there were a few glitches.
The installation failed for me because it attempted to remove an old version of linux that was not there. For me this was linux-restricted-modules-2.6.28-11-generic

In order to delete it you would normally

$ sudo apt-get remove linux-restricted-modules*


$ sudo apt-get autoremove

But that did not work. The remove task complained that certain files did not exist. So I simply created the following folders:
# /lib/modules/2.6.28-11-generic
# /lib/modules/2.6.28-11-generic/volatile
created a file in volatile
# touch /lib/modules/2.6.28-11-generic/volatile/dummy.txt
copied an existing file in /boot to :
# /boot/
copied an existing initrd.* file from /boot to:
# /boot/initrd.img-2.6.28-11-generic

Then I ran the apt-get commands again and it stopped complaining

Then I removed the files I created and some others that were put there during the apt-get
# rm /boot/
# rm /boot/initrd.img-2.6.28-11-generic
# rm /lib/modules/2.6.28-11-generic/volatile/dummy.txt
# rmdir /lib/modules/2.6.28-11-generic/volatile
# rm /lib/modules/2.6.28-11-generic/*
# rmdir /lib/modules/2.6.28-11-generic

Seemed to work for me since when I next ran Update Manager and this time it finished working without an error.

No comments:

Post a Comment