problem with initramfs-tools

Eyal Lebedinsky eyal at eyal.emu.id.au
Tue Dec 17 06:18:00 UTC 2024


I am running on an old laptop, on ubuntu 12 (bookworm) i386.

I just did 'sudo apt upgrade' which did 12.6->12.8 and went mostly OK except for one issue:
	initramfs-tools package post-installation script failed.

I executed the following, hoping for a resolution:

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up initramfs-tools (0.142+rpt2+deb12u1) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.142+rpt2+deb12u1) ...
dpkg: error processing package initramfs-tools (--configure):
  installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
  initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

I do not know how the script failed. I could not find a suitable log showing it.

I also tried a full reinstall and got a different error:

$ sudo apt clean all
$ sudo apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Ign:2 http://security.debian.org bookworm/updates InRelease
Hit:3 http://archive.raspberrypi.org/debian bookworm InRelease
Err:4 http://security.debian.org bookworm/updates Release
   404  Not Found [IP: 151.101.30.132 80]
Reading package lists... Done
E: The repository 'http://security.debian.org bookworm/updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: http://archive.raspberrypi.org/debian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
$ sudo apt reinstall initramfs-tools
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for initramfs-tools:i386

The last line above looks like a real problem. Where is a file name missing?

TIA

-- 
Eyal at Home (eyal at eyal.emu.id.au)





More information about the ubuntu-users mailing list