thewatertower.org.uk

ben@akira:~$ sudo bash
root@akira:~# echo 'deb http://archive.ubuntu.com/ubuntu/ jaunty main restricted' | tee -a /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ jaunty main restricted
root@akira:~# apt-get update
[...]
Get: 7 http://archive.ubuntu.com jaunty/restricted Translation-en_GB [4640B]                       
Get: 8 http://archive.ubuntu.com jaunty Release [74.6kB]                                           
Get: 9 http://archive.ubuntu.com jaunty/main Packages [1251kB]
Get: 10 http://archive.ubuntu.com jaunty/restricted Packages [8858B]
root@akira:~# aptitude search linux | grep 2.6.24 | grep ^i
i   linux-headers-2.6.24-22         - Header files related to Linux kernel versi
i   linux-headers-2.6.24-22-generic - Linux kernel headers for version 2.6.24 on
i   linux-image-2.6.24-22-generic   - Linux kernel image for version 2.6.24 on x
i   linux-restricted-modules-2.6.24 - Non-free Linux 2.6.24 modules on x86/x86_6
i   linux-ubuntu-modules-2.6.24-22- - Ubuntu supplied Linux modules for version 
root@akira:/# aptitude -F '%p' search linux | grep 2.6.28
linux-backports-modules-2.6.28-11-generic                                       
linux-backports-modules-2.6.28-11-server                                        
linux-doc-2.6.28                                                                
linux-headers-2.6.28-11                                                         
linux-headers-2.6.28-11-generic                                                 
linux-headers-2.6.28-11-server                                                  
linux-headers-lbm-2.6.28-11-generic                                             
linux-headers-lbm-2.6.28-11-server                                              
linux-image-2.6.28-11-generic                                                   
linux-image-2.6.28-11-server                                                    
linux-image-2.6.28-11-virtual                                                   
linux-ports-doc-2.6.28                                                          
linux-ports-headers-2.6.28-6                                                    
linux-ports-source-2.6.28                                                       
linux-restricted-modules-2.6.28-11-generic                                      
linux-restricted-modules-2.6.28-11-server                                       
linux-source-2.6.28  

root@akira:~# apt-get install \
linux-headers-2.6.28-11 \
linux-headers-2.6.28-11-generic \
linux-image-2.6.28-11-generic \
linux-source-2.6.28 \
linux-restricted-modules-2.6.28-11-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  findutils libc6 libc6-dev libc6-i386 wireless-crda
Suggested packages:
  glibc-doc manpages-dev libncurses-dev ncurses-dev kernel-package libqt3-dev
The following NEW packages will be installed
  linux-headers-2.6.28-11 linux-headers-2.6.28-11-generic linux-image-2.6.28-11-generic linux-restricted-modules-2.6.28-11-generic linux-source-2.6.28 wireless-crda
The following packages will be upgraded:
  findutils libc6 libc6-dev libc6-i386
4 upgraded, 6 newly installed, 0 to remove and 985 not upgraded.
Need to get 103MB of archives.
After this operation, 248MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
[...]
Fetched 103MB in 1min33s (1106kB/s)                                                                                                                                                                  
Preconfiguring packages ...
(Reading database ... 111348 files and directories currently installed.)
Preparing to replace findutils 4.2.32-1ubuntu2 (using .../findutils_4.4.0-2ubuntu4_amd64.deb) ...
Ignoring nonregistered document `findutils'
Unpacking replacement findutils ...
Setting up findutils (4.4.0-2ubuntu4) ...

Selecting previously deselected package wireless-crda.
(Reading database ... 111349 files and directories currently installed.)
Unpacking wireless-crda (from .../wireless-crda_1.7_amd64.deb) ...
Selecting previously deselected package linux-image-2.6.28-11-generic.
Unpacking linux-image-2.6.28-11-generic (from .../linux-image-2.6.28-11-generic_2.6.28-11.42_amd64.deb) ...
Done.
Selecting previously deselected package linux-restricted-modules-2.6.28-11-generic.
Unpacking linux-restricted-modules-2.6.28-11-generic (from .../linux-restricted-modules-2.6.28-11-generic_2.6.28-11.15_amd64.deb) ...
Preparing to replace libc6-i386 2.7-10ubuntu4 (using .../libc6-i386_2.9-4ubuntu6_amd64.deb) ...
Unpacking replacement libc6-i386 ...
Preparing to replace libc6-dev 2.7-10ubuntu4 (using .../libc6-dev_2.9-4ubuntu6_amd64.deb) ...
Unpacking replacement libc6-dev ...
Preparing to replace libc6 2.7-10ubuntu4 (using .../libc6_2.9-4ubuntu6_amd64.deb) ...
Checking for services that may need to be restarted...
Checking init scripts...
Stopped glibc upgrade.  Please retry the upgrade after you have
checked or stopped services by hand.
dpkg: error processing /var/cache/apt/archives/libc6_2.9-4ubuntu6_amd64.deb (--unpack):
 subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.9-4ubuntu6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

glibc wanted gdm down to do the upgrade.

root@akira:/# /etc/init.d/gdm stop
 * Stopping GNOME Display Manager... 
root@akira:/# apt-get install \
> linux-headers-2.6.28-11 \
> linux-headers-2.6.28-11-generic \
> linux-image-2.6.28-11-generic \
> linux-source-2.6.28 \
> linux-restricted-modules-2.6.28-11-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-image-2.6.28-11-generic is already the newest version.
linux-restricted-modules-2.6.28-11-generic is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
  libc6-dev: Depends: libc6 (= 2.9-4ubuntu6) but 2.7-10ubuntu4 is to be installed
  libc6-i386: Depends: libc6 (= 2.9-4ubuntu6) but 2.7-10ubuntu4 is to be installed
  linux-headers-2.6.28-11-generic: Depends: libc6 (>= 2.8) but 2.7-10ubuntu4 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
root@akira:/# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies...Done
The following extra packages will be installed:
  libc6
Suggested packages:
  glibc-doc
The following packages will be upgraded:
  libc6
1 upgraded, 0 newly installed, 0 to remove and 985 not upgraded.
5 not fully installed or removed.
Need to get 0B/4952kB of archives.
After this operation, 516kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Preconfiguring packages ...
(Reading database ... 114031 files and directories currently installed.)
Preparing to replace libc6 2.7-10ubuntu4 (using .../libc6_2.9-4ubuntu6_amd64.deb) ...
Checking for services that may need to be restarted...
Checking init scripts...
Unpacking replacement libc6 ...
Replacing files in old package belocs-locales-bin ...
Setting up libc6 (2.9-4ubuntu6) ...
Installing new version of config file /etc/init.d/glibc.sh ...
Installing new version of config file /etc/gai.conf ...
Checking for services that may need to be restarted...
Checking init scripts...

Restarting services possibly affected by the upgrade:
  samba: stopping...starting...done.
  rsync: stopping...starting...done.
  cupsys: stopping...starting...done.
  cron: stopping...starting...done.
  atd: stopping...starting...done.

Services restarted successfully.

Setting up wireless-crda (1.7) ...
Setting up linux-image-2.6.28-11-generic (2.6.28-11.42) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.28-11-generic
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz-2.6.28-11-generic
Found kernel: /vmlinuz-2.6.24-22-generic
Found kernel: /memtest86+.bin
Replacing config file /var/run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done


Setting up linux-restricted-modules-2.6.28-11-generic (2.6.28-11.15) ...

Setting up libc6-dev (2.9-4ubuntu6) ...
Setting up libc6-i386 (2.9-4ubuntu6) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
update-initramfs: Generating /boot/initrd.img-2.6.28-11-generic
root@akira:/# apt-get install linux-headers-2.6.28-11 linux-headers-2.6.28-11-generic linux-image-2.6.28-11-generic linux-source-2.6.28 linux-restricted-modules-2.6.28-11-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-image-2.6.28-11-generic is already the newest version.
linux-restricted-modules-2.6.28-11-generic is already the newest version.
Suggested packages:
  libncurses-dev ncurses-dev kernel-package libqt3-dev
The following NEW packages will be installed
  linux-headers-2.6.28-11 linux-headers-2.6.28-11-generic linux-source-2.6.28

0 upgraded, 3 newly installed, 0 to remove and 985 not upgraded.
Need to get 0B/66.4MB of archives.
After this operation, 132MB of additional disk space will be used.
Selecting previously deselected package linux-headers-2.6.28-11.
(Reading database ... 114035 files and directories currently installed.)
Unpacking linux-headers-2.6.28-11 (from .../linux-headers-2.6.28-11_2.6.28-11.42_all.deb) ...
Selecting previously deselected package linux-headers-2.6.28-11-generic.
Unpacking linux-headers-2.6.28-11-generic (from .../linux-headers-2.6.28-11-generic_2.6.28-11.42_amd64.deb) ...
Selecting previously deselected package linux-source-2.6.28.
Unpacking linux-source-2.6.28 (from .../linux-source-2.6.28_2.6.28-11.42_all.deb) ...
Setting up linux-headers-2.6.28-11 (2.6.28-11.42) ...
Setting up linux-headers-2.6.28-11-generic (2.6.28-11.42) ...

Setting up linux-source-2.6.28 (2.6.28-11.42) ...
root@akira:/# grep ^title /boot/grub/menu.lst
title		Ubuntu 8.04.1, kernel 2.6.28-11-generic
title		Ubuntu 8.04.1, kernel 2.6.28-11-generic (recovery mode)
title		Ubuntu 8.04.1, kernel 2.6.24-22-generic
title		Ubuntu 8.04.1, kernel 2.6.24-22-generic (recovery mode)
title		Ubuntu 8.04.1, memtest86+
root@akira:/# init 6

Hmm. One wishes one had broken the root mirror prior to doing this.

The system drops into 'single user mode' running the new kernel; it looks like its unable to see LVM2 on the appropriate mirrored disks, so fails to mount the (non critical) logical volumes. 'X' also fails to start; I suspect this is a problem with proprietary drivers. Edited /boot/grub/menu.lst and put the old kernel back to the top.

Printed and hosted by Prater Raines Ltd, 98 Sandgate High Street, Folkestone CT20 3BY.
Published and promoted by Ben Prescott, 14, St James's Square, Bournemouth, BH5 2BX. All rights reserved.
The views expressed are solely those of the author, not of the service provider.