dpkg-statoverride: error: an override for '/boot/vmlinuz-3.13.0-119-generic' already exists;

前端之家收集整理的这篇文章主要介绍了dpkg-statoverride: error: an override for '/boot/vmlinuz-3.13.0-119-generic' already exists;前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

apt-get install出错: dpkg-statoverride: error: an override for ‘/boot/vmlinuz-3.13.0-119-generic’ already exists; aborting

the error info:

Setting up linux-image-extra-3.13.0-119-generic (3.13.0-119.166) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-119-generic /boot/vmlinuz-3.13.0-119-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-119-generic /boot/vmlinuz-3.13.0-119-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-119-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-119-generic /boot/vmlinuz-3.13.0-119-generic
run-parts: executing /etc/kernel/postinst.d/statoverride 3.13.0-119-generic /boot/vmlinuz-3.13.0-119-generic
dpkg-statoverride: error: an override for '/boot/vmlinuz-3.13.0-119-generic' already exists; aborting
run-parts: /etc/kernel/postinst.d/statoverride exited with return code 2
dpkg: error processing package linux-image-extra-3.13.0-119-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-extra-3.13.0-119-generic; however:
  Package linux-image-extra-3.13.0-119-generic is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-extra-virtual:
 linux-image-extra-virtual depends on linux-image-generic (= 3.13.0.119.129); however:
  Package linux-image-generic is not configured yet.

dpkg: error processing package linux-image-extra-virtual (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              No apport report written because MaxReports is reached already
            Errors were encountered while processing:
 linux-image-extra-4.2.0-42-generic
 linux-image-generic-lts-wily
 linux-generic-lts-wily
 linux-image-extra-4.4.0-75-generic
 linux-image-generic-lts-xenial
 linux-generic-lts-xenial
 linux-image-extra-4.4.0-63-generic
 linux-image-extra-4.4.0-74-generic
 linux-signed-image-generic-lts-wily
 linux-signed-generic-lts-wily
 linux-signed-image-generic-lts-xenial
 linux-signed-generic-lts-xenial
 linux-image-extra-3.13.0-119-generic
 linux-image-generic
 linux-image-extra-virtual
E: Sub-process /usr/bin/dpkg returned an error code (1)

Solution:

[jeremy@compute]$ su - root
[root@compute]# cp /etc/kernel/postinst.d/statoverride ~/
[root@compute]# sed -i '/dpkg-statoverride/s/$/||:/' /etc/kernel/postinst.d/statoverride
@H_502_475@Reference1:

https://ubuntuforums.org/showthread.php?t=2258756&page=3


  1. Refer to #28

猜你在找的Ubuntu相关文章