Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I upgraded from Debian Squeeze 6 to Wheezy 7 but it seems i am using the old kernel.

# uname -r

But i have the newer kernel installed

# dpkg --get-selections | grep linux-image
linux-image-2.6-amd64                           install
linux-image-3.2.0-4-amd64                       install
linux-image-amd64                               install

What should i do?

Here is the proccess i followed to upgrade:

apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get autoremove


echo '' > /etc/apt/sources.list

cat <<EOF >> /etc/apt/sources.list
deb http://mirrors.kernel.org/debian/ wheezy main
deb-src http://mirrors.kernel.org/debian/ wheezy main

deb http://http.debian.net/debian wheezy main
deb-src http://http.debian.net/debian wheezy main

deb http://http.debian.net/debian wheezy-updates main
deb-src http://http.debian.net/debian wheezy-updates main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

apt-get update
apt-get upgrade
apt-get dist-upgrade


apt-get install linux-image-2.6-amd64

share|improve this question

1 Answer 1

up vote 10 down vote accepted

You're on an OpenVZ (container) based virtual machine. As a result you have no control over the kernel; it is provided by your hosting provider, and you are limited to whatever the provider chooses to provide.

If you want a different kernel, you either need to contact your hosting provider, or use something other than OpenVZ.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.