You are not logged in.

#1 2015-06-12 13:47:51

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 674
Website

[SOLVED] AUR helper add directories in pacman's cache

This question might looks idiotic, now I'd feel worse not understanding it in case it alters this system neutral

# pacman -Sc complains about the following directories, which should be files if I understand:
# pacman -Sc

Packages to keep:
  All locally installed packages

Cache directory: /media/medfiles/src/pkg/
:: Do you want to remove all other packages from cache? [Y/n] y
removing old packages from cache...
    error: could not open file /media/medfiles/src/pkg/logs : Error reading fd 6
    error: could not open file  /media/medfiles/src/pkg/srcpackages : Error reading fd 6
    error: could not open file  /media/medfiles/src/pkg/packages : Error reading fd 6

Similar issue happened to ostroffjh with the answer: try to understand how these files ended up there first.

Looks like these directories were created by installing `keepassx-git`:

 drwxr-xr-x 2 kozaki users 4,0K 29 mai   17:30 /media/medfiles/src/pkg/packages/
-rw-r--r-- 1 kozaki users 424K 29 mai   17:30 keepassx-git-2.0.alpha6.r141.gfc43aa1-1-x86_64.pkg.tar.xz

src/logs and src/srcpackages were empty.
Deleting them then « touch » 'em, pacman -Sc complains about

Missing Meta-Data for the package in /media/medfiles/src/pkg/logs

Does this error alters pacman operations? If so can I cure it please, and what should I have done to avoid it happens?

Last edited by kozaki (2015-06-12 17:50:17)


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#2 2015-06-12 14:02:47

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

Re: [SOLVED] AUR helper add directories in pacman's cache

pacman will not give that error message...

Offline

#3 2015-06-12 14:25:21

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 674
Website

Re: [SOLVED] AUR helper add directories in pacman's cache

Hi Allan, I translated the error message to English, maybe that comes from it?
Here's the unmodified error when running `pacman -Sc`:

erreur: l’ouverture du fichier /media/medfiles/src/pkg/logs a échoué : Error reading fd 6
erreur: l’ouverture du fichier /media/medfiles/src/pkg/srcpackages a échoué : Error reading fd 6
erreur: l’ouverture du fichier /media/medfiles/src/pkg/packages a échoué : Error reading fd 6

Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#4 2015-06-12 14:53:06

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [SOLVED] AUR helper add directories in pacman's cache

Try running

LANG=C

before the command you want to run. This will give you english output.

Last edited by runical (2015-06-12 14:53:22)

Offline

#5 2015-06-12 15:00:53

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

Re: [SOLVED] AUR helper add directories in pacman's cache

They are directories and should not be there.  pacman is trying to open all the files in your package cache and fails.  When you delete then touch them, pacman opens the files but finds they are not packages.

My guess is some AUR helper did that.  Just delete them.

Offline

#6 2015-06-12 17:59:09

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 674
Website

Re: [SOLVED] AUR helper add directories in pacman's cache

this explains the "missing metadata"
Thank you Allan.

@runical that's correct ; /me at the club with the laptop atm.


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

Board footer

Powered by FluxBB