You are not logged in.

#1 2021-12-13 00:46:11

Ste632
Member
Registered: 2021-12-13
Posts: 9

[SOLVED] Error when running sudo pacman -Syu

I tried to update but it said
" error: could not open file /var/lib/pacman/local/gcc-11.1.0-1/desc: No such file or directory
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package gcc-11.1.0-1
error: failed to prepare transaction (invalid or corrupted package) "

Last edited by Ste632 (2021-12-13 17:33:10)

Offline

#2 2021-12-13 00:56:55

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,659
Website

Re: [SOLVED] Error when running sudo pacman -Syu

touch that file, then reinstall gcc.

Offline

#3 2021-12-13 01:08:39

Ste632
Member
Registered: 2021-12-13
Posts: 9

Re: [SOLVED] Error when running sudo pacman -Syu

Allan wrote:

touch that file, then reinstall gcc.

a wall of text appears of file locations saying this file exists in filesystem and errors occured

Offline

#4 2021-12-13 01:55:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] Error when running sudo pacman -Syu

Please post the actual output.  Most immediately relevant, are these errors coming from just a single or a few packages, or from most / all?  In the latter case you have extensive db corruption.  What led up to this?  Was there a power outage during a pacman operation?  Anything else out of the ordinary?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2021-12-13 01:58:15

Ste632
Member
Registered: 2021-12-13
Posts: 9

Re: [SOLVED] Error when running sudo pacman -Syu

Trilby wrote:

Please post the actual output.  Most immediately relevant, are these errors coming from just a single or a few packages, or from most / all?  In the latter case you have extensive db corruption.  What led up to this?  Was there a power outage during a pacman operation?  Anything else out of the ordinary?

just the gcc package i was just browsing and the kde plasma discover told me that there was updates so i went and used sudo pacman -Syu and this happened only for gcc the output is too long but here is it
https://pastebin.com/KX1QkWyN

Last edited by Ste632 (2021-12-13 02:10:33)

Offline

#6 2021-12-13 02:00:28

Ste632
Member
Registered: 2021-12-13
Posts: 9

Re: [SOLVED] Error when running sudo pacman -Syu

Trilby wrote:

Please post the actual output.  Most immediately relevant, are these errors coming from just a single or a few packages, or from most / all?  In the latter case you have extensive db corruption.  What led up to this?  Was there a power outage during a pacman operation?  Anything else out of the ordinary?

about the first error it was only that nothing else after i did what he said the file already exists and errors occured

Offline

#7 2021-12-13 02:03:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Error when running sudo pacman -Syu

Edit your post and wrap that dump in code tags:
https://wiki.archlinux.org/index.php/Co … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2021-12-13 02:39:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] Error when running sudo pacman -Syu

As all your errors are just with one package, the broader concerns aren't relevant.  Something just went wrong with the gcc local db files, so follow the first troubleshooting entry in the pacman wiki page:
https://wiki.archlinux.org/title/Pacman … )%22_error

Last edited by Trilby (2021-12-13 13:48:11)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2021-12-13 02:44:48

Ste632
Member
Registered: 2021-12-13
Posts: 9

Re: [SOLVED] Error when running sudo pacman -Syu

Trilby wrote:

As all your errors are just with one package, the broader concerns aren't relevant.  Something just when wrong with the gcc local db files, so follow the first troubleshooting entry in the pacman wiki page:
https://wiki.archlinux.org/title/Pacman … )%22_error

should i try overwriting

Offline

#10 2021-12-13 07:53:26

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,862

Re: [SOLVED] Error when running sudo pacman -Syu

You can safely overwrite all the files in that paste, yes.

Offline

#11 2021-12-13 16:04:11

Ste632
Member
Registered: 2021-12-13
Posts: 9

Re: [SOLVED] Error when running sudo pacman -Syu

seth wrote:

You can safely overwrite all the files in that paste, yes.

overwriting does not work there is still a shorter wall of text saying that file system already exists

Offline

#12 2021-12-13 16:14:45

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,862

Offline

#13 2021-12-13 16:21:57

Ste632
Member
Registered: 2021-12-13
Posts: 9

Re: [SOLVED] Error when running sudo pacman -Syu

Offline

#14 2021-12-13 16:23:37

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,862

Re: [SOLVED] Error when running sudo pacman -Syu

How's that the result of a general overwrite-enabled update of gcc? What *exact* command did you issue to cause that output?

Offline

#15 2021-12-13 16:26:58

Ste632
Member
Registered: 2021-12-13
Posts: 9

Re: [SOLVED] Error when running sudo pacman -Syu

seth wrote:

How's that the result of a general overwrite-enabled update of gcc? What *exact* command did you issue to cause that output?

sudo pacman -S --overwrite gcc gcc

Offline

#16 2021-12-13 17:19:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] Error when running sudo pacman -Syu

That will only accept overwriting of files named 'gcc' ... so none.  As there is a range of files that need to be overwritten (really all of them in the package) and given that you are specifying a single package for the command, this seems to be a case to use an actual global wildcard glob:

pacman -S --overwrite "*" gcc

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#17 2021-12-13 17:32:41

Ste632
Member
Registered: 2021-12-13
Posts: 9

Re: [SOLVED] Error when running sudo pacman -Syu

Trilby wrote:

That will only accept overwriting of files named 'gcc' ... so none.  As there is a range of files that need to be overwritten (really all of them in the package) and given that you are specifying a single package for the command, this seems to be a case to use an actual global wildcard glob:

pacman -S --overwrite "*" gcc

thanks it worked

Offline

Board footer

Powered by FluxBB