Apt-get failed E: Sub-process /usr/bin/dpkg returned an error code (1)

Jema

New Member
Jun 3, 2019
20
0
1
44
Trying to run an apt-get -y upgrade but it keeps on failing. I tried 100 things already but I simply can't get it work or find a solution.

I run VE 4.4 (pve-manager/4.4-1/eb2d6f1e (running kernel: 4.4.35-1-pve))
This is the output:

Reading package lists...
Building dependency tree...
Reading state information...
The following packages have been kept back:
libpve-common-perl proxmox-ve pve-container pve-kernel-4.4.35-1-pve
pve-manager qemu-server
The following packages will be upgraded:
bash bind9-host corosync-pve cron dnsutils file libarchive13 libbind9-90
libcorosync4-pve libcurl3 libcurl3-gnutls libdns-export100 libdns100
libirs-export91 libisc-export95 libisc95 libisccc90 libisccfg-export90
libisccfg90 libjasper1 libjpeg62-turbo libjs-jquery libldb1 liblwres90
libmagic1 libnss3 libnvpair1linux libpve-access-control libpve-storage-perl
libqb0 libsdl1.2debian libsmbclient libsndfile1 libssh2-1 libssl-dev
libssl1.0.0 libsystemd0 libtiff5 libuutil1linux libvirt0 libwbclient0
libzfs2linux libzpool2linux linux-libc-dev lxc-pve lxcfs novnc-pve
openssh-client openssh-server openssh-sftp-server openssl pve-cluster
pve-docs pve-firmware pve-ha-manager pve-libspice-server1 pve-qemu-kvm rsync
samba-common samba-libs smbclient spiceterm spl ssh systemd systemd-sysv
tzdata vncterm wget zfs-initramfs zfsutils zfsutils-linux
Reading changelogs...
rules contain 49152 bytes tokens (4096 * 12 bytes), 13768 bytes strings
2321 strings (28670 bytes), 1591 de-duplicated (15633 bytes), 731 trie nodes used
RUN 'bridge-network-interface' /lib/udev/rules.d/60-bridge-network-interface.rules:1
IMPORT builtin 'net_id' /lib/udev/rules.d/75-net-description.rules:6
IMPORT builtin 'path_id' /lib/udev/rules.d/80-net-setup-link.rules:5
IMPORT builtin 'path_id' returned non-zero
IMPORT builtin 'net_setup_link' /lib/udev/rules.d/80-net-setup-link.rules:11
Config file /lib/systemd/network/99-default.link applies to device lo
RUN 'net.agent' /lib/udev/rules.d/80-networking.rules:1
unload module index
Unloaded link configuration context.
calling: test
version 215
load module index
Network interface NamePolicy= disabled on kernel commandline, ignoring.
timestamp of '/etc/systemd/network' changed
timestamp of '/lib/systemd/network' changed
Parsed configuration file /lib/systemd/network/99-default.link
Created link configuration context.
timestamp of '/etc/udev/rules.d' changed
read rules file: /lib/udev/rules.d/42-usb-hid-pm.rules
read rules file: /lib/udev/rules.d/50-firmware.rules
read rules file: /lib/udev/rules.d/50-rbd.rules
read rules file: /lib/udev/rules.d/50-udev-default.rules
read rules file: /lib/udev/rules.d/55-dm.rules
read rules file: /lib/udev/rules.d/56-lvm.rules
read rules file: /lib/udev/rules.d/60-bridge-network-interface.rules
read rules file: /lib/udev/rules.d/60-cdrom_id.rules
read rules file: /lib/udev/rules.d/60-ceph-by-parttypeuuid.rules
read rules file: /lib/udev/rules.d/60-drm.rules
read rules file: /lib/udev/rules.d/60-fuse.rules
read rules file: /lib/udev/rules.d/60-gnupg.rules
read rules file: /lib/udev/rules.d/60-keyboard.rules
read rules file: /lib/udev/rules.d/60-persistent-alsa.rules
read rules file: /lib/udev/rules.d/60-persistent-input.rules
read rules file: /lib/udev/rules.d/60-persistent-serial.rules
read rules file: /lib/udev/rules.d/60-persistent-storage-dm.rules
read rules file: /lib/udev/rules.d/60-persistent-storage-tape.rules
read rules file: /lib/udev/rules.d/60-persistent-storage.rules
read rules file: /lib/udev/rules.d/60-persistent-v4l.rules
read rules file: /lib/udev/rules.d/60-zvol.rules
read rules file: /lib/udev/rules.d/61-accelerometer.rules
read rules file: /lib/udev/rules.d/64-btrfs-dm.rules
read rules file: /lib/udev/rules.d/64-btrfs.rules
read rules file: /lib/udev/rules.d/69-lvm-metad.rules
read rules file: /lib/udev/rules.d/69-vdev.rules
read rules file: /etc/udev/rules.d/70-persistent-net.rules
read rules file: /lib/udev/rules.d/70-power-switch.rules
read rules file: /lib/udev/rules.d/70-uaccess.rules
read rules file: /lib/udev/rules.d/71-seat.rules
read rules file: /lib/udev/rules.d/73-idrac.rules
read rules file: /lib/udev/rules.d/73-seat-late.rules
read rules file: /lib/udev/rules.d/75-net-description.rules
read rules file: /lib/udev/rules.d/75-persistent-net-generator.rules
read rules file: /lib/udev/rules.d/75-probe_mtd.rules
read rules file: /lib/udev/rules.d/75-tty-description.rules
read rules file: /lib/udev/rules.d/78-sound-card.rules
read rules file: /lib/udev/rules.d/80-drivers.rules
read rules file: /lib/udev/rules.d/80-net-setup-link.rules
read rules file: /lib/udev/rules.d/80-networking.rules
read rules file: /lib/udev/rules.d/85-hdparm.rules
read rules file: /lib/udev/rules.d/85-hwclock.rules
read rules file: /lib/udev/rules.d/90-zfs.rules
read rules file: /lib/udev/rules.d/95-ceph-osd.rules
read rules file: /lib/udev/rules.d/95-udev-late.rules
read rules file: /lib/udev/rules.d/99-systemd.rules
rules contain 49152 bytes tokens (4096 * 12 bytes), 13768 bytes strings
2321 strings (28670 bytes), 1591 de-duplicated (15633 bytes), 731 trie nodes used
RUN 'bridge-network-interface' /lib/udev/rules.d/60-bridge-network-interface.rules:1
IMPORT builtin 'net_id' /lib/udev/rules.d/75-net-description.rules:6
IMPORT builtin 'path_id' /lib/udev/rules.d/80-net-setup-link.rules:5
IMPORT builtin 'path_id' returned non-zero
IMPORT builtin 'net_setup_link' /lib/udev/rules.d/80-net-setup-link.rules:11
Config file /lib/systemd/network/99-default.link applies to device vmbr0
RUN 'net.agent' /lib/udev/rules.d/80-networking.rules:1
RUN '/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/ipv4/conf/$name --prefix=/proc/sys/net/ipv4/neigh/$name --prefix=/proc/sys/net/ipv6/conf/$name --prefix=/proc/sys/net/ipv6/neigh/$name' /lib/udev/rules.d/99-systemd.rules:61
unload module index
Unloaded link configuration context.
calling: test
version 215
load module index
Network interface NamePolicy= disabled on kernel commandline, ignoring.
timestamp of '/etc/systemd/network' changed
timestamp of '/lib/systemd/network' changed
Parsed configuration file /lib/systemd/network/99-default.link
Created link configuration context.
timestamp of '/etc/udev/rules.d' changed
read rules file: /lib/udev/rules.d/42-usb-hid-pm.rules
read rules file: /lib/udev/rules.d/50-firmware.rules
read rules file: /lib/udev/rules.d/50-rbd.rules
read rules file: /lib/udev/rules.d/50-udev-default.rules
read rules file: /lib/udev/rules.d/55-dm.rules
read rules file: /lib/udev/rules.d/56-lvm.rules
read rules file: /lib/udev/rules.d/60-bridge-network-interface.rules
read rules file: /lib/udev/rules.d/60-cdrom_id.rules
read rules file: /lib/udev/rules.d/60-ceph-by-parttypeuuid.rules
read rules file: /lib/udev/rules.d/60-drm.rules
read rules file: /lib/udev/rules.d/60-fuse.rules
read rules file: /lib/udev/rules.d/60-gnupg.rules
read rules file: /lib/udev/rules.d/60-keyboard.rules
read rules file: /lib/udev/rules.d/60-persistent-alsa.rules
read rules file: /lib/udev/rules.d/60-persistent-input.rules
read rules file: /lib/udev/rules.d/60-persistent-serial.rules
read rules file: /lib/udev/rules.d/60-persistent-storage-dm.rules
read rules file: /lib/udev/rules.d/60-persistent-storage-tape.rules
read rules file: /lib/udev/rules.d/60-persistent-storage.rules
read rules file: /lib/udev/rules.d/60-persistent-v4l.rules
read rules file: /lib/udev/rules.d/60-zvol.rules
read rules file: /lib/udev/rules.d/61-accelerometer.rules
read rules file: /lib/udev/rules.d/64-btrfs-dm.rules
read rules file: /lib/udev/rules.d/64-btrfs.rules
read rules file: /lib/udev/rules.d/69-lvm-metad.rules
read rules file: /lib/udev/rules.d/69-vdev.rules
read rules file: /etc/udev/rules.d/70-persistent-net.rules
read rules file: /lib/udev/rules.d/70-power-switch.rules
read rules file: /lib/udev/rules.d/70-uaccess.rules
read rules file: /lib/udev/rules.d/71-seat.rules
read rules file: /lib/udev/rules.d/73-idrac.rules
read rules file: /lib/udev/rules.d/73-seat-late.rules
read rules file: /lib/udev/rules.d/75-net-description.rules
read rules file: /lib/udev/rules.d/75-persistent-net-generator.rules
read rules file: /lib/udev/rules.d/75-probe_mtd.rules
read rules file: /lib/udev/rules.d/75-tty-description.rules
read rules file: /lib/udev/rules.d/78-sound-card.rules
read rules file: /lib/udev/rules.d/80-drivers.rules
read rules file: /lib/udev/rules.d/80-net-setup-link.rules
read rules file: /lib/udev/rules.d/80-networking.rules
read rules file: /lib/udev/rules.d/85-hdparm.rules
read rules file: /lib/udev/rules.d/85-hwclock.rules
read rules file: /lib/udev/rules.d/90-zfs.rules
read rules file: /lib/udev/rules.d/95-ceph-osd.rules
read rules file: /lib/udev/rules.d/95-udev-late.rules
read rules file: /lib/udev/rules.d/99-systemd.rules
rules contain 49152 bytes tokens (4096 * 12 bytes), 13768 bytes strings
2321 strings (28670 bytes), 1591 de-duplicated (15633 bytes), 731 trie nodes used
RUN 'bridge-network-interface' /lib/udev/rules.d/60-bridge-network-interface.rules:1
IMPORT builtin 'net_id' /lib/udev/rules.d/75-net-description.rules:6
IMPORT builtin 'path_id' /lib/udev/rules.d/80-net-setup-link.rules:5
IMPORT builtin 'path_id' returned non-zero
IMPORT builtin 'net_setup_link' /lib/udev/rules.d/80-net-setup-link.rules:11
Config file /lib/systemd/network/99-default.link applies to device vmbr1
RUN 'net.agent' /lib/udev/rules.d/80-networking.rules:1
RUN '/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/ipv4/conf/$name --prefix=/proc/sys/net/ipv4/neigh/$name --prefix=/proc/sys/net/ipv6/conf/$name --prefix=/proc/sys/net/ipv6/neigh/$name' /lib/udev/rules.d/99-systemd.rules:61
unload module index
Unloaded link configuration context.
update-initramfs: deferring update (trigger activated)
insserv: warning: script 'S97DbSecuritySpt' missing LSB tags and overrides
insserv: warning: script 'S99selinux' missing LSB tags and overrides
insserv: warning: script 'DbSecuritySpt' missing LSB tags and overrides
insserv: warning: script 'selinux' missing LSB tags and overrides
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service DbSecuritySpt and rmnologin if started
insserv: loop involving service rmnologin at depth 5
insserv: loop involving service DbSecuritySpt at depth 2
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service DbSecuritySpt and rmnologin if started
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package udev (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
udev
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Use dist-upgrade instead of upgrade, and check if this can fix your issues.
 
Hi,

as it looks like you have installed some no ProxmoxVE related packages.
Please check if you have SELinux installed and if so remove it.
 
The cause laid in several hacked files located in /etc/init.d because this node was chrooted.
We have removed the files, ran the updates, migrated the last templates that were on and it's being wiped /reinstalled now.

Thanks for the help!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!