linux-image-extra-4.13.0-45-generic 的 Aptitude 错误

linux-image-extra-4.13.0-45-generic 的 Aptitude 错误

我觉得我的问题很常见,但是我却没有解决...

当我尝试使用 apt(在 Ubuntu 16.04 服务器上)时,出现此错误:

The following packages were automatically installed and are no longer required:
  crda iw wireless-regdb
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  linux-image-extra-4.13.0-45-generic
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 167 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 105682 files and directories currently installed.)
Removing linux-image-extra-4.13.0-45-generic (4.13.0-45.50~16.04.1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-45-generic
E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.13.0-45-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.13.0-45-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-image-extra-4.13.0-45-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

运行时出现同样的错误apt-get install -f...

有人有想法吗?

先感谢您

答案1

我的服务器是 OpenVZ 虚拟机,因此内核更新由主机管理(解释这里这里)。

我必须手动删除,linux-image-extra-4.13.0-45-generic然后linux-image-4.13.0-45-generic按照帖子#3这个话题

相关内容