You are not logged in.

#1 2022-12-06 10:13:29

PowaBanga
Member
Registered: 2021-04-05
Posts: 22

[SOLVED] pacman: linux-6.0.10.arch2-1/desc: No such file or directory

hi everybody

After some crash updating the system on my board, the update finally succeed.
But some day later it fail with this error message :

pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 kawa is up to date
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/local/linux-6.0.10.arch2-1/desc: No such file or directory
warning: syncthing-gtk-python3: local (1:0.9.4.4-3) is newer than kawa (0.9.4.5-2)
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package linux-6.0.10.arch2-1
error: failed to prepare transaction (invalid or corrupted package)

So i try this

pacman -S linux --overwrite '/'             1 
resolving dependencies...
looking for conflicting packages...
error: could not open file /var/lib/pacman/local/linux-6.0.10.arch2-1/desc: No such file or directory
warning: could not fully load metadata for package linux-6.0.10.arch2-1
error: failed to prepare transaction (invalid or corrupted package)

hmm I am hoping that i will not be forced to reinstall my system.... hmm

Last edited by PowaBanga (2022-12-06 12:43:48)

Offline

#2 2022-12-06 10:41:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,971

Re: [SOLVED] pacman: linux-6.0.10.arch2-1/desc: No such file or directory

This error is not the one you can fix with overwrite but the actual package metadata in your local database being corrupted. Remove  /var/lib/pacman/local/linux-6.0.10.arch2-1/ and do a

pacman -Syu linux

Last edited by V1del (2022-12-06 10:42:09)

Offline

#3 2022-12-06 10:48:31

d.ALT
Member
Registered: 2019-05-10
Posts: 924

Re: [SOLVED] pacman: linux-6.0.10.arch2-1/desc: No such file or directory

Is you storage device failing? Is the filesystem corrupted?
See: https://wiki.archlinux.org/title/Fsck and https://wiki.archlinux.org/title/S.M.A.R.T.


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#4 2022-12-06 12:40:10

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,665

Re: [SOLVED] pacman: linux-6.0.10.arch2-1/desc: No such file or directory

I wouldn't delete that dir. Just touch the file in question and see if that solves it. If the 'files' file is also missing or corrupt, you may then need to use --overwrite.

Offline

#5 2022-12-06 12:40:36

PowaBanga
Member
Registered: 2021-04-05
Posts: 22

Re: [SOLVED] pacman: linux-6.0.10.arch2-1/desc: No such file or directory

ha! thank you v1del, this fix this issue !

d.ALT thank for your your advice, I will watch this with a clear head smile

Scimmia --overwrite option didn't work in this case, but thanks for your comment, i did it before that i saw your post smile

Last edited by PowaBanga (2022-12-06 12:42:31)

Offline

Board footer

Powered by FluxBB