为什么在新的Ubuntu 16.04安装中升级内核时遇到问题?

我注册了一个Linux VPS。 这个VPS附带了一个较老的Linux内核,我想升级它,因为我想运行一些软件需要更新的版本。 这是uname -a的输出uname -a

 Linux florence 2.6.32-042stab120.11 #1 SMP Wed Nov 16 12:05:45 MSK 2016 x86_64 x86_64 x86_64 GNU/Linux 

这是一个全新的,新鲜的Ubuntu 16.04映像。 (主机是http://ssdnodes.com )。 这些都是我以root身份运行的命令( 这是我试图遵循的教程):

 apt-get update apt-get upgrade -y apt-get autoremove -y mkdir kernel_update cd kernel_update/ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9/linux-headers-4.9.0-040900_4.9.0-040900.201612111631_all.deb wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9/linux-headers-4.9.0-040900-generic_4.9.0-040900.201612111631_amd64.deb wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9/linux-image-4.9.0-040900-generic_4.9.0-040900.201612111631_amd64.deb dpkg -i linux-*.deb 

前两个软件包安装正常。 当我尝试select第三个包时,出现此错误:

 Unpacking linux-image-4.8.15-040815-generic (4.8.15-040815.201612151231) ... Setting up linux-headers-4.8.15-040815 (4.8.15-040815.201612151231) ... Setting up linux-image-4.8.15-040815-generic (4.8.15-040815.201612151231) ... Running depmod. update-initramfs: deferring update (hook will be called later) Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.8.15-040815-generic /boot/vmlinuz-4.8.15-040815-generic run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.8.15-040815-generic /boot/vmlinuz-4.8.15-040815-generic update-initramfs: Generating /boot/initrd.img-4.8.15-040815-generic E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1. update-initramfs: failed for /boot/initrd.img-4.8.15-040815-generic with 1. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.8.15-040815-generic.postinst line 1052. dpkg: error processing package linux-image-4.8.15-040815-generic (--install): subprocess installed post-installation script returned error exit status 2 Setting up linux-headers-4.8.15-040815-generic (4.8.15-040815.201612151231) ... Errors were encountered while processing: linux-image-4.8.15-040815-generic 

对于testing,我已经尝试了与内核v4.8.15相同的过程(与另一个新鲜的图像),并得到了一个非常类似的错误,两个linux-headers包安装很好,但得到在linux-image包头。

预先感谢您的帮助。

你不能升级内核,因为这不是真正的虚拟机。 相反,它是一个使用OpenVZ容器的容器,这个容器相当老旧,仍然使用2010年以来的内核ABI /版本。

您将需要取消服务,并从不使用OpenVZ的不同供应商处获得VPS。