You are not logged in.

#1 2011-04-10 12:43:56

inp3dance
Member
Registered: 2008-06-23
Posts: 106

[solved] pacman can't acces repositories, but my web browser does

Hi,
there is a strange problem. Today I tried a pacman -Syu to update, but pacman can't acces my repositories. Gives me errors of

error: failed retrieving file 'core.db' from mirror.archlinux.ro : No address record

I tried different mirrors, change the protocol from ftp to http, but without result. The strange think is that I can access those repositories with my web browser, so I think that it is pacman or python problem.

My last entries in pacman's log are

[2011-04-09 15:51] Running 'pacman -Syu'
[2011-04-09 15:51] synchronizing package lists
[2011-04-09 15:51] starting full system upgrade
[2011-04-09 15:52] upgraded audacious-plugins (2.4.4-2 -> 2.4.4-3)
[2011-04-09 15:52] upgraded libgpg-error (1.9-2 -> 1.9-3)
[2011-04-09 15:52] upgraded libgcrypt (1.4.6-1 -> 1.4.6-2)
[2011-04-09 15:52] upgraded gnutls (2.10.5-1 -> 2.12.2-1)
[2011-04-09 15:52] warning: /usr/share/config/kdm/kdmrc installed as /usr/share/config/kdm/kdmrc.pacnew
[2011-04-09 15:52] upgraded kdebase-workspace (4.6.2-1 -> 4.6.2-2)
[2011-04-09 15:52] upgraded xproto (7.0.20-1 -> 7.0.21-1)
[2011-04-09 15:52] upgraded libx11 (1.4.3-1 -> 1.4.3-2)
[2011-04-09 15:52] upgraded pycups (1.9.54-1 -> 1.9.55-1)
[2011-04-09 15:52] upgraded taglib (1.6.3-1 -> 1.7-1)
[2011-04-09 15:52] upgraded xdg-utils (1.1.0rc1-1 -> 1.1.0rc1-2)
[2011-04-09 15:52] upgraded xextproto (7.1.2-1 -> 7.2.0-1)
[2011-04-09 16:16] Running 'pacman -S k3b'
[2011-04-09 16:17] installed libdiscid (0.2.2-1)
[2011-04-09 16:17] installed libmusicbrainz3 (3.0.3-1)
[2011-04-09 16:17] installed kdemultimedia-kioslave (4.6.2-1)
[2011-04-09 16:17] installed openjpeg (1.3-3)
[2011-04-09 16:17] installed ffmpeg (20110330-1)
[2011-04-09 16:17] installed libao (1.1.0-1)
[2011-04-09 16:17] installed cdrdao (1.2.3-5)
[2011-04-09 16:17] installed cdrkit (1.1.11-1)
[2011-04-09 16:17] installed k3b (2.0.2-1)
[2011-04-09 16:17] Running 'pacman -S dvd+rw-tools'
[2011-04-09 16:20] installed dvd+rw-tools (7.1-2)

After this, it stopped working - I mean I can't download a thing with pacman, no updates, no packages.

Last edited by inp3dance (2011-05-04 22:37:00)

Offline

#2 2011-04-10 12:48:03

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [solved] pacman can't acces repositories, but my web browser does

pacman -Syu --debug, also post your pacman.conf and mirrorlist.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2011-04-10 13:08:55

inp3dance
Member
Registered: 2008-06-23
Posts: 106

Re: [solved] pacman can't acces repositories, but my web browser does

pacman -Syu --debug output:

debug: config: attempting to read file /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 'core'
debug: registering sync database 'core'
debug: config file /etc/pacman.conf, line 65: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'core': http://mirror.archlinux.ro/archlinux/core/os/i686
debug: setlibpaths() called
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: registering sync database 'extra'
debug: config file /etc/pacman.conf, line 68: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'extra': http://mirror.archlinux.ro/archlinux/extra/os/i686
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: registering sync database 'community'
debug: config file /etc/pacman.conf, line 74: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'community': http://mirror.archlinux.ro/archlinux/community/os/i686
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'archlinuxfr'
debug: registering sync database 'archlinuxfr'
debug: adding new server URL to database 'archlinuxfr': http://repo.archlinux.fr/i686
debug: config: finished parsing /etc/pacman.conf
:: Synchronizing package databases...
debug: database path for tree local set to /var/lib/pacman/local/
debug: local database version 2
debug: destfile found, using mtime only
debug: using 'core.db' for download progress
debug: HTTP_PROXY: (null)
debug: http_proxy: (null)
debug: FTP_PROXY:  (null)
debug: ftp_proxy:  (null)
error: failed retrieving file 'core.db' from mirror.archlinux.ro : No address record
debug: failed to sync db: No address record
error: failed to update core (No address record)
debug: destfile found, using mtime only
debug: using 'extra.db' for download progress
debug: HTTP_PROXY: (null)
debug: http_proxy: (null)
debug: FTP_PROXY:  (null)
debug: ftp_proxy:  (null)
error: failed retrieving file 'extra.db' from mirror.archlinux.ro : No address record
debug: failed to sync db: No address record
error: failed to update extra (No address record)
debug: destfile found, using mtime only
debug: using 'community.db' for download progress
debug: HTTP_PROXY: (null)
debug: http_proxy: (null)
debug: FTP_PROXY:  (null)
debug: ftp_proxy:  (null)
error: failed retrieving file 'community.db' from mirror.archlinux.ro : No address record
debug: failed to sync db: No address record
error: failed to update community (No address record)
debug: destfile found, using mtime only
debug: using 'archlinuxfr.db' 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' from repo.archlinux.fr : No address record
debug: failed to sync db: No address record
error: failed to update archlinuxfr (No address record)
error: failed to synchronize any databases
debug: unregistering database 'local'
debug: unregistering database 'core'
debug: unregistering database 'extra'
debug: unregistering database 'community'
debug: unregistering database 'archlinuxfr'

pacman.conf

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

# 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-testing]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /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

[archlinuxfr] 
Server = http://repo.archlinux.fr/$arch

My mirrorlist is the default one, I have enabled only one mirror at a time, be it the Hungarian one or one of the Romanian mirrors, depending in which country I am.

Offline

#4 2011-04-10 13:42:01

inp3dance
Member
Registered: 2008-06-23
Posts: 106

Re: [solved] pacman can't acces repositories, but my web browser does

Ok, new developments. I can't even download files from the mirrors with wget neighter ping them. I tried a few mirrors. Basically I can't download anything with wget from command line, but I can with aria.

Offline

#5 2011-04-10 16:12:08

inp3dance
Member
Registered: 2008-06-23
Posts: 106

Re: [solved] pacman can't acces repositories, but my web browser does

Another update:
I changed the XferCommand in pacman.conf to use curl, and now it is working. So the problem is with wget. But I did not touched anything related to wget yesterday, so I don't know what broke and how.
An other option can be that my ISP blocks wget, but I don't know if it possible, I mean curl, aria, all my web browsers work, why wget?

Offline

#6 2011-04-11 11:30:08

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,977

Re: [solved] pacman can't acces repositories, but my web browser does

Changes in firewall settings (could be your isp firewall) can influence wget.

from man wget :

--no-passive-ftp
           Disable the use of the passive FTP transfer mode.  Passive FTP mandates that the client connect to the server to establish the data connection rather than the
           other way around.

           If the machine is connected to the Internet directly, both passive and active FTP should work equally well.  Behind most firewall and NAT configurations passive
           FTP has a better chance of working.  However, in some rare firewall configurations, active FTP actually works when passive FTP doesn't.  If you suspect this to be
           the case, use this option, or set "passive_ftp=off" in your init file.

Since you state you can't download with wget from commandline, i suggest trying to download with --no-passive-ftp .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2011-04-11 12:01:25

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [solved] pacman can't acces repositories, but my web browser does

@inp3dance maybe is something in /etc/wgetrc. do a pacman -Qii wget and see if the config is  UNMODIFIED


Give what you have. To someone, it may be better than you dare to think.

Offline

#8 2011-04-11 12:16:15

siot
Member
Registered: 2009-11-10
Posts: 27

Re: [solved] pacman can't acces repositories, but my web browser does

Same here, and claws-mail can't connect to any server. Today I've updated the system and setup the vboxdrv. My wget.rc is unmodified.

Last edited by siot (2011-04-11 12:19:45)

Offline

#9 2011-04-11 14:31:59

the C.L.A.
Member
From: germany
Registered: 2011-04-11
Posts: 2

Re: [solved] pacman can't acces repositories, but my web browser does

siot wrote:

Same here, and claws-mail can't connect to any server. Today I've updated the system and setup the vboxdrv. My wget.rc is unmodified.

I had the problem with claws-mail as well, wich is caused by the latest version of gnutls - see my comment in https://bugs.archlinux.org/task/23678

Offline

#10 2011-04-11 19:31:09

inp3dance
Member
Registered: 2008-06-23
Posts: 106

Re: [solved] pacman can't acces repositories, but my web browser does

Thank you the C.L.A., gnutls was the problem . I will fill a bug report.

Offline

#11 2011-04-11 19:33:25

igallart
Member
Registered: 2009-12-20
Posts: 61

Re: [solved] pacman can't acces repositories, but my web browser does

I have problems with pacman also, no update from does any days:


sudo pacman -Suy
Contrasenya:
:: S'estan sincronitzant les bases de dades de paquets...
error: ha fallat en recuperar el fitxer 'testing.db' des de mirrors.kernel.org : Requested Range Not Satisfiable
error: ha fallat en recuperar el fitxer 'testing.db' des de mir.archlinux.fr : Requested Range Not Satisfiable
error: ha fallat en actualitzar testing (Requested Range Not Satisfiable)
error: ha fallat en recuperar el fitxer 'core.db' des de mirrors.kernel.org : Requested Range Not Satisfiable
error: ha fallat en recuperar el fitxer 'core.db' des de mir.archlinux.fr : Requested Range Not Satisfiable
error: ha fallat en actualitzar core (Requested Range Not Satisfiable)
error: ha fallat en recuperar el fitxer 'extra.db' des de mirrors.kernel.org : Requested Range Not Satisfiable
error: ha fallat en recuperar el fitxer 'extra.db' des de mir.archlinux.fr : Requested Range Not Satisfiable
error: ha fallat en actualitzar extra (Requested Range Not Satisfiable)
multilib és al dia      400,0K  216,5K/s 00:00:00 [####################--]  92%
:: S'està iniciant una actualització completa del sistema...
avís: gnutls: local (2.12.2-1) és més nou que testing (2.12.1-1)
avís: mlocate: local (0.24-1) és més nou que core (0.23.1-2)
avís: mpfr: local (3.0.1-1) és més nou que core (3.0.0.p8-1)
avís: ncurses: local (5.9-1) és més nou que core (5.8-1)
avís: networkmanager: local (0.8.998-2) és més nou que testing (0.8.998-1)
avís: sudo: local (1.8.1-1) és més nou que core (1.8.0-4)
avís: udev: local (167-1) és més nou que core (166-2)
avís: udisks: local (1.0.3-1) és més nou que extra (1.0.2-2)
avís: usbutils: local (002-2) és més nou que core (002-1)
s'estan resolent les dependències...
s'estan cercant conflictes interns...

Objectius (5): bluez-4.91-1  libgpg-error-1.9-3  libgcrypt-1.4.6-2
               virtualbox-4.0.4-3  wxgtk-2.8.12-1

Mida total baixada:     21,35 MB
Mida total instal·lada: 91,52 MB

Inicio la instal·lació? [S/n] S
:: Recuperant paquets des de testing...
error: ha fallat en recuperar el fitxer 'libgpg-error-1.9-3-x86_64.pkg.tar.xz' des de mirrors.kernel.org : Not Found
error: ha fallat en recuperar el fitxer 'libgpg-error-1.9-3-x86_64.pkg.tar.xz' des de mir.archlinux.fr : Not Found
error: ha fallat en recuperar el fitxer 'libgcrypt-1.4.6-2-x86_64.pkg.tar.xz' des de mirrors.kernel.org : Not Found
error: ha fallat en recuperar el fitxer 'libgcrypt-1.4.6-2-x86_64.pkg.tar.xz' des de mir.archlinux.fr : Not Found
avís: ha fallat en recuperar alguns fitxers de testing
error: ha fallat en publicar la transacció (Not Found)
Han ocorregut errors, no s'ha actualitzat cap paquet.

Offline

#12 2011-04-12 02:37:52

vae77
Member
Registered: 2010-07-02
Posts: 75
Website

Re: [solved] pacman can't acces repositories, but my web browser does

I was using mirrors.kernel.org and getting the same errors above. I changed for other and it is now downloading fine.

Offline

#13 2011-04-12 12:14:04

siot
Member
Registered: 2009-11-10
Posts: 27

Re: [solved] pacman can't acces repositories, but my web browser does

I don't know how and why, but firstly I've discovered that restarting pdnsd ( https://wiki.archlinux.org/index.php/Pdnsd#Security ) it solves the problem. Then at daemons.log appears (from long time ago):

Apr 12 13:44:37 localhost pdnsd[2700]: Could not open disk cache file /var/cache/pdnsd/pdnsd.cache: Permission denied

Magically owner of pdnsd.cache was changed to nobody:root. But, even corrected pacman still says "No address record".

My next step was comment "nameserver 127.0.0.1" line at revolv.conf and now, even after rebooting pacman and claws-mail runs ok.  But without dns cache sad

Offline

#14 2011-04-12 17:03:30

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [solved] pacman can't acces repositories, but my web browser does

igallart wrote:

wall of text

Please use LANG=C, it's much easier for us to help if we can actually understand the output.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#15 2011-04-12 17:11:04

igallart
Member
Registered: 2009-12-20
Posts: 61

Re: [solved] pacman can't acces repositories, but my web browser does

Mr.Elendig wrote:
igallart wrote:

wall of text

Please use LANG=C, it's much easier for us to help if we can actually understand the output.

Ok, I don't know this option.Anyway, I changed of server and it works.

Offline

#16 2011-04-13 14:20:58

king.flasher.dave
Member
From: Berlin
Registered: 2008-11-25
Posts: 140
Website

Re: [solved] pacman can't acces repositories, but my web browser does

Hmm, since today pacman is acting very very strange upon update. My network is VERY slow, too (which with a cable connection it just shouldn't and all other computers in my network are acting just fine).
Updates of the repo DBs takes ages and most of the time they have to be redownloaded. Today I've tried to get a better mirrorlist with reflector, but honestly that doesn't change anything after all... -_-

Is anyone experiencing the same issues? Haven't touched wget (and it wasn't touched). Haven't touched my network setup either, but I've upgraded to kernel2.6.38 last night.
When the dbs are actually updated (takes some minutes...), downloading the packages also takes ages and will fail multiple times.
I've tried local servers from Germany and I've tried servers handed over by reflector. I kinda get the feeling this is not related to my network setup... :>

Here's my pacman.conf:

#
# /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 - -f %u > %o
#CleanMethod = KeepInstalled
Architecture = x86_64

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
IgnorePkg   = flashplugin skype
#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.
#

# 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-testing]
#Include = /etc/pacman.d/mirrorlist

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

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repository here.
[multilib]
Include = /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

[archlinuxfr]
Server=http://repo.archlinux.fr/x86_64

And my mirrorlist:

# Generated by Reflector
# When:      2011-04-13 14:05:35 GMT
# Source:    https://www.archlinux.org/mirrors/status/json/
# Retrieved: 2011-04-13 14:05:04 GMT
# Updated:   2011-04-13 13:16:19 GMT

Server = http://archlinux.c3sl.ufpr.br/$repo/os/$arch
Server = http://ftp.tku.edu.tw/Linux/ArchLinux/$repo/os/$arch
Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch
Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
Server = http://archlinux.goodsoft.lv/$repo/os/$arch
Server = http://archlinux.puzzle.ch/$repo/os/$arch

Speak when you are angry and you will make the best speech you'll ever regret.

Offline

Board footer

Powered by FluxBB