Error while trying to install apps

Whenever I try to install a new application I get the following error.

v01d@clockworkpi:~ $ sudo apt install -f flatpak
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
flatpak is already the newest version (1.14.10-1~deb12u1).
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 clockworkpi-kernel (6.12.32-v8-16k+) …
/var/lib/dpkg/info/clockworkpi-kernel.postinst: 29: linux-update-symlinks: not found
dpkg: error processing package clockworkpi-kernel (–configure):
installed clockworkpi-kernel package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
clockworkpi-kernel
E: Sub-process /usr/bin/dpkg returned an error code (1)
v01d@clockworkpi:~ $

any help would be much appreciated.

1 Like

can you please put there result of

$ df -h

My guess you have no free space, probably because your partition wasn’t extented. If it’s a case you can extended if via

$ sudo raspi-config

v01d@clockworkpi:~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 58G 8.1G 48G 15% /
devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs 4.0G 32K 4.0G 1% /dev/shm
tmpfs 1.6G 15M 1.6G 1% /run
tmpfs 5.0M 64K 5.0M 2% /run/lock
/dev/mmcblk0p1 510M 77M 434M 15% /boot/firmware
tmpfs 807M 400K 806M 1% /run/user/1000

It dosent look like its lacking space

1 Like

can you try reinstalling the kernel. sudo apt reinstall clockworkpi-kernel

this is what I get

v01d@clockworkpi:~ $ sudo apt reinstall clockworkpi-kernel
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 clockworkpi-kernel:arm64

That’s strange… It’s obviously installed, but it says it can’t find it.
What distro are you using?

Im using bookworm 6.12 the last image you shared.

I was able to install software before I did an upgrade so somwthing there effed up things?

is my repo still installed? this file should exist if it is. /etc/apt/sources.list.d/ak-rex.list

Yes its still there

deb [arch=arm64] https://raw.githubusercontent.com/ak-rex/ClockworkPi-apt/main/bookworm stable main

I wonder why you’re getting this trying to reinstall the kernel
E: Internal Error, No file name for clockworkpi-kernel:arm64

Same, that’s really weird. I might just reinstall the original image.

There seems to be some sort of error when the updated kernel got installed since I’m getting

1 not fully installed or removed.
installation script subprocess returned error exit status 127

Try sudo apt —fix-broken install.

I had same problem and source of that was removing two important packages:

linux-base
initramfs-tools (can be replaced by dracut)

I’m not quite sure how i broke it this way but most probably is i missed some dependency issue while i build my system from Bookworm lite image and experimeted with several desktop enviroments and lot of other things.

Tried clean install on other card and no problem, so it shouldn’t be bug in Rex’s image.