During `sudo apt-get update` && `sudo apt-get upgrade` the command ended
with:
$ sudo apt-get upgrade
...
Processing triggers for linux-image-6.8.0-54-generic (6.8.0-54.56) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.8.0-54-generic
E: /usr/share/init
/usr/share/initramfs-tools/hooks is shipped by initramfs-tools-core (not
initramfs-tools):
```
$ dpkg -s initramfs-tools-core | grep Version
Version: 0.142ubuntu25.5
$ dpkg -L initramfs-tools-core | grep /usr/share/initramfs-tools/hooks
/usr/share/initramfs-tools/hooks
/usr/share/initramfs-tools/h
Well and ...
$ sudo reboot now
... leads to a server that is irresponsive to
1) my ssh terminal as well as in
2) the DigitalOcean Droplet Console.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to initramfs-tools in Ubuntu.
And after restoring the server the first error on upgrading again is:
$ sudo apt upgrade
...
E: /usr/share/initramfs-tools/hooks/btrfs failed with return 1.
update-initramfs: failed for /boot/initrd.img-6.8.0-54-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return c
*** This bug is a duplicate of bug 1641230 ***
https://bugs.launchpad.net/bugs/1641230
"ldd /bin/btrfs" states that /bin/btrfs links against /lib/libgcwrap.so.
This library is a crypto-miner malware. See bug #1641230 (especially
comment 15).
Good luck with removing the malware / re-installing
I made the changes and ran it:
mhb@ubuntu-s-2vcpu-4gb-fra1-01:~$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-6.8.0-52-generic
+ set -e
+ PREREQ=
+ prereqs
+ echo
+ exit 0
+ set -e
+ PREREQ=
+ . /usr/share/initramfs-tools/hook-functions
+ [ -x /bin/btrfs ]
+ echo DEBUG: b
Sadly there is no error message explaining the exit code 1. Can you edit
/usr/share/initramfs-tools/hooks/btrfs and add "set -x" (without the
quotes) to the script and then run update-initramfs to get more log
output?
sudo nano /usr/share/initramfs-tools/hooks/btrfs
sudo update-initramfs -u
Pleas
7 matches
Mail list logo