You are not logged in.

#1 2008-08-03 03:16:23

Auguste
Member
Registered: 2008-04-26
Posts: 11

[Solved] Pacman "can't open data connection"

Hi guys,

A few weeks ago, when I started using a new modem, I started having trouble with Pacman.  I've been unable to syncronize my repos and I've only been able to install two programs.  The majority of the time Pacman just fails to connect.  Despite this, I have no trouble using the internet at all, although FileZilla seems to have stopped connecting to FTP servers too, but I don't know if that's related.

As you can see, when I use 'pacman -syy', it fails for all the official repos.  'eee' is an unofficial repo with software for my Eee PC.

[david@Jericho pacman.d]$ sudo pacman -Syy
:: Synchronizing package databases...
error: failed retrieving file 'core.db.tar.gz' from mirror.pacific.net.au : Can't open data connection
error: failed retrieving file 'core.db.tar.gz' from mirror.aarnet.edu.au : Can't open data connection
error: failed to synchronize core: Can't open data connection
error: failed retrieving file 'extra.db.tar.gz' from mirror.pacific.net.au : Can't open data connection
error: failed retrieving file 'extra.db.tar.gz' from mirror.aarnet.edu.au : Can't open data connection
error: failed to synchronize extra: Can't open data connection
error: failed retrieving file 'community.db.tar.gz' from mirror.pacific.net.au : Can't open data connection
error: failed retrieving file 'community.db.tar.gz' from mirror.aarnet.edu.au : Can't open data connection
error: failed to synchronize community: Can't open data connection
 eee                        1.1K  328.5K/s 00:00:00 [#######################################################] 100%
 local database is up to date

When I try to install a package with debug mode on:

[david@Jericho pacman.d]$ sudo pacman -S --debug nethack
debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: new section 'core'
debug: setlibpaths() called
debug: option 'cachedir' = /var/cache/pacman/pkg/
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 to database 'core': protocol 'ftp', server 'mirror.pacific.net.au', path '/linux/archlinux/core/os/i686'
debug: adding new server to database 'core': protocol 'ftp', server 'mirror.aarnet.edu.au', path '/pub/archlinux/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 to database 'extra': protocol 'ftp', server 'mirror.pacific.net.au', path '/linux/archlinux/extra/os/i686'
debug: adding new server to database 'extra': protocol 'ftp', server 'mirror.aarnet.edu.au', path '/pub/archlinux/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 to database 'community': protocol 'ftp', server 'mirror.pacific.net.au', path '/linux/archlinux/community/os/i686'
debug: adding new server to database 'community': protocol 'ftp', server 'mirror.aarnet.edu.au', path '/pub/archlinux/community/os/i686'
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'eee'
debug: registering sync database 'eee'
debug: opening database 'eee'
debug: opening database from path '/var/lib/pacman/sync/eee/'
debug: adding new server to database 'eee': protocol 'http', server 'code.toofishes.net', path '/packages/eee'
debug: config: finished parsing /etc/pacman.conf
debug: registering local database
debug: opening database 'local'
debug: opening database from path '/var/lib/pacman/local/'
debug: loading package cache for repository 'core'
debug: loading package cache for repository 'extra'
debug: loading package cache for repository 'local'
debug: package 'nethack' not found in sync
debug: adding target 'nethack' to the transaction set
resolving dependencies...
debug: resolving target's dependencies
debug: started resolving dependencies
debug: checkdeps: package nethack-3.4.3-2
debug: found package 'nethack-3.4.3-2' in sync
debug: started sorting dependencies
debug: sorting dependencies finished
looking for inter-conflicts...
debug: looking for conflicts
debug: check targets vs db
debug: check db vs targets
debug: check targets vs targets
debug: checking dependencies
debug: checkdeps: package nethack-3.4.3-2

Targets: nethack-3.4.3-2  

Total Download Size:    0.91 MB
Total Installed Size:   2.13 MB

Proceed with installation? [Y/n] y
debug: using cachedir: /var/cache/pacman/pkg/
:: Retrieving packages from extra...
debug: using 'nethack-3.4.3-2.pkg.tar.gz' for download progress
error: failed retrieving file 'nethack-3.4.3-2.pkg.tar.gz' from mirror.pacific.net.au : Can't open data connection
debug: using 'nethack-3.4.3-2.pkg.tar.gz' for download progress
error: failed retrieving file 'nethack-3.4.3-2.pkg.tar.gz' from mirror.aarnet.edu.au : Can't open data connection
warning: failed to retrieve some files from extra
debug: returning error 52 from _alpm_sync_commit : unexpected error
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
debug: closing database 'local'
debug: unregistering database 'local'
debug: freeing package cache for repository 'local'
debug: closing database 'core'
debug: unregistering database 'core'
debug: freeing package cache for repository 'core'
debug: closing database 'extra'
debug: unregistering database 'extra'
debug: freeing package cache for repository 'extra'
debug: closing database 'community'
debug: unregistering database 'community'
debug: closing database 'eee'
debug: unregistering database 'eee'

Right now I've only got the Australian mirrors enabled, but I've had limited success with the others.

Does anybody have any idea what's going on?

My mirrorlist:

#
# Arch Linux repository mirrorlist
#

# Australia
Server = ftp://mirror.pacific.net.au/linux/archlinux/$repo/os/i686
Server = ftp://mirror.aarnet.edu.au/pub/archlinux/$repo/os/i686

My rc.conf:

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="yes"
TIMEZONE="Canada/Pacific"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(ath_hal ath_pci wlan snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore asus_acpi)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="Jericho"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
ath0="dhcp"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
wlan_ath0="ath0 essid <mynetworkname> key <mykey>"
INTERFACES=(ath0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="10.1.1.1"
ROUTES=(!gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(menu)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond alsa acpid)

Any ideas?  If you need more information, I can supply it.

Thanks in advance.

Last edited by Auguste (2008-08-09 09:52:06)

Offline

Board footer

Powered by FluxBB