You are not logged in.
Hi,
Today, during my weekly update, the process of apt fails with this error:
# apt update && apt upgrade -y
(...)
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Paramétrage de initramfs-tools (0.141) ...
update-initramfs: deferring update (trigger activated)
Traitement des actions différées (« triggers ») pour initramfs-tools (0.141) ...
update-initramfs: Generating /boot/initrd.img-5.17.0-1-amd64
live-boot: core filesystems dm-verityE: /usr/share/initramfs-tools/hooks/live failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.17.0-1-amd64 with 1.
dpkg: erreur de traitement du paquet initramfs-tools (--configure) :
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Des erreurs ont été rencontrées pendant l'exécution :
initramfs-tools
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Next, I tried a `dpkg configure` as:
# dpkg --configure -a
Paramétrage de initramfs-tools (0.141) ...
update-initramfs: deferring update (trigger activated)
Traitement des actions différées (« triggers ») pour initramfs-tools (0.141) ...
update-initramfs: Generating /boot/initrd.img-5.17.0-1-amd64
live-boot: core filesystems dm-verityE: /usr/share/initramfs-tools/hooks/live failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.17.0-1-amd64 with 1.
dpkg: erreur de traitement du paquet initramfs-tools (--configure) :
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Des erreurs ont été rencontrées pendant l'exécution :
initramfs-tools
Same result!
For the `update-initramfs -uv` command, see the paste : https://0x0.st/omms.txt
How can I fix this?
Last edited by PengouinPdt (2022-05-17 11:41:23)
Offline
Bonjour PengouinPdt, ça va?
live-boot: core filesystems dm-verityE: /usr/share/initramfs-tools/hooks/live failed with return 1.
From where did you obtain that hook? It shouldn't be present in an installed system.
Here are the standard hooks: https://salsa.debian.org/kernel-team/in … ster/hooks
And for future reference my French is (almost) passable but you can make the terminal commands speak English by putting LC_ALL=C before the command.
Brianna Ghey — Rest In Power
Offline
Hi, @Head_on_a_stick
From where did you obtain that hook? It shouldn't be present in an installed system.
I dont known!
Offline
I saw this same error a few days ago. I don't remember what I was doing, and I'm not sure what I did to fix it. Looking around, I see that I reinstalled initramfs-tools on my daedalus system four days ago. Maybe that was it. I also see that I got an upgrade of initramfs-core (to version 0.141) about 10 days ago.
Sorry I can't be more certain about this.
Edit: Here's my exact command history. Looks like I couldn't upgrade until I reinstalled initramfs-tools.
1968 apt update
1969 exit
1970 less /var/log/apt/history.log
1971 less /var/log/apt/history.log.1
1972 zless /var/log/apt/history.log.1.gz
1973 aptitude reinstall initramfs-tools
1974 exit
1975 less /var/log/apt/history.log
1976 less /var/log/apt/history.log.1
1977 less /var/log/apt/history.log.1.gz
1978 zless /var/log/apt/history.log.1.gz
1979 exit
1980 apt upgrade
1981 exit
Offline
Maybe it helps: Updated my Daedalus VM w/Mate today, worked fine, no issues.
Offline
@OP: try
# apt purge live-boot-initramfs-tools open-infrastructure-system-boot
^ Those packages provide that hook and should not be installed except in the live environment.
Brianna Ghey — Rest In Power
Offline
@rolfie: Daedalus is not an Unstable version. It's the future "stable", actual "testing".
See: https://www.devuan.org/os/releases
Installing the `usrmerge` package solves the problem; update continues without fails.
---
@Head_on_a_stick: purge done! (but only live-boot-initramfs-tools was installed)
Offline
I ran into this again today on an upgrade in daedalus. Temporary solution is to downgrade live-boot and live-boot-initramfs-tools to version 1:20210208 which I downloaded from a debian mirror.
@PenguinPdt: How did you come up with the idea to add usrmerge? What's the connection?
BTW, Daedalus is about a week behind Ceres. They are mostly the same right now until Bookworm goes into freeze.
Edit/Update: Better fix is to put the following line in /etc/live/boot.conf
DISBLE_DM_VERITY=true
This issue will affect anyone who has refractasnapshot installed, because it depends on live-boot.
Offline
@fsmithred: the connection about usrmerge?
On french forum debian-fr.org, one user specifies que dm-verity use `mount` binary:
# dm-verity support
if [ "${DISABLE_DM_VERITY:-}" != "true" ] && [ "${DISABLE_DM_VERITY:-}" != "yes" ]
then
[ "${QUIET}" ] || echo -n " dm-verity"
manual_add_modules dm-verity
# The BusyBox mount does not support dm-verity so we use the util-linux version.
copy_exec /usr/bin/mount /bin
fi
On Devuan, the mount binary is not, by default, on /usr/bin/mount, just on /bin/mount. Either, I create a symlink or install usrmerge. I did not want to create a symbolic link, I installed usrmerge.
Before usrmerge:
$ which -a mount
/bin/mount
After:
$ which -a mount
/usr/bin/mount
/bin/mount
Last edited by PengouinPdt (2022-05-12 08:11:33)
Offline
I did not want to create a symbolic link, I installed usrmerge
The usrmerge package works by creating symlinks; check ls -l /bin/mount.
Has this problem been reported to Debian as a bug?
Brianna Ghey — Rest In Power
Offline
Offline
@fsmithred: ty!
Offline
@fsmithred, this issue did not properly land in debian/devuan. I am having issues with this bug still
Last edited by MrReplikant (2023-01-15 13:22:41)
That's all, folks.
Offline
I built live-boot packages with the fix and put them here for people to use until debian builds them. I really hope we don't have to fork live-boot for this.
https://sourceforge.net/projects/refracta/files/tools/
live-boot, live-boot-initramfs-tools and live-boot doc all from 2022-12-16.
Offline
I built live-boot packages with the fix and put them here for people to use until debian builds them. I really hope we don't have to fork live-boot for this.
https://sourceforge.net/projects/refracta/files/tools/live-boot, live-boot-initramfs-tools and live-boot doc all from 2022-12-16.
So do I:
If you work systematically, things will come by itself (Lev D. Landau)
Offline