You are not logged in.

#1 2014-11-29 18:43:32

Arch3R
Member
Registered: 2014-11-21
Posts: 38

[SOLVED]Pacman systemd missing file

Everytime when I run pacman I get this error:

error: could not open file /var/lib/pacman/local/systemd-217-8/desc: No such file or directory

I think i messed up something when upgrading system.
Can you help me to solve this issue?
Thanks

Last edited by Arch3R (2014-11-29 19:14:08)

Offline

#2 2014-11-29 18:57:44

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [SOLVED]Pacman systemd missing file

Does reinstalling systemd or libsystemd help?

Offline

#3 2014-11-29 18:58:14

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

Re: [SOLVED]Pacman systemd missing file

Just reinstall systemd:

pacman -S systemd

select yes if it prompts due to it already being installed.

You might also want to run `pacman -Qk` to see if any other packages have been damaged.

EDIT: I just did some silly trial and error and deleted that file from my system (probably would have been smarter to move/rename it).  Reinstalling systemd failed due to a conflicting file error as all the files for the package are there, but the pacman database doesn't realize they belong to that package.  In this case I used --force with the single specific package:

pacman -S --force systemd

Note that this use of --force is an apparent necessity to fix this specific problem.  This does not support using it when uncertain why something fails - I knew why it was failing.

Last edited by Trilby (2014-11-29 19:01:55)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2014-11-29 19:13:47

Arch3R
Member
Registered: 2014-11-21
Posts: 38

Re: [SOLVED]Pacman systemd missing file

Thanks everyone problem is solved by running

pacman -S --force systemd

Offline

#5 2014-11-29 20:03:27

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,899
Website

Re: [SOLVED]Pacman systemd missing file

You don't even need to force the install, you can just use --dbonly to recreate the missing database file.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB