从 Debian Server Squeeze 6 升级到 Wheezy 7 的问题 - 仍在内核 2.6 上

Chr*_*tis 4 debian upgrade debian-squeeze debian-wheezy

我从 Debian Squeeze 6 升级到 Wheezy 7,但似乎我使用的是旧内核。

# uname -r
2.6.32-042stab072.10
Run Code Online (Sandbox Code Playgroud)

但我安装了较新的内核

# dpkg --get-selections | grep linux-image
linux-image-2.6-amd64                           install
linux-image-3.2.0-4-amd64                       install
linux-image-amd64                               install
Run Code Online (Sandbox Code Playgroud)

我该怎么办?

这是我升级的过程:

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

reboot

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
EOF


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

reboot

apt-get install linux-image-2.6-amd64

reboot
Run Code Online (Sandbox Code Playgroud)

Mic*_*ton 10

您在基于 OpenVZ(容器)的虚拟机上。因此,您无法控制内核;它由您的托管服务提供商提供,您只能使用提供商选择提供的任何内容。

如果您想要不同的内核,则需要联系您的托管服务提供商,或者使用 OpenVZ 以外的其他内核。