Can't update manjaro (invalid or corrupted package)

I’m beginner with linux I have this problem and tried almmost everything deleting cache and “sudo pacman -Syuu” and mirrors but nothing seems to work

this is the result of sudo pacman -Syuu

:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/local/breeze-icons-5.84.0-1/desc: No such file or directory
warning: manjaro-hello: downgrading from version 0.6.7-2 to version 0.6.6-8
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package breeze-icons-5.84.0-1
error: failed to prepare transaction (invalid or corrupted package)

Welcome to Manjaro Forum :slightly_smiling_face:
Try

sudo pacman -Scc

then

sudo pacman -Syyu
1 Like

unfortunately same result

 sudo pacman -Syyu
:: Synchronizing package databases...
 core                                     169.4 KiB   201 KiB/s 00:01 [######################################] 100%
 extra                                   1887.2 KiB  59.9 KiB/s 00:32 [######################################] 100%
 community                                  6.6 MiB   207 KiB/s 00:32 [######################################] 100%
 multilib                                 176.2 KiB   345 KiB/s 00:01 [######################################] 100%
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/local/breeze-icons-5.84.0-1/desc: No such file or directory
warning: manjaro-hello: local (0.6.7-2) is newer than extra (0.6.6-8)
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package breeze-icons-5.84.0-1
error: failed to prepare transaction (invalid or corrupted package)

You can create replacement for the missing files and then reinstall:

sudo touch /var/lib/pacman/local/breeze-icons-5.84.0-1/desc
sudo pacman -S breeze-icons

Then update the system.

still the same error

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

sudo rm -r /var/lib/pacman/local/breeze-icons-5.84.0-1/
sudo pacman -S breeze-icons

If this doesn’t do the thing, a post from old forum might help:

sudo pacman -Syyu --overwrite '*'
1 Like

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