Subject: bug#826: kmod upgrade creates links from /usr/sbin to ../bin

From: Arthur Marsh <[email-masked]>
Date: Fri, 05 Jan 2024 17:32:50 +1030

Package: kmod
Version: 31-1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

[UPGRADE] kmod:amd64 30+20230601-2.1 -> 31-1
[UPGRADE] libkmod2:amd64 30+20230601-2.1 -> 31-1

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

/usr/sbin# rm depmod insmod lsmod modinfo modprobe rmmod
then tried re-installing version 31-1 (ineffective)

then tried:

/usr/sbin# rm depmod insmod lsmod modinfo modprobe rmmod

and downgraded kmod and libkmod2:

Preparing to unpack .../kmod_30+20230601-2.1_amd64.deb ...
Unpacking kmod (30+20230601-2.1) over (31-1) ...
dpkg: warning: unable to delete old directory '/usr/lib/modprobe.d': Directory not empty
dpkg: warning: downgrading libkmod2:amd64 from 31-1 to 30+20230601-2.1
Preparing to unpack .../libkmod2_30+20230601-2.1_amd64.deb ...
Unpacking libkmod2:amd64 (30+20230601-2.1) over (31-1) ...
Setting up libkmod2:amd64 (30+20230601-2.1) ...
Setting up kmod (30+20230601-2.1) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.7.0-rc8+
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/cat'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/cpio'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/dd'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/dmesg'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/false'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/gunzip'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/kill'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/ln'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/ls'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/mkdir'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/mkfifo'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/mknod'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/mount'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/mv'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/nuke'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/readlink'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/resume'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/sh'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/sleep'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/sync'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/true'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/umount'
cp: not replacing '/var/tmp/mkinitramfs_COM0md/bin/uname'
Processing triggers for libc-bin (2.38-3) ...
Processing triggers for man-db (2.12.0-1) ...

which was effective

   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 6 (excalibur/ceres)
Release:	6
Codename:	excalibur ceres
Architecture: x86_64

Kernel: Linux 6.7.0-rc8+ (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages kmod depends on:
ii  libc6     2.38-5
ii  libkmod2  30+20230601-2.1
ii  liblzma5  5.4.5-0.3
ii  libssl3   3.1.4-2
ii  libzstd1  1.5.5+dfsg2-2

kmod recommends no packages.

kmod suggests no packages.

-- no debconf information