You are not logged in.

#1 2009-04-25 22:57:18

schmoemi
Member
From: Gersthofen, BY, Germany
Registered: 2004-10-17
Posts: 51
Website

pacman cannot add local repo

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? hmm

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

#2 2009-04-25 23:19:34

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: pacman cannot add local repo

Yes, wget does not understand file:// URLs.

Offline

#3 2009-04-25 23:20:28

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: pacman cannot add local repo

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.

ataraxia wrote:

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 StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#4 2009-04-26 03:39:02

schmoemi
Member
From: Gersthofen, BY, Germany
Registered: 2004-10-17
Posts: 51
Website

Re: pacman cannot add local repo

Xyne wrote:

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

#5 2009-04-26 03:57:44

schmoemi
Member
From: Gersthofen, BY, Germany
Registered: 2004-10-17
Posts: 51
Website

Re: pacman cannot add local repo

ataraxia wrote:

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

#6 2009-04-26 04:08:22

Chrysalis
Member
Registered: 2008-07-07
Posts: 155

Re: pacman cannot add local repo

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

#7 2009-04-26 13:41:37

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: pacman cannot add local repo

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 StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB