[SOLVED] insserv: FATAL: service mountkernfs has to be enabled to use service udev

GarrettB

Well-Known Member
Jun 4, 2018
105
16
58
Just ran updates and got this message during the update script. I found this which doesn't seem to end with a resolution: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=922815

Should I be concerned? I added blank lines around failure message:

Code:
apt-listchanges: Reading changelogs...
Preconfiguring packages ...
(Reading database ... 151385 files and directories currently installed.)
Preparing to unpack .../base-files_10.3+deb10u8_amd64.deb ...
Unpacking base-files (10.3+deb10u8) over (10.3+deb10u7) ...
Setting up base-files (10.3+deb10u8) ...
Installing new version of config file /etc/debian_version ...
(Reading database ... 151385 files and directories currently installed.)
Preparing to unpack .../libnss-systemd_241-7~deb10u6_amd64.deb ...
Unpacking libnss-systemd:amd64 (241-7~deb10u6) over (241-7~deb10u5) ...
Preparing to unpack .../libsystemd0_241-7~deb10u6_amd64.deb ...
Unpacking libsystemd0:amd64 (241-7~deb10u6) over (241-7~deb10u5) ...
Setting up libsystemd0:amd64 (241-7~deb10u6) ...
(Reading database ... 151385 files and directories currently installed.)
Preparing to unpack .../libpam-systemd_241-7~deb10u6_amd64.deb ...
Unpacking libpam-systemd:amd64 (241-7~deb10u6) over (241-7~deb10u5) ...
Preparing to unpack .../systemd_241-7~deb10u6_amd64.deb ...
Unpacking systemd (241-7~deb10u6) over (241-7~deb10u5) ...
Preparing to unpack .../udev_241-7~deb10u6_amd64.deb ...
Unpacking udev (241-7~deb10u6) over (241-7~deb10u5) ...
Preparing to unpack .../libudev1_241-7~deb10u6_amd64.deb ...
Unpacking libudev1:amd64 (241-7~deb10u6) over (241-7~deb10u5) ...
Setting up libudev1:amd64 (241-7~deb10u6) ...
Setting up systemd (241-7~deb10u6) ...
(Reading database ... 151385 files and directories currently installed.)
Preparing to unpack .../systemd-sysv_241-7~deb10u6_amd64.deb ...
Unpacking systemd-sysv (241-7~deb10u6) over (241-7~deb10u5) ...
Preparing to unpack .../libgnutls-openssl27_3.6.7-4+deb10u6_amd64.deb ...
Unpacking libgnutls-openssl27:amd64 (3.6.7-4+deb10u6) over (3.6.7-4+deb10u5) ...
Preparing to unpack .../libgnutlsxx28_3.6.7-4+deb10u6_amd64.deb ...
Unpacking libgnutlsxx28:amd64 (3.6.7-4+deb10u6) over (3.6.7-4+deb10u5) ...
Preparing to unpack .../libgnutls30_3.6.7-4+deb10u6_amd64.deb ...
Unpacking libgnutls30:amd64 (3.6.7-4+deb10u6) over (3.6.7-4+deb10u5) ...
Setting up libgnutls30:amd64 (3.6.7-4+deb10u6) ...
(Reading database ... 151385 files and directories currently installed.)
Preparing to unpack .../0-iproute2_4.20.0-2+deb10u1_amd64.deb ...
Unpacking iproute2 (4.20.0-2+deb10u1) over (4.20.0-2) ...
Preparing to unpack .../1-file_1%3a5.35-4+deb10u2_amd64.deb ...
Unpacking file (1:5.35-4+deb10u2) over (1:5.35-4+deb10u1) ...
Preparing to unpack .../2-libmagic1_1%3a5.35-4+deb10u2_amd64.deb ...
Unpacking libmagic1:amd64 (1:5.35-4+deb10u2) over (1:5.35-4+deb10u1) ...
Preparing to unpack .../3-libmagic-mgc_1%3a5.35-4+deb10u2_amd64.deb ...
Unpacking libmagic-mgc (1:5.35-4+deb10u2) over (1:5.35-4+deb10u1) ...
Preparing to unpack .../4-libcairo2_1.16.0-4+deb10u1_amd64.deb ...
Unpacking libcairo2:amd64 (1.16.0-4+deb10u1) over (1.16.0-4) ...
Preparing to unpack .../5-libcairo-gobject2_1.16.0-4+deb10u1_amd64.deb ...
Unpacking libcairo-gobject2:amd64 (1.16.0-4+deb10u1) over (1.16.0-4) ...
Preparing to unpack .../6-unzip_6.0-23+deb10u2_amd64.deb ...
Unpacking unzip (6.0-23+deb10u2) over (6.0-23+deb10u1) ...
Setting up systemd-sysv (241-7~deb10u6) ...
Setting up libgnutls-openssl27:amd64 (3.6.7-4+deb10u6) ...
Setting up libmagic-mgc (1:5.35-4+deb10u2) ...
Setting up iproute2 (4.20.0-2+deb10u1) ...
Setting up unzip (6.0-23+deb10u2) ...
Setting up libmagic1:amd64 (1:5.35-4+deb10u2) ...
Setting up libnss-systemd:amd64 (241-7~deb10u6) ...
Setting up file (1:5.35-4+deb10u2) ...
Setting up libcairo2:amd64 (1.16.0-4+deb10u1) ...
Setting up udev (241-7~deb10u6) ...
update-initramfs: deferring update (trigger activated)

insserv: FATAL: service mountkernfs has to be enabled to use service udev

Setting up libgnutlsxx28:amd64 (3.6.7-4+deb10u6) ...
Setting up libpam-systemd:amd64 (241-7~deb10u6) ...
Setting up libcairo-gobject2:amd64 (1.16.0-4+deb10u1) ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for dbus (1.12.20-0+deb10u1) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for initramfs-tools (0.133+deb10u1) ...
update-initramfs: Generating /boot/initrd.img-5.4.78-2-pve
Running hook script 'zz-pve-efiboot'..
Re-executing '/etc/kernel/postinst.d/zz-pve-efiboot' in new private mount namespace..
No /etc/kernel/pve-efiboot-uuids found, skipping ESP sync.
 
I assume this is a system, which has been installed some releases ago? (PVE 4.x or earlier)

AFAIK 'insserv' is not needed anymore on a current debian system (and none of the PVE installations I checked have it installed).

I would suggest to try to remove 'insserv'

I hope this helps!
 
Ok great! Thank you for the suggestion - I started with Proxmox v5 and it's a pretty clean install but there's a chance it was a dependency or something related to a backup system maybe. I will look to remove it. Thanks again.
 
You're welcome!

just to be clear - check the output of the remove command carefully - I quickly installed insserv and removed it - this worked - but if removing it would pull in other removals - consider the implications
 
I tried to see what might be depending on it:

Code:
root@pve:~# apt-cache rdepends insserv
insserv
Reverse Depends:
  sysv-rc
  zfsutils-linux
  openrc
  startpar

root@pve:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:        10
Codename:       buster

I also found this: https://unix.stackexchange.com/ques...-initramfs-and-insserv-seem-to-be-the-problem

My results are same:
Code:
root@pve:/etc/init.d# systemctl status mountkernfs
● mountkernfs.service
   Loaded: masked (Reason: Unit mountkernfs.service is masked.)
   Active: inactive (dead)

However, there is no /etc/mountkernfs.sh file to link to as suggested in the post. I searched the whole system for a mountkernfs.sh file but there isn't one.

I'm just going to let it be for the moment as nothing else seems to be the problem.
 
zfsutils-linux depending on insserv seems wrong - which version do you have installed?
 
Code:
insserv/stable,now 1.18.0-2 amd64 [installed]
  boot sequence organizer using LSB init.d script dependency information

zfsutils-linux/stable,now 0.8.5-pve1 amd64 [installed]
  command-line tools to manage OpenZFS filesystems

PVE 6.3-3

Thanks
 
I just checked - and did misunderstand what rdepends does - zfsutils-linux in version 0.8.5-pve1 does not depend on insserv:
Code:
# apt-cache show zfsutils-linux=0.8.5-pve1
Package: zfsutils-linux
Architecture: amd64
Version: 0.8.5-pve1
Priority: optional
Section: contrib/admin
Source: zfs-linux
Maintainer: Proxmox Support Team <support@proxmox.com>
Installed-Size: 1237
Provides: zfsutils
Depends: python3, libblkid1 (>= 2.16), libc6 (>= 2.17), libnvpair1linux (>= 0.8.5), libudev1 (>= 183), libuuid1 (>= 2.16), libuutil1linux (>= 0.8.5), libzfs2linux (>= 0.8.5), libzpool2linux (>= 0.8.5), zlib1g (>= 1:1.1.4)
Recommends: lsb-base, zfs-zed
Suggests: nfs-kernel-server, samba-common-bin (>= 3.0.23), zfs-initramfs
Conflicts: zfs, zfs-fuse
Filename: dists/buster/pve-enterprise/binary-amd64/zfsutils-linux_0.8.5-pve1_amd64.deb
Size: 367536
MD5sum: 8715e3d4b4d27db58d15a585083c338d
SHA1: 5cab6b8f34633c02680b1bfb22560c3f390322b3
SHA256: 8e9a5b69aaa1fbbf53f34f7d93fcada145cdf0ecfd90847b5123f4738bad5a2d
SHA512: 1cb7adb208f47f57b54033d330bd85434baaae2bca9075935e9d4e38f8d8e088625334dce2f271662a79cf48520e999f623fc4f16f0bf47d1206de35ea1185c8
Homepage: https://www.zfsonlinux.org/
Description-en: command-line tools to manage OpenZFS filesystems
 OpenZFS is a storage platform that encompasses the functionality of
 traditional filesystems and volume managers. It supports data checksums,
 compression, encryption, snapshots, and more.
 .
 This package provides the zfs and zpool commands to create and administer
 OpenZFS filesystems.
Description-md5: e0d1624ff402201471b9a32e9cb71f16
however the package provided by debian-buster (0.7.12-2+deb10u2) has a Conflicts: insserv (<< 1.18) - I assume the rdpends took that.

I would still suggest to simply remove insserv if it does not try to remove any other packages.

I hope this helps!
 
  • Like
Reactions: GarrettB
I really appreciate this advice and guidance - after running the uninstall of insserv, it did indeed only uninstall that one package. Thank you again.