problem with initramfs-tools
Eyal Lebedinsky
eyal at eyal.emu.id.au
Wed Dec 18 00:15:15 UTC 2024
First, I did not originally install this laptop so was unsure of exactly what is the OS.
It is an i686 os, debian 12.8.
$ cat /etc/issue
Debian GNU/Linux 12 \n \l
It was built for a raspi course in our hackerspace.
Looking at old logs I see a mention of
Detected CD 'Debian GNU/Linux RPD "Stretch" - Raspberry Pi Desktop Multi-architecture i386/amd64 NETINST #1 20171117-15:35
It was upgraded a few times since without issues.
Back to the future...
I hope that it is still OK to ask on this Ubuntu list, or else I will look for a Debian list.
I decided to try and locate where the problem is but was not able to pin it down.
However I attempted to do the least, which triggers the problem:
$ sudo dpkg --configure initramfs-tools
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
$ sudo strace dpkg --configure initramfs-tools 2>strace.log
$ gzip -k --best strace.log
This smallish file (562 lines) is attached. Can anyone see what is actually causing the failure?
TIA
On 17/12/24 5:18 pm, Eyal Lebedinsky wrote:
> 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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace.log.gz
Type: application/gzip
Size: 8869 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20241218/821438d5/attachment-0001.gz>
More information about the ubuntu-users
mailing list