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 -r → 6.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.