-1

I have an OpenVZ VPS, and am trying to upgrade Ubuntu Server from 11.10 to 12.04. But the upgrade aborts half-way with this error:

WARNING: this version of the GNU libc requires kernel version
2.6.24 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.15-0ubuntu10_amd64.deb (--unpack):  subprocess new pre-installation script returned error exit status 1 No apport report written because MaxReports is reached already

Could not install the upgrades 

The upgrade has aborted. Your system could be in an unusable
state. A  recovery will run now (dpkg --configure -a). 

Upgrade complete 

The upgrade has completed but there were errors during the upgrade  process. 

To continue please press [ENTER]
=== Command detached from window (Thu Apr 26 10:31:16 2012) ===
=== Command terminated with exit status 1 (Thu Apr 26 10:31:16 2012) ===
ish
  • 141,990
Chris
  • 119

3 Answers3

1

I see the comments show you are running Ubuntu Server on a VPS (aka VDS)? Can you post the output of uname -r?

You are getting the error because your provider is running an old OpenVZ Linux kernel (usually 2.6.18); as the message says, the default libc included with Precise requires 2.6.24 or above.

Please see my answer here for full details, but the gist is that I've set up a PPA with recompiled libc to work on older (at least 2.6.18) kernels, and that should solve your problem. Please try adding ppa:izx/ovz-libc, updating, and then retrying the upgrade. Specifically:

apt-add-repository ppa:izx/ovz-libc
apt-get update
apt-get -f install
do-release-upgrade

should probably do it. Recommend answering NO to all "update config?" questions.

Let me know how it goes -- I know the recompiled libc works perfectly for folks starting off with 12.04 or who have upgraded to it with the help of their host.

ish
  • 141,990
0

Did you ensure that the machine is fully updated before starting the upgrade process? Run the following first:

sudo apt-get update && sudo apt-get dist-upgrade

to be quite sure that everything is updated for 11.10 first. After that has completed successfully, run:

sudo do-release-upgrade

0

I did have an issue kind of similar with the kernel, try updating this way instead it worked fine for me. ubuntu 12.04 update info