You are not logged in.

#1 2017-10-08 18:10:15

Cbhihe
Member
Registered: 2017-04-09
Posts: 244

[SOLVED] pacman database file for {core,extra,community} doesn't exist

Hello, I get the error message in subject line while doing:

$ sudo pacman -Fo any-package

I checked that I have {community,code,extra}.db in /var/lib/pacman/sync (du is 5.9M)
and {community,code,extra}.files in /var/cache/pkgfile/  (du is 220M)

Next I downloaded pkgfile with pacman and executed:

$ sudo pkgfile -u
::Updating 3 repos...
core is up to date
download complete: extra                      ....
download complete: extra                      ....
:: download complete in 24.41s               ....
:: waiting for 1 process to finish repacking repos...
$
$ sudo pkgfile git
extra/git

But all this did not affect the underlying issue causing the warning.

I went back 6 years in the archlinux forum to look for an answer, to no avail.
I am no closer to understand what the issue seems to be or how to fix this.
Any help welcome.

Last edited by Cbhihe (2017-10-08 19:43:42)


I like strawberries, therefore I'm not a bot.

Offline

#2 2017-10-08 18:12:19

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

Re: [SOLVED] pacman database file for {core,extra,community} doesn't exist

pacman -Fy

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-10-08 19:13:13

Cbhihe
Member
Registered: 2017-04-09
Posts: 244

Re: [SOLVED] pacman database file for {core,extra,community} doesn't exist

That synchronizes the 3 DBs nicely and leaves `$ sudo pacman -Fo any-package` with no answer and no error message. just nothing. (???) Am I missing something very basic ?


I like strawberries, therefore I'm not a bot.

Offline

#4 2017-10-08 19:24:22

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: [SOLVED] pacman database file for {core,extra,community} doesn't exist

$ pacman -Fo any-package

So no package owns the file or directory /any-package

Offline

#5 2017-10-08 19:42:36

Cbhihe
Member
Registered: 2017-04-09
Posts: 244

Re: [SOLVED] pacman database file for {core,extra,community} doesn't exist

@loqs: actually you just gave me the answer. Thank you.

I should write

$ pacman -Fo /fully/qualified/path/name

instead of :

$ pacman -Fo name      # interpreted as /name

All the same I find it interesting that  'pkgfile' and 'pacman' give different results: advantage 'pkgfile' apparently:

$ pacman -Fo /usr/bin/netstat
usr/bin/netstat is owned by core/net-tools 1.60.20160...git-1
$ pkgfile netstat
core/net-tools
extra/munin-node

The second group is not shown by 'pacman'.


I like strawberries, therefore I'm not a bot.

Offline

#6 2017-10-08 19:46:47

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: [SOLVED] pacman database file for {core,extra,community} doesn't exist

$ pacman -Fs netstat
core/net-tools 1.60.20160710git-1
    usr/bin/netstat
extra/munin-node 2.0.26-4
    usr/lib/munin/plugins/netstat

Offline

#7 2017-10-08 19:59:10

Cbhihe
Member
Registered: 2017-04-09
Posts: 244

Re: [SOLVED] pacman database file for {core,extra,community} doesn't exist

@loqs: Aha ! Thank you, one more time.


I like strawberries, therefore I'm not a bot.

Offline

#8 2017-10-08 21:32:37

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [SOLVED] pacman database file for {core,extra,community} doesn't exist

For further reading about -F and its options. please see the ArchWiki and pacmans' man page.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#9 2017-10-09 17:43:29

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] pacman database file for {core,extra,community} doesn't exist

Yes, pkgfile and pacman -F are completely different utilities and have completely different usage, compare the difference between `pkgfile -h` and `pacman -Fh`. tongue

That being said, pkgfile as a standalone tool is IMHO a lot better than the more recent `pacman -F` implementation. It is both more powerful and faster.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB