Issue with upgrading from 8.10 -> 9.04
Marius Gedminas
marius at pov.lt
Sun Mar 14 22:35:16 UTC 2010
Hello!
On Sun, Mar 14, 2010 at 04:11:58PM +0100, Mariano Kamp wrote:
> I used Debian a couple of years ago and now want to use Linux again, this
> time with Ubuntu. I went to 1und1 as a provider and rented a virtual server
> that had 8.0.4 LTS on it. When I then tried to install git using a tutorial
> on the ubuntu site I learned that the tutorial was based in 9.0.4 ;-(
Are there really significant differences? Ubuntu 8.04 has git 1.5.4.3,
while 9.04 has git 1.6.0.4 (and 9.10 has git 1.6.3.3).
> I went to: https://help.ubuntu.com/community/UpgradeNotes and understood
> that you can't do a direct upgrade but need to do this stepwise.
Right.
> I then did
> the upgrade to 8.10 and that seemed to have worked, but when I then tried to
> get to 9.0.4 I encountered this:
>
> >>>>>>>>>>>>>>>>>>>>>>>>>
> Processing triggers for libc6 ...
> ldconfig deferred processing now taking place
> (Reading database ... 18742 files and directories currently installed.)
> Preparing to replace libc6 2.8~20080505-0ubuntu9 (using
> .../libc6_2.9-4ubuntu6.1_amd64.deb) ...
> Checking for services that may need to be restarted...
> Checking init scripts...
> WARNING: this version of the GNU libc requires kernel version
> 2.6.15 or later. Please upgrade your kernel before installing
> glibc.
This is very weird, given that Ubuntu 8.04 comes with 2.6.24 which is
definitely later than 2.6.15. Even Ubuntu 6.06 came with 2.6.15.
Can you check your running kernel version (uname -a)?
> The installation of a 2.6 kernel _could_ ask you to install a new libc
> first, this is NOT a bug, and should *NOT* be reported. In that case,
> please add lenny sources to your /etc/apt/sources.list and run:
> apt-get install -t lenny linux-image-2.6
Don't do that -- the instructions are for Debian, not Ubuntu. You could
say this is a second bug: the Ubuntu version of libc6 shouldn't instruct
Ubuntu users to add Debian lenny repositories to sources.list.
> Then reboot into this new kernel, and proceed with your upgrade
> dpkg: error processing
> /var/cache/apt/archives/libc6_2.9-4ubuntu6.1_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.1_amd64.deb
>
> Could not install the upgrades
>
> The upgrade is now aborted. Your system could be in an unusable
> state. A recovery will run now (dpkg --configure -a).
>
> Please report this bug against the 'update-manager' package and
> include the files in /var/log/dist-upgrade/ in the bug report.
This is good advice: it would make sense for update-manager to check
that you're running a supported kernel version before it starts the
upgrade process.
> E:Sub-process /usr/bin/dpkg returned an error code (1)
>
> Setting up libgomp1 (4.3.3-5ubuntu4) ...
>
> Processing triggers for libc6 ...
> ldconfig deferred processing now taking place
> /usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API
> not stable yet
> warnings.warn("apt API not stable yet", FutureWarning)
>
> Upgrade complete
>
> The upgrade is completed but there were errors during the upgrade
> process.
This is misleading. I assume they meant "the process is finished,
although it didn't complete successfully" by "upgrade complete".
>
>
> Could not install the upgrades
>
> The upgrade is now aborted. Your system could be in an unusable
> state. A recovery will run now (dpkg --configure -a).
>
> Please report this bug against the 'update-manager' package and
> include the files in /var/log/dist-upgrade/ in the bug report.
> installArchives() failed
>
> /usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API
> not stable yet
> warnings.warn("apt API not stable yet", FutureWarning)
>
> Upgrade complete
>
> The upgrade is completed but there were errors during the upgrade
> process.
> >>>>>>>>>>>>>>>>>>>>>>
>
> I *think* it says I should install a kernel manually (boy am I glad to be
> back in Linux land)?
Double-check first:
$ ls /boot
I don't have any 8.10 systems on hand, but packages.ubuntu.com tell me
you should see vmlinuz-2.6.27-17-generic (or perhaps -server) there. If
you do, you can try rebooting and restarting the upgrade. There's a
risk that the incomplete upgrade might've left the OS in an unbootable
state, so have a backup plan (reinstall from scratch).
>
> >>>>>>>>>>>>>>>>>>>>>>>>
> root at s15390688:~# apt-get install -t lenny linux-image-2.6
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Package linux-image-2.6 is a virtual package provided by:
> linux-image-2.6.28-18-virtual 2.6.28-18.59
> linux-image-2.6.28-18-server 2.6.28-18.59
> linux-image-2.6.28-18-generic 2.6.28-18.59
> linux-image-2.6.28-17-virtual 2.6.28-17.58
> linux-image-2.6.28-17-server 2.6.28-17.58
> linux-image-2.6.28-17-generic 2.6.28-17.58
> linux-image-2.6.28-16-virtual 2.6.28-16.57
> linux-image-2.6.28-16-server 2.6.28-16.57
> linux-image-2.6.28-16-generic 2.6.28-16.57
> linux-image-2.6.28-15-virtual 2.6.28-15.52
> linux-image-2.6.28-15-server 2.6.28-15.52
> linux-image-2.6.28-15-generic 2.6.28-15.52
> linux-image-2.6.28-14-virtual 2.6.28-14.47
> linux-image-2.6.28-14-server 2.6.28-14.47
> linux-image-2.6.28-14-generic 2.6.28-14.47
> linux-image-2.6.28-13-virtual 2.6.28-13.45
> linux-image-2.6.28-13-server 2.6.28-13.45
> linux-image-2.6.28-13-generic 2.6.28-13.45
> linux-image-2.6.28-3-rt 2.6.28-3.12
> linux-image-2.6.28-11-virtual 2.6.28-11.42
> linux-image-2.6.28-11-server 2.6.28-11.42
> linux-image-2.6.28-11-generic 2.6.28-11.42
> You should explicitly select one to install.
> E: Package linux-image-2.6 has no installation candidate
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> How would I know which one to install?
You shouldn't need to install kernels manually. If you do, the correct
one for real hardware is linux-generic (or linux-server).
I'm not sure about the virtualization tech used by 1und1 and I don't
know if that requires a special kernel. linux-image-virtual may be the
right choice, judging from its description, which you can see by typing
$ apt-cache show linux-virtual
> I know I am on a virtual server so I
> tried this:
>
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> root at s15390688:~# apt-get install -t lenny linux-image-2.6.28-18-virtual
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> You might want to run `apt-get -f install' to correct these:
> The following packages have unmet dependencies:
> cpp-4.3: Depends: gcc-4.3-base (= 4.3.2-1ubuntu12) but 4.3.3-5ubuntu4 is
> to be installed
> libstdc++6: Depends: gcc-4.3-base (= 4.3.2-1ubuntu12) but 4.3.3-5ubuntu4
> is to be installed
> linux-image-2.6.28-18-virtual: Depends: initramfs-tools (>= 0.36ubuntu6)
> but it is not going to be installed
> Recommends: grub or
> lilo (>= 19.1) but it is not
> going to be installed
> E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify
> a solution).
That appears to be fallout from the interrupted upgrade.
> root at s15390688:~# 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:
> cpp-4.3 libc6 libstdc++6
> Suggested packages:
> gcc-4.3-locales glibc-doc
> The following packages will be upgraded:
> cpp-4.3 libc6 libstdc++6
> 3 upgraded, 0 newly installed, 0 to remove and 200 not upgraded.
> Need to get 0B/8680kB of archives.
> After this operation, 365kB of additional disk space will be used.
> Do you want to continue [Y/n]? y
> Preconfiguring packages ...
> (Reading database ... 18742 files and directories currently installed.)
> Preparing to replace libc6 2.8~20080505-0ubuntu9 (using
> .../libc6_2.9-4ubuntu6.1_amd64.deb) ...
> Checking for services that may need to be restarted...
> Checking init scripts...
> WARNING: this version of the GNU libc requires kernel version
> 2.6.15 or later. Please upgrade your kernel before installing
> glibc.
And back to square 1.
You'll need to reboot to a newer kernel before you can continue.
> The installation of a 2.6 kernel _could_ ask you to install a new libc
> first, this is NOT a bug, and should *NOT* be reported. In that case,
> please add lenny sources to your /etc/apt/sources.list and run:
> apt-get install -t lenny linux-image-2.6
> Then reboot into this new kernel, and proceed with your upgrade
> dpkg: error processing
> /var/cache/apt/archives/libc6_2.9-4ubuntu6.1_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.1_amd64.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> root at s15390688:~# apt-get install -t lenny linux-image-2.6.28-18-virtual
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> You might want to run `apt-get -f install' to correct these:
> The following packages have unmet dependencies:
> cpp-4.3: Depends: gcc-4.3-base (= 4.3.2-1ubuntu12) but 4.3.3-5ubuntu4 is
> to be installed
> libstdc++6: Depends: gcc-4.3-base (= 4.3.2-1ubuntu12) but 4.3.3-5ubuntu4
> is to be installed
> linux-image-2.6.28-18-virtual: Depends: initramfs-tools (>= 0.36ubuntu6)
> but it is not going to be installed
> Recommends: grub or
> lilo (>= 19.1) but it is not
> going to be installed
> E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify
> a solution).
> root at s15390688:~# 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:
> cpp-4.3 libc6 libstdc++6
> Suggested packages:
> gcc-4.3-locales glibc-doc
> The following packages will be upgraded:
> cpp-4.3 libc6 libstdc++6
> 3 upgraded, 0 newly installed, 0 to remove and 200 not upgraded.
> Need to get 0B/8680kB of archives.
> After this operation, 365kB of additional disk space will be used.
> Do you want to continue [Y/n]? y
> Preconfiguring packages ...
> (Reading database ... 18742 files and directories currently installed.)
> Preparing to replace libc6 2.8~20080505-0ubuntu9 (using
> .../libc6_2.9-4ubuntu6.1_amd64.deb) ...
> Checking for services that may need to be restarted...
> Checking init scripts...
> WARNING: this version of the GNU libc requires kernel version
> 2.6.15 or later. Please upgrade your kernel before installing
> glibc.
>
> The installation of a 2.6 kernel _could_ ask you to install a new libc
> first, this is NOT a bug, and should *NOT* be reported. In that case,
> please add lenny sources to your /etc/apt/sources.list and run:
> apt-get install -t lenny linux-image-2.6
> Then reboot into this new kernel, and proceed with your upgrade
> dpkg: error processing
> /var/cache/apt/archives/libc6_2.9-4ubuntu6.1_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.1_amd64.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> root at s15390688:~#
>
> >>>>>>>>>>>>>>>>>>>>>>>>>>
>
> Now I am sure this is an easy problem
I wouldn't say so. It's a weird problem.
> and all I need is in the output and it
> should be expected to see something like that when upgrading ... But I
> really don't understand what I should be doing here.
Check the running kernel version. Check if your virtual hosting
provider says anything about supported kernel versions in guests.
Depending on the virtualization tech used it may be difficult/impossible
to upgrade the kernel inside the VM -- this could be the source of all
your troubles.
> Could somebody please decipher this for me and give me step by step
> instructions? If there are too many steps to write them up quickly, one step
> at a time would certainly help me.
I'm afraid I don't have any first-hand experience with 1und1 or, in
fact, any other virtual server providers, but I'm pretty sure your
troubles stem from there.
So, what kernel are you running?
Regards,
Marius Gedminas
--
C, n:
A programming language that is sort of like Pascal except more like
assembly except that it isn't very much like either one, or anything
else. It is either the best language available to the art today, or
it isn't.
-- Ray Simard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100315/6f3501a5/attachment.sig>
More information about the ubuntu-users
mailing list