My ongoing experiences with Ubuntu, and later Mythbuntu, as a media center with MythTV. I'm also using the system for a virtual machine server, a mediawiki server and a general all around home infrastructure base.

Saturday, November 1, 2008

Upgrading to Ubuntu 8.10

Ok, upgrading from 8.04 to 8.10. I started with my servers and followed the directions at Network Upgrade for Ubuntu Servers.

update-manager-core was already installed. I edited /etc/update-manager/release-upgrades and set "Prompt=normal", changing from "lts".

Then I tried running 'do-release-upgrade' and ran into my first problem:
# do-release-upgrade
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'intrepid.tar.gz'
authenticate 'intrepid.tar.gz' against 'intrepid.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:

gpg: WARNING: unsafe permissions on homedir `/tmp/tmpc88EwD'

gpg: can't open `/tmp/tmpc88EwD/intrepid.tar.gz.gpg'
gpg: verify signatures failed: file open error

Authentication failed
Authenticating the upgrade failed. There may be a problem with the network or with the server.


I suspected this has something to do with my use of apt-cacher. Poking around the net I found this bug which backed that up and provided a patch to apt-cacher.

Back on my caching system, I did the following to apply the patch:

# cp /usr/sbin/apt-cacher /usr/sbin/apt-cacher.orig
# vi /usr/sbin/apt-cacher
# diff /usr/sbin/apt-cacher.orig /usr/sbin/apt-cacher
111c111,112
<                  'Translation-.+\.bz2'
---
>                  'Translation-.+\.bz2',
>                    '[:alpha:]*\.tar\.gz\.gpg$'

And then I had to restart apt-cacher:
# /etc/init.d/apt-cacher restart
Restarting Apt-Cacher: apt-cacher.

Then back on my upgrading system, I ran 'do-release-upgrade' again and it worked fine.

On various systems, I installed the new version of:
  • /etc/dhcp3/dhclient.conf
  • /etc/apt/apt.conf.d/01ubuntu

I kept my versions of the following files:
  • /etc/apache2/apache2.conf
  • /etc/apache2/sites-available/default
  • /etc/php5/apache2/php.ini
  • /etc/smb.conf
  • /etc/services
  • /etc/smb.conf
  • /etc/apt-cacher/apt-cacher.conf

I removed 19-20 obsolete packages and then answered "y" to reboot at the end. When the system came back up, all looked good:

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.10
DISTRIB_CODENAME=intrepid
DISTRIB_DESCRIPTION="Ubuntu 8.10"

For my mythbuntu box, I followed the same network upgrade procedure as above. 54 obsolete packages were removed.

Still to go is getting VMWare back up and working and upgrading my Ubuntu laptop. Those will follow in separate posts.

1 comment:

Deadpan110 said...

I had the same problem and after reading your post, I decided not to modify core files but instead just renamed my /etc/apt/apt.conf to apt.conf.backup (how i am using apt cacher)

Upgrading then worked :)

I will rename the file back again once I am sure that all is well.