Earlier this afternoon (Fri Jan 5, 2024), my Pamac and Pacman were broken in a really bizarre way.
When I attempted to check for updates via Pamac, Pamac filled my RAM (62GiB) with garbage then started using M2 storage as virtual RAM, and took about 10 minutes to update databases. Then on attempting to actually update 4 AUR packages, Pamac crashed.
So I tried the same thing with Pacman, but it also failed, in an interesting way:
%sudo pacman -S -yy -u --needed
Job start time: 01:26:34 PM
[sudo] password for aragorn:
:: Synchronizing package databases…
core 144.7 KiB 348 KiB/s 00:00 [######################################] 100%
extra 8.6 MiB 33.3 MiB/s 00:00 [######################################] 100%
community 29.0 B 674 B/s 00:00 [######################################] 100%
multilib 143.5 KiB 2.98 MiB/s 00:00 [######################################] 100%
:: Starting full system upgrade…
error: could not read db ‘extra’ (Damaged tar archive)
error: could not read db ‘extra’ (Damaged tar archive)
error: could not read db ‘extra’ (Damaged tar archive)
error: could not read db ‘extra’ (Damaged tar archive)
error: could not read db ‘extra’ (Damaged tar archive)
continuing with hundreds more lines reading “error: could not read db ‘extra’ (Damaged tar archive)”, and slowly filling up all 62GiB of my RAM with garbage. Normally this would only use about 1 or 2 GiB, right? 62GiB seems outlandish. And something tells me that the “extra” db isn’t actually damaged, Pacman just thinks it’s damaged
So I tried this and it apparently worked:
First I ran “sudo pacman -S -yy” as a separate transaction.
Then I ran “sudo pacman -S -u” as a separate transaction.
Those both succeeded, quickly, with the net effect of updating my Brave browser only. So clearly nothing was actually wrong with the “extra” db; Pacman and Pamac were just getting confused somehow.
Afterward, however, I noted these two issues:
-
The 4 AUR programs that Pamac had been attempting to update are no-longer flagged as needing update. I don’t remember exactly what they were. Unknown if these actually got updated or not, or whether they’re still on my system, or whether they still work.
-
My “Pamac Plasma System Tray Icon” (which was a AUR, and, ironically, was one of the 4 AUR programs which Pamac was trying to upgrade which caused this whole fiasco) was missing (broken? corrupted?). So I uninstalled it and installed the official-repository version instead.
So the problem seems to have been fixed when I did “sudo pacman -S -yy” followed by “sudo pacman -S -u”, as separate transactions. Weird.
Has anyone else been having similar problems with Pamac and/or Pacman? Or was this just a bizarre one-off glitch?