由于 util-linux、insserv 和 initscripts 失败,无法执行升级

由于 util-linux、insserv 和 initscripts 失败,无法执行升级

16.04.6 服务器的例行升级失败,出现以下错误:

Preconfiguring packages ...
Setting up util-linux (2.27.1-6ubuntu3.8) ...
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01php7.0-fpm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01urandom
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01php7.2-fpm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01lxcfs
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K10cryptdisks-early
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01unattended-upgrades
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01lsyncd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01open-iscsi
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K13halt
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01fail2ban
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K05umountnfs.sh
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01nginx
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01uuidd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01lxd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01mysql
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01elasticsearch
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01apache2
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01plymouth
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K12mdadm-waitidle
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K09cryptdisks
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01lvm2-lvmpolld
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K07networking
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01redis-server
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K11umountroot
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K08umountfs
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01apache-htcacheclean
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01mdadm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01incron
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K06rpcbind
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01resolvconf
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01open-vm-tools
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01atd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K02iscsid
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K04rsyslog
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01irqbalance
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K03sendsigs
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc0.d/K01lvm2-lvmetad
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01php7.0-fpm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K02ufw
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01php7.2-fpm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01lxcfs
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/S01killprocs
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01lsyncd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01open-iscsi
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01fail2ban
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01nginx
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01uuidd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01lxd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/S02single
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01mysql
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01elasticsearch
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01apache2
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01lvm2-lvmpolld
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01redis-server
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01apache-htcacheclean
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01mdadm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01incron
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K06rpcbind
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01open-vm-tools
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01atd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K02iscsid
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K04rsyslog
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01irqbalance
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc1.d/K01lvm2-lvmetad
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S01apport
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S04ondemand
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S03redis-server
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S01php7.0-fpm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S01open-vm-tools
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S03fail2ban
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S01lvm2-lvmetad
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/K01lsyncd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S02apache2
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S04plymouth
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S03nginx
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S03cron
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S01uuidd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S03irqbalance
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S03rsync
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S03atd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S01unattended-upgrades
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S01elasticsearch
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S03dbus
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S03mdadm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S03acpid
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S03ssh
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S03mysql
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S01rsyslog
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S01lvm2-lvmpolld
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S04grub-common
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S04rc.local
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/K01apache-htcacheclean
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S01php7.2-fpm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S01lxcfs
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S03incron
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc2.d/S01lxd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S01apport
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S04ondemand
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S03redis-server
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S01php7.0-fpm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S01open-vm-tools
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S03fail2ban
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S01lvm2-lvmetad
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/K01lsyncd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S02apache2
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S04plymouth
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S03nginx
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S03cron
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S01uuidd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S03irqbalance
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S03rsync
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S03atd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S01unattended-upgrades
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S01elasticsearch
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S03dbus
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S03mdadm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S03acpid
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S03ssh
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S03mysql
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S01rsyslog
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S01lvm2-lvmpolld
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S04grub-common
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S04rc.local
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/K01apache-htcacheclean
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S01php7.2-fpm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S01lxcfs
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S03incron
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc3.d/S01lxd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S01apport
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S04ondemand
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S03redis-server
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S01php7.0-fpm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S01open-vm-tools
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S03fail2ban
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S01lvm2-lvmetad
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/K01lsyncd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S02apache2
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S04plymouth
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S03nginx
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S03cron
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S01uuidd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S03irqbalance
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S03rsync
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S03atd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S01unattended-upgrades
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S01elasticsearch
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S03dbus
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S03mdadm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S03acpid
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S03ssh
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S03mysql
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S01rsyslog
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S01lvm2-lvmpolld
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S04grub-common
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S04rc.local
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/K01apache-htcacheclean
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S01php7.2-fpm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S01lxcfs
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S03incron
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc4.d/S01lxd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S01apport
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S04ondemand
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S03redis-server
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S01php7.0-fpm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S01open-vm-tools
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S03fail2ban
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S01lvm2-lvmetad
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/K01lsyncd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S02apache2
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S04plymouth
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S03nginx
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S03cron
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S01uuidd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S03irqbalance
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S03rsync
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S03atd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S01unattended-upgrades
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S01elasticsearch
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S03dbus
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S03mdadm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S03acpid
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S03ssh
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S03mysql
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S01rsyslog
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S01lvm2-lvmpolld
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S04grub-common
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S04rc.local
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/K01apache-htcacheclean
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S01php7.2-fpm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S01lxcfs
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S03incron
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc5.d/S01lxd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01php7.0-fpm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01urandom
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01php7.2-fpm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01lxcfs
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K13reboot
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K10cryptdisks-early
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01unattended-upgrades
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01lsyncd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01open-iscsi
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01fail2ban
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K05umountnfs.sh
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01nginx
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01uuidd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01lxd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01mysql
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01elasticsearch
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01apache2
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01plymouth
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K12mdadm-waitidle
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K09cryptdisks
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01lvm2-lvmpolld
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K07networking
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01redis-server
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K11umountroot
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K08umountfs
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01apache-htcacheclean
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01mdadm
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01incron
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K06rpcbind
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01resolvconf
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01open-vm-tools
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01atd
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K02iscsid
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K04rsyslog
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01irqbalance
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K03sendsigs
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/K01lvm2-lvmetad
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S02screen-cleanup
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S02ufw
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S01console-setup
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S08lvm2
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S13open-iscsi
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S02apparmor
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S11mountall.sh
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S11networking
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S02plymouth-log
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S02resolvconf
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S13mountnfs.sh
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S12iscsid
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S06checkroot.sh
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S07cryptdisks-early
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S10checkfs.sh
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S02hostname.sh
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S02x11-common
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S15bootmisc.sh
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S09cryptdisks
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S08urandom
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S08kmod
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S14mountnfs-bootclean.sh
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S12mountall-bootclean.sh
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S04procps
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S02mountkernfs.sh
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S04mountdevsubfs.sh
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S03udev
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S08checkroot-bootclean.sh
insserv: warning: script is corrupt or invalid: /etc/init.d/../rcS.d/S12rpcbind
insserv: Service mountdevsubfs has to be enabled to start service hwclock
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package util-linux (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of systemd:
 systemd depends on util-linux (>= 2.27.1); however:
  Package util-linux is not configured yet.

dpkg: error processing package systemd (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 util-linux
 systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)

因此,涉及的软件包是 util-linux、insserv 和 initscripts,但 StackOverflow 不允许我为它们添加标签,原因很愚蠢。随便吧。

到目前为止我已经尝试过:

  • 调用apt update --fix-missing
  • 手动安装util-linuxinsserv& initscripts(同样的错误);
  • apt -f install
  • dpkg-reconfigure
  • dpkg –-configure --a

然而,没有一个方法奏效。通过打开一个随机脚本,比如/etc/rc6.d/K09crypdisks,我发现它完全有效,所以我怀疑安装程序逻辑中存在问题,我需要以某种方式手动清除并重新安装这个不神圣的软件包三位一体,而无需关闭服务器。或者存根相关检查,但这会导致完整性问题,所以我宁愿避免它。我还遇到了有关/etc/alternatives/pager 提供不正确链接的错误,但我已经用 修复了它update-alternatives。我提到这一点只是为了以防万一它有任何相关性。

答案1

发射台

第一次运行:

sudo rm /var/lib/dpkg/info/util-linux.postinst

然后运行:

sudo apt-get dist-upgrade -f

编辑2

来源:发射台
从同一主题中,我们还有:

sudo dpkg --purge usplash
sudo dpkg --purge readahead
sudo dpkg --configure initscripts
sudo dpkg --configure util-linux

从 usplash 和 readahead 中删除过时的 initscripts 会删除一些 init 脚本依赖循环,从而使 dpkg --configure util-linux 可以继续运行。

sudo apt dist-upgrade -f正在运行。

相关内容