You are not logged in.
As described in the wiki, I tried to add my locally compiled packages to the pacman database with the new repo-add script and adding
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
[custom]
Server = file:///home/packages
to my /etc/pacman.conf
But when I do a pacman -Sy I get this error:
debug: failed to get lastupdate time for custom
debug: running command: /usr/bin/wget --passive-ftp -c -O /var/lib/pacman/custom.db.tar.gz.part file:///home/packages/custom.db.tar.gz
file:///home/packages/custom.db.tar.gz: Nicht unterstütztes Schema.
debug: XferCommand command returned non-zero status code (256)
debug: failed to sync db: Unerwarteter Fehler
Fehler: Konnte custom nicht aktualisieren (Unerwarteter Fehler)
Any ideas what went wrong here?
Could it have something to do with wget?
Last edited by schmoemi (2009-04-25 22:57:52)
The time when Microsoft starts making something that doesn't suck will be when they start making vacuum cleaners.
Offline
Yes, wget does not understand file:// URLs.
Offline
Can you post the output of "ls -l /home/packages"?
I have a local repo and pacman doesn't seem to use the XferCommand to retrieve it so I suspect that there may be a mistake in the repo itself. Did you name your database "custom", e.g. "repo-add custom.db.tar.gz *.pkg.tar.gz"? The name of the database must match the name of the repo in pacman.conf. I suspect that pacman is trying the XferCommand when it doesn't find the file that it expects locally, but I'm really not sure.
Yes, wget does not understand file:// URLs.
wget might not, but pacman does (I have such a line in my pacman.conf file and it works as expected)
Last edited by Xyne (2009-04-25 23:22:57)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Can you post the output of "ls -l /home/packages"?
insgesamt 39988
-rw-r--r-- 1 michi users 990 26. Apr 00:32 custom.db.tar.gz
-rw-r--r-- 1 michi users 791157 25. Apr 23:56 dhcp-4.1.0-2-i686.pkg.tar.gz
-rw-r--r-- 1 michi users 40093475 25. Apr 23:46 virtualbox_bin-2.2.0-1-i686.pkg.tar.gz
-rw-r--r-- 1 michi users 370 29. Okt 2007 wakelan-1.1-1-i686.pkg.tar.gz
The time when Microsoft starts making something that doesn't suck will be when they start making vacuum cleaners.
Offline
Yes, wget does not understand file:// URLs.
Ok, that was it.
Commenting out the line
XferCommand = /usr/bin/wget -c --passive-ftp -c %u
in the pacman.conf does it.
The time when Microsoft starts making something that doesn't suck will be when they start making vacuum cleaners.
Offline
You are missing $USER in your repo path
EDIT: nm, seems you solved it
Last edited by Chrysalis (2009-04-26 04:12:20)
Offline
Ah... sorry about my misleading comment abovet then. I actually thought that the XferCommand was only invoked for remote files (I always use powerpill for downloads so I don't pay much attention to pacman's XferCommand).
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline