我一直在尝试更新内核(它是一个 OpenVZ VPS),但即使完成该过程,现在仍然uname -r
返回以下输出:2.6.32-042stab132.1
hostnamectl
Failed to query system properties: Message recipient disconnected from message bus without replying
所以我一直在做以下事情:
$ sudo apt-cache search linux-image
linux-headers-4.9.0-9-amd64 - Header files for Linux 4.9.0-9-amd64
linux-headers-4.9.0-9-rt-amd64 - Header files for Linux 4.9.0-9-rt-amd64
linux-image-4.9.0-9-amd64 - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-9-amd64-dbg - Debug symbols for linux-image-4.9.0-9-amd64
linux-image-4.9.0-9-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-image-4.9.0-9-rt-amd64-dbg - Debug symbols for linux-image-4.9.0-9-rt-amd64
linux-image-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-amd64-dbg - Debugging symbols for Linux amd64 configuration (meta-package)
linux-image-rt-amd64 - Linux for 64-bit PCs (meta-package), PREEMPT_RT
linux-image-rt-amd64-dbg - Debugging symbols for Linux rt-amd64 configuration (meta-package)
$
$ sudo apt-get install linux-image-4.9.0-9-amd64
$ reboot
由于这样做没有改变任何东西(hostnamectl
返回旧内核版本的内核),我按照描述进行了操作这里。这就导致了上述问题。
那么,如何才能真正更新 OVZ VPS 实例中的内核呢?