1 linux ubuntu debian kernel linux-kernel
我注册了一个 Linux VPS。这个 VPS 带有一个较旧的 Linux 内核,我想升级它,因为我想运行的一些软件需要更新的版本。这是输出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
Run Code Online (Sandbox Code Playgroud)
这是一个全新的 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
Run Code Online (Sandbox Code Playgroud)
前两个包安装正常。当我尝试选择第三个包时,出现此错误:
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
Run Code Online (Sandbox Code Playgroud)
为了进行测试,我尝试使用内核 v4.8.15 执行相同的过程(使用另一个新映像),并且得到了非常相似的错误,这两个linux-headers软件包安装正常,但在linux-image软件包上有标头。
预先感谢您的帮助。
您无法升级内核,因为这不是真正的虚拟机。相反,它是一个使用 OpenVZ 容器的容器,这些容器相当陈旧,并且仍然使用 2010 年的内核 ABI/版本。
您将需要取消该服务并从不使用 OpenVZ 的其他提供商处获取 VPS。
| 归档时间: |
|
| 查看次数: |
1072 次 |
| 最近记录: |