Missing or corrupt packages

Hello team -
Sorry if this is redundant…I think my first try to post got stuck.

The Package Manager alerted me that 92+ packages can be updated but when I try to update I get the following message:

manjaro% yay -Syu
[sudo] password for rsv2: 
:: 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...
warning: gnome-shell-extension-unite: local (57-1) is newer than community (56-1)
error: could not open file /var/lib/pacman/local/linux510-5.10.68-1/desc: No such file or directory
warning: manjaro-hello: local (0.6.7-2) is newer than extra (0.6.6-9)
warning: warpinator: local (1.2.4-3) is newer than community (1.2.4-2)
warning: zsh-theme-powerlevel10k: local (1.15.0+66+g3e515a7-1) is newer than community (1.15.0-2)
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package linux510-5.10.68-1
error: failed to prepare transaction (invalid or corrupted package)
error installing repo packages
manjaro%       

I see other folks have had similar issues. Rather than just copying their attempts to fix and creating an XY Problem, I thought I’d post my error and see if there are any recommendations to fix. I can’t interpret what’s making the system unhappy.

Thx in advance

Reid

it could go with:

sudo pacman -Syyu

or yay beeing an aur helper, with the second y you force to sync, yay would put it like yay -Syyu

Try switching mirrors before trying to update:

$ sudo pacman-mirrors -f5 && sudo pacman -Syyu

Hi -
Thx for the suggestions. I followed the suggestion of freggel.doe. Here’s the output:

manjaro% sudo pacman-mirrors -f5 && sudo pacman -Syyu
[sudo] password for rsv2:
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: http://repo.manjaro.org/status.json

::ERROR Connection: HTTPSConnectionPool(host=‘repo.manjaro.org’, port=443): Read timed out. (read timeout=2)
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
2.088 Sweden : Index of /manjaro/
1.902 Bulgaria : http://manjaro.telecoms.bg/
0.422 United_States : Index of /manjaro/
0.569 United_States : Index of /manjaro/
… Italy : Index of /manjaro/

::ERROR (“Connection broken: ConnectionResetError(104, ‘Connection reset by peer’)”, ConnectionResetError(104, ‘Connection reset by peer’))

1.254 Czech : Index of /manjaro/
::INFO Writing mirror list
::United_States : Index of /manjaro/stable/
::Czech : Index of /manjaro/stable/
::Bulgaria : Index of /stable/
::Sweden : Index of /manjaro/stable/
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases…
core 172.5 KiB 528 KiB/s 00:00 [##########################################] 100%
extra 1907.3 KiB 7.08 MiB/s 00:00 [##########################################] 100%
community 6.7 MiB 8.40 MiB/s 00:01 [##########################################] 100%
multilib 175.7 KiB 1812 KiB/s 00:00 [##########################################] 100%
:: Starting full system upgrade…
warning: gnome-shell-extension-unite: local (57-1) is newer than community (56-1)
error: could not open file /var/lib/pacman/local/linux510-5.10.68-1/desc: No such file or directory
warning: manjaro-hello: local (0.6.7-2) is newer than extra (0.6.6-9)
warning: warpinator: local (1.2.4-3) is newer than community (1.2.4-2)
warning: zsh-theme-powerlevel10k: local (1.15.0+66+g3e515a7-1) is newer than community (1.15.0-2)
resolving dependencies…
looking for conflicting packages…
warning: could not fully load metadata for package linux510-5.10.68-1
error: failed to prepare transaction (invalid or corrupted package)
manjaro%

Looks like the same error. If there are other thoughts please let me know.

try to clear the cache first:
sudo pacman -Scc
and redo
sudo pacman-mirrors -f5 && sudo pacman -Syyu

Thx Olli -
Looks a little cleaner but the end result is the same:

manjaro% sudo pacman -Scc
[sudo] password for rsv2:

Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove ALL files from cache? [y/N] y
removing all files from cache…

Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n] Y
removing unused sync repositories…
manjaro%
manjaro%
manjaro% sudo pacman-mirrors -f5 && sudo pacman -Syyu
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: http://repo.manjaro.org/status.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
1.340 Germany : Index of /manjaro/
1.014 Germany : Index of /manjaro/
1.498 Germany : Index of /pub/linux/manjaro/
1.036 Germany : Index of /pub/linux/manjaro/
… Germany : ftp://ftp.gwdg.de/pub/linux/manjaro/
… Singapore : Index of /os/linux/manjaro
1.363 Germany : Index of /manjaro/
0.451 United_States : Index of /manjaro/
::INFO Writing mirror list
::United_States : Index of /manjaro/stable/
::Germany : Index of /manjaro/stable/
::Germany : Index of /manjaro/stable/
::Singapore : Index of /os/linux/manjaro/stable
::Germany : Index of /pub/linux/manjaro/stable/
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases…
core 172.5 KiB 442 KiB/s 00:00 [##########################################] 100%
extra 1907.3 KiB 7.16 MiB/s 00:00 [##########################################] 100%
community 6.7 MiB 12.2 MiB/s 00:01 [##########################################] 100%
multilib 175.7 KiB 2.72 MiB/s 00:00 [##########################################] 100%
:: Starting full system upgrade…
warning: gnome-shell-extension-unite: local (57-1) is newer than community (56-1)
error: could not open file /var/lib/pacman/local/linux510-5.10.68-1/desc: No such file or directory
warning: manjaro-hello: local (0.6.7-2) is newer than extra (0.6.6-9)
warning: warpinator: local (1.2.4-3) is newer than community (1.2.4-2)
warning: zsh-theme-powerlevel10k: local (1.15.0+66+g3e515a7-1) is newer than community (1.15.0-2)
resolving dependencies…
looking for conflicting packages…
warning: could not fully load metadata for package linux510-5.10.68-1
error: failed to prepare transaction (invalid or corrupted package)
manjaro%

Reid

may you post the output of ‘uname -a’

manjaro% uname -a
Linux manjaro 5.12.19-1-MANJARO #1 SMP PREEMPT Tue Jul 20 20:57:37 UTC 2021 x86_64 GNU/Linux
manjaro%

okay that’s the issue, you’re still using kernel 5.12 but this is no longer valid . try to update the kernel first before updating the rest

It would be even cleaner if you used proper formatting like you did in your first post. :wink:

1 Like

HI -
updated the kernel and retried the commands, shown below. BTW… tried to format it correctly:

manjaro% uname -a
Linux manjaro 5.14.7-2-MANJARO #1 SMP PREEMPT Wed Sep 22 12:22:56 UTC 2021 x86_64 GNU/Linux
manjaro%
manjaro%
manjaro%
manjaro% sudo pacman-mirrors -f5 && sudo pacman -Syyu
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: http://repo.manjaro.org/status.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
0.249 Australia : https://manjaro.lucassymons.net/
0.959 Belgium : http://ftp.belnet.be/mirrors/manjaro/repos/
… Belgium : ftp://ftp.belnet.be/mirrors/manjaro/repos/
1.985 Germany : Index of /pub/linux/manjaro/
… Germany : Index of /pub/linux/manjaro/

::ERROR Connection: HTTPConnectionPool(host=‘ftp.gwdg.de’, port=80): Read timed out.

… Germany : ftp://ftp.gwdg.de/pub/linux/manjaro/
0.332 Canada : Index of /manjaro/
1.116 Belarus : Index of /pub/mirrors/manjaro/
::INFO Writing mirror list
::Australia : https://manjaro.lucassymons.net/stable
::Canada : Index of /manjaro/stable/
::Belarus : Index of /pub/mirrors/manjaro/stable/
::Germany : Index of /pub/linux/manjaro/stable/
::Belgium : http://ftp.belnet.be/mirrors/manjaro/repos/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases…
core 172.5 KiB 850 KiB/s 00:00 [##########################################] 100%
extra 1907.3 KiB 9.60 MiB/s 00:00 [##########################################] 100%
community 6.7 MiB 8.59 MiB/s 00:01 [##########################################] 100%
multilib 175.7 KiB 3.43 MiB/s 00:00 [##########################################] 100%
:: Starting full system upgrade…
warning: gnome-shell-extension-unite: local (57-1) is newer than community (56-1)
error: could not open file /var/lib/pacman/local/linux510-5.10.68-1/desc: No such file or directory
warning: manjaro-hello: local (0.6.7-2) is newer than extra (0.6.6-9)
warning: warpinator: local (1.2.4-3) is newer than community (1.2.4-2)
warning: zsh-theme-powerlevel10k: local (1.15.0+66+g3e515a7-1) is newer than community (1.15.0-2)
resolving dependencies…
looking for conflicting packages…
warning: could not fully load metadata for package linux510-5.10.68-1
error: failed to prepare transaction (invalid or corrupted package)
manjaro%

please post the output of ‘pacman-mirrors --status’

manjaro% pacman-mirrors --status
Local mirror status for stable branch
Mirror #1 OK 01:15 Australia https://manjaro.lucassymons.net/
Mirror #2 OK 00:25 Canada Index of /manjaro/
Mirror #3 OK 05:55 Belarus Index of /pub/mirrors/manjaro/
Mirror #4 OK 00:47 Germany Index of /pub/linux/manjaro/
Mirror #5 OK 02:25 Belgium http://ftp.belnet.be/mirrors/manjaro/repos/
manjaro%

Question for you…

Since I’m getting this error: warning: could not fully load metadata for package linux510-5.10.68-1… why not just delete /var/lib/pacman/local/linux510-5.10.68-1/mtree/linux510-5.10 ? Is that a disaster?

i would follow the advice and delete it

What could possibly go wrong ? :->

fingers crossed :slight_smile: but 5.10 is no longer valid and you’re already running a newer kernel.

OK… it’s fixed… had to delete that directory and another one in /boot, but then it updated just fine.

Thx for all of your help and patience.

RV

1 Like

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