Update — Error: Failed to commit transaction: transaction not prepared

I ran an update with pamac update --no-aur & it started downloading 8.4 GB. Right after I entered y to Apply transaction? it quit to the command prompt.

Thinking this was just some download error I ran it again and the download picked up again, but then exited during the list of downloads with 219.1 MB/8.4 GBTerminated

I probably should have stopped here and gone to bed but instead I ran it again and right after the Apply transaction? prompt I got Error: Failed to commit transaction: transaction not prepared.

Next I tried pamac update --force-refresh which ended with 558.3 MB/8.4 GBTerminated

sudo pacman -Syu gave me a more alarming message:

looking for conflicting packages...
error: could not open file /var/lib/pacman/local/linux612-headers-6.12.39-1/files: No such file or directory
warning: could not fully load metadata for package linux612-headers-6.12.39-1
error: failed to prepare transaction (invalid or corrupted package)

uname -r6.15.7-1-MANJARO (Settings Manager says 6.15.9-2, which is what the update was installing)

I have the 6.12 LTS kernel installed, but the error seems to refer to the version that was being upgraded, i.e. /var/lib/pacman/local/linux612-headers-6.12.41-1/files does exist.

Reading about a similar (but non-kernel) problem I tried creating the missing file, but that just resulted in error: duplicated database entry 'linux612-headers.

At this point I am definitely going to bed, but would be grateful for any suggestions about how to proceed.

8.4 GB seems quite a lot for an update, even when you haven’t updated for a while.

Do you have enough free space?

df -h
could tell/verify

as well as the standard:

inxi -zv8

You can try this to fix it:

sudo rm -r /var/lib/pacman/local/linux612-headers-6.12.39-1
sudo pacman -S --dbonly linux612-headers

Thanks. That seems to have fixed the phantom headers problem.

Still not sure what to make of the update that looked like it didn’t complete. Pacman now just says Nothing to do. and everything I’ve looked at is reporting the right version, so I suppose it’s good.

36 GB free on /

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.