You are not logged in.

#1 2017-07-16 13:47:20

barronmo
Member
Registered: 2012-08-21
Posts: 55

[SOLVED] Missing desc file

My last update got interrupted.  I got it fixed and running but am now trying a subsequent update and get the following error:

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

Would it be OK to use force in this case?

sudo pacman --force -S linux-4.11.7-1

Last edited by barronmo (2017-07-17 13:38:40)

Offline

#2 2017-07-16 14:44:09

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: [SOLVED] Missing desc file

Don't run 'pacman -S package' but rather 'pacman -Syu package'.

And you could look at a more detailed output of the command adding the --debug option:

pacman --debug -Syu linux

So try to solve the problem without the --force option.

Edit; correcting command from following post, I realized that the linux package name was not good. Sorry

Last edited by berbae (2017-07-17 08:51:09)

Offline

#3 2017-07-16 15:18:58

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

Re: [SOLVED] Missing desc file

To both of the above: linux-4.11.7-1 is not a package, so none of the above listed pacman commands will do anything other than give a 'target not found' error.

Also, that version is the existing package currently installed, not the one you want to install anyways.  There is a problem with your local database.  If this is a one-off problem with the linux package, then using --force with the installation of *just that package* may be warranted.  If this is happening for other packages, however, you should probably figure out how you are losing desc files.


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

Offline

#4 2017-07-16 15:26:19

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,081

Re: [SOLVED] Missing desc file

The "No such file or directory" won't be solved with --force. The easiest thing to do is touch that file so it exists (it's normally just a text file with a description, nothing critical). After that, you should be able to update, or at least move on to the next issue.

Offline

#5 2017-07-16 19:14:39

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: [SOLVED] Missing desc file

I tried creating a blank desc file.  Got the following error:

error: could not open file /var/lib/pacman/local/linux-4.11.7-1/files: No such file or directory
warning: could not fully load metadata for package linux-4.11.7-1
error: failed to prepare transaction (invalid or corrupted package)

Offline

#6 2017-07-16 19:38:12

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,399
Website

Re: [SOLVED] Missing desc file

Remove the /var/lib/pacman/local/linux-4.11.7-1 directory, then recreate the database entry for that package using the cached version of that package (download it from the ALA if you don't have a copy)

pacman -U --dbonly /path/to/linux-4.11.7-1-x86_64.pkg.tar.xz

Then update your system

pacman -Syu

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

#7 2017-07-17 13:38:17

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: [SOLVED] Missing desc file

Thanks WorMzy, that worked.

Offline

#8 2018-12-10 03:34:41

w_tan
Member
Registered: 2018-12-10
Posts: 1

Re: [SOLVED] Missing desc file

Hi,

I have similar issue with "iso-codes" (missing "desc" and "files"). I first "touch"-ed both of the files and tried reinstall, it does not work. Using WorMzy's method does not work for me either, error msg when running "pacman -U -dbonly /home/twj/Downloads/iso-codes-4.1-1-any.pkg.tar.xz":

error: failed to initialise alpm library
(could not find or read directory: only) 

When i run "pacman -Syu iso-codes", I have error saying a tons of files already exist (those that were supposed to be added through installation) (sorry guys, I have closed the terminal and do not have the error message already).
So I removed all of them and finally I could install "iso-codes".

Last edited by w_tan (2018-12-10 03:35:28)

Offline

#9 2018-12-10 05:03:35

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

Re: [SOLVED] Missing desc file

Please don't necrobump, especially solved threads: https://wiki.archlinux.org/index.php/Co … bumping.22


Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB