You are not logged in.

#1 2011-12-21 05:43:51

aabmass
Member
Registered: 2011-12-14
Posts: 34

[SOLVED]Built pacman in Debian, getting 'error invoking external downl

Hi, I've built pacman in Debian and now whenever I try to run any pacman command involving repositories, I get 'error invoking external downloader'. I've configured repositories, but I feel like the problem is with libfetch. I could only build libdownload which is a fork of libfetch.

Here is the output of 'pacman -Syv --verbose':

debug: config: attempting to read file /usr/local/etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: SyncFirst: pacman
debug: config: Architecture: i686
debug: config: new section 'main'
debug: registering sync database 'main'
debug: adding new server URL to database 'main': http://cake.lib.fit.edu/archlinux/main/os/i686
debug: setlibpaths() called
debug: option 'cachedir' = /usr/local/var/cache/pacman/pkg/
debug: config: finished parsing /usr/local/etc/pacman.conf
Root      : /
Conf File : /usr/local/etc/pacman.conf
DB Path   : /usr/local/var/lib/pacman/
Cache Dirs: /usr/local/var/cache/pacman/pkg/  
Lock File : /usr/local/var/lib/pacman/db.lck
Log File  : /usr/local/var/log/pacman.log
Targets   : None
:: Synchronizing package databases...
debug: database path for tree local set to /usr/local/var/lib/pacman/local/
debug: local database version 2
debug: returning error 47 from download : error invoking external downloader
debug: failed to sync db: error invoking external downloader
error: failed to update main (error invoking external downloader)
error: failed to synchronize any databases
debug: unregistering database 'local'
debug: unregistering database 'main'

And here is my pacman.conf file:

#
# /usr/local/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      = /usr/local/var/lib/pacman/
#CacheDir    = /usr/local/var/cache/pacman/pkg/
#LogFile     = /usr/local/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 - -f %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
#CheckSpace

#
# 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.
#

# An example of a disabled remote package repository with multiple servers
# available. To enable, uncomment the following lines. You can add preferred
# servers immediately after the header and they will be used before the
# default mirrors.
#[core]
#Server = ftp://ftp.example.com/foobar/$repo/os/$arch/
# The file referenced here should contain a list of 'Server = ' lines.
#Include = /usr/local/etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs

[main]
Server = http://cake.lib.fit.edu/archlinux/$repo/os/$arch

My pacman is version v.3.5.4 and libalpm v.6.0.4

Thanks for any help again!

Last edited by aabmass (2011-12-23 17:26:52)

Offline

#2 2011-12-23 09:01:27

derloy
Member
Registered: 2011-12-23
Posts: 3

Re: [SOLVED]Built pacman in Debian, getting 'error invoking external downl

Use an external downloader (See XferCommand) if that libfetch fork is indeed making trouble. pacman v4 uses curl instead of libfetch, might want to clone that from git.

Offline

#3 2011-12-23 16:35:18

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED]Built pacman in Debian, getting 'error invoking external downl

libdownload is our ancient fork of libfetch -- do not use it. It's not even the same library, and it required buildsys changes to use. Honestly, I don't recommend libfetch either. Looks to me like you didn't build pacman with internal downloader support at all.

You won't find a tarball of libfetch anywhere because its part of NetBSD core. Arch keeps a snapshot, which you can download.

Regardless, I suggest looking at our PKGBUILDs for sane build time options: 4.0.1, 3.5.4

Offline

#4 2011-12-23 17:25:05

aabmass
Member
Registered: 2011-12-14
Posts: 34

Re: [SOLVED]Built pacman in Debian, getting 'error invoking external downl

Thanks! Upgrading to the git version of pacman fixed this for me smile

Offline

Board footer

Powered by FluxBB