You are not logged in.

#1 2008-08-11 10:31:39

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

pacman unexpected error with a local repository

Hi, I have a strange problem with pacman and a local repository.
Makepkg stores his packages in a special directory in my home directory ( /home/patroclo7/aur/packages ).
I have created the repository with repo-add:

repo-add /home/patroclo7/aur/packages/giorgio.db.tar.gz /home/patroclo7/aur/packages/*.pkg.tar.gz

Everything went well; according to the ouput all the packages are successfully added and the database of the repository is updated. Then I have added the repository to /etc/pacman.conf. The following is the resulting /etc/pacman.conf:

[options]
HoldPkg     = pacman glibc
ILoveCandy

[giorgio]
Server = file:///home/patroclo7/aur/packages/giorgio.db.tar.gz

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

[unstable]
Include = /etc/pacman.d/mirrorlist

[testing]
Include = /etc/pacman.d/mirrorlist

Now, when I try to sync the database with pacman -Sy, I get an "unexpected error" relative to giorgio (all the other repos sync fine). This is the ouput of pacman -Sy --debug:

debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: chomp
debug: config: new section 'giorgio'
debug: setlibpaths() called
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: registering sync database 'giorgio'
debug: opening database 'giorgio'
debug: opening database from path '/var/lib/pacman/sync/giorgio/'
debug: adding new server URL to database 'giorgio': file:///home/patroclo7/aur/packages/giorgio.db.tar.gz
debug: config: new section 'core'
debug: registering sync database 'core'
debug: opening database 'core'
debug: opening database from path '/var/lib/pacman/sync/core/'
debug: config: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'core': ftp://archlinux.puzzle.ch/core/os/i686
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: registering sync database 'extra'
debug: opening database 'extra'
debug: opening database from path '/var/lib/pacman/sync/extra/'
debug: config: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'extra': ftp://archlinux.puzzle.ch/extra/os/i686
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: registering sync database 'community'
debug: opening database 'community'
debug: opening database from path '/var/lib/pacman/sync/community/'
debug: config: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'community': ftp://archlinux.puzzle.ch/community/os/i686
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'unstable'
debug: registering sync database 'unstable'
debug: opening database 'unstable'
debug: opening database from path '/var/lib/pacman/sync/unstable/'
debug: config: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'unstable': ftp://archlinux.puzzle.ch/unstable/os/i686
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'testing'
debug: registering sync database 'testing'
debug: opening database 'testing'
debug: opening database from path '/var/lib/pacman/sync/testing/'
debug: config: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'testing': ftp://archlinux.puzzle.ch/testing/os/i686
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf
debug: registering local database
debug: opening database 'local'
debug: opening database from path '/var/lib/pacman/local/'
:: Sincronizzazione dei database in corso...
debug: failed to get lastupdate time for giorgio
debug: failed to sync db: errore inaspettato
errore: impossibile aggiornare giorgio (errore inaspettato)
debug: using 'core.db.tar.gz' for download progress
debug: connected to archlinux.puzzle.ch successfully
debug: mtimes are identical, skipping core.db.tar.gz
 core è aggiornato
debug: using 'extra.db.tar.gz' for download progress
debug: connected to archlinux.puzzle.ch successfully
debug: mtimes are identical, skipping extra.db.tar.gz
 extra è aggiornato
debug: using 'community.db.tar.gz' for download progress
debug: connected to archlinux.puzzle.ch successfully
debug: mtimes are identical, skipping community.db.tar.gz
 community è aggiornato
debug: using 'unstable.db.tar.gz' for download progress
debug: connected to archlinux.puzzle.ch successfully
debug: mtimes are identical, skipping unstable.db.tar.gz
 unstable è aggiornato
debug: using 'testing.db.tar.gz' for download progress
debug: connected to archlinux.puzzle.ch successfully
debug: mtimes are identical, skipping testing.db.tar.gz
 testing è aggiornato
debug: closing database 'local'
debug: unregistering database 'local'
debug: closing database 'giorgio'
debug: unregistering database 'giorgio'
debug: closing database 'core'
debug: unregistering database 'core'
debug: closing database 'extra'
debug: unregistering database 'extra'
debug: closing database 'community'
debug: unregistering database 'community'
debug: closing database 'unstable'
debug: unregistering database 'unstable'
debug: closing database 'testing'
debug: unregistering database 'testing'

The relevant lines are probably:

debug: failed to get lastupdate time for giorgio
debug: failed to sync db: errore inaspettato
errore: impossibile aggiornare giorgio (errore inaspettato)

where "errore inaspettato" is the Italian translation of "unexpected error".
Obviously there is no "lastupdate time" for the repo, since it is new and it has never been synced successfully.
What could this error be?

Last edited by patroclo7 (2008-08-11 10:33:16)


Mortuus in anima, curam gero cutis

Offline

#2 2008-08-11 10:45:47

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

Re: pacman unexpected error with a local repository

You Server line should look like:

Server = file:///home/patroclo7/aur/packages

See: http://wiki.archlinux.org/index.php/Cus … repository

Online

#3 2008-08-11 11:20:25

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: pacman unexpected error with a local repository

Doh, dumb error, sorry for the noise


Mortuus in anima, curam gero cutis

Offline

Board footer

Powered by FluxBB