You are not logged in.

#1 2011-03-17 19:42:06

JLL-Arch
Member
Registered: 2008-12-15
Posts: 9

Pacman repository db file problem.

I'm trying to add the archlinuxfr repository, but pacman is giving me problems when trying to sync with it. This is also happening with every other repository that isn't core, extra, community, or testing.

It says:

error: failed retrieving file 'archlinuxfr.db.tar.gz' from repo.archlinux.fr : Conflict
error: failed to update archlinuxfr (Conflict)

I haven't been able to find any information on this specific problem and I have no idea what it could be. How can I fix this problem?

Offline

#2 2011-03-17 19:44:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Pacman repository db file problem.

Are you running pacman 3.5? http://projects.archlinux.org/pacman.gi … ?id=v3.5.0
- sync database extension is .db (without compression suffix)

Last edited by karol (2011-03-17 19:49:09)

Offline

#3 2011-03-17 19:48:35

JLL-Arch
Member
Registered: 2008-12-15
Posts: 9

Re: Pacman repository db file problem.

I'm running pacman 3.4.3-1 with libalpm 5.0.3. It seems to be the newest version, looking at the repositories.
How would I update the db format?

Offline

#4 2011-03-17 20:13:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Pacman repository db file problem.

OK, seems the conversion is handled automatically anyway:
http://allanmcrae.com/2011/03/pacman-3- … mment-2971

Allan wrote:

No change at all to the format. pacman will download “repo.db” (note the lack of extension) to /var/lib/pacman/sync, so you need to a symlink to repo.db.tar.gz is present. repo-add from pacman-3.4 onwards automatically creates that symlink so that should not be an issue. This allows changing the database compression to anything libarchive and repo-add supports (once all users are switched to pacman-3.5), which is currently .gz, .xz and .bz2.

Offline

#5 2011-03-17 22:40:24

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

Re: Pacman repository db file problem.

The seems more to be an issue with the archlinuxfr mirror.

Offline

#6 2011-03-17 22:46:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Pacman repository db file problem.

Allan wrote:

The seems more to be an issue with the archlinuxfr mirror.

I'm not getting any errors.
OP wrote that every non-official repo has the same problem.

Offline

#7 2011-03-17 23:44:21

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

Re: Pacman repository db file problem.

Ah.   Post your pacman.conf then.   And some "--debug" output.

Offline

#8 2011-03-17 23:51:40

JLL-Arch
Member
Registered: 2008-12-15
Posts: 9

Re: Pacman repository db file problem.

My pacman.conf looks like this:

#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
HoldPkg     = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst   = pacman
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#XferCommand = /usr/bin/curl -C - %u > %o
#CleanMethod = KeepInstalled
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options (all disabled by default)
#UseSyslog
#ShowSize
#UseDelta
#TotalDownload

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

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

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

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

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

[archlinuxfr]
# The french Arch Linux communities packages.
Server = http://repo.archlinux.fr/$arch

pacman -Sy --debug gives me this for the archlinuxfr bit:

debug: using 'archlinuxfr.db.tar.gz' for download progress
debug: HTTP_PROXY: (null)
debug: http_proxy: (null)
debug: FTP_PROXY:  (null)
debug: ftp_proxy:  (null)
error: failed retrieving file 'archlinuxfr.db.tar.gz' from repo.archlinux.fr : Conflict
debug: failed to sync db: Conflict
error: failed to update archlinuxfr (Conflict)

EDIT: I'm not sure what the problem is, but if I uncomment the wget XferCommand in my pacman.conf it appears to fix it (although pacman doesn't look as nice...).

Last edited by JLL-Arch (2011-03-18 00:03:18)

Offline

#9 2011-03-18 00:29:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Pacman repository db file problem.

So maybe it's some proxy-related stuff as in https://bbs.archlinux.org/viewtopic.php … 53#p618453

Offline

#10 2011-03-18 00:36:14

JLL-Arch
Member
Registered: 2008-12-15
Posts: 9

Re: Pacman repository db file problem.

Quite possibly. I'm at university right now and have zero control over the proxy, but setting up wget in pacman.conf seems to help so I'll just count it as solved while I'm still here. Thanks for the help everyone, unless there are any other suggestions smile.

Offline

Board footer

Powered by FluxBB