Page 1 sur 1

[réseau]soucis avec pacman 4 (résolu)

Publié : jeu. 26 janv. 2012, 09:45
par Rolinh
Hello,

oui, j'ai déjà regardé les solutions proposées ici mais rien ne me convient.
Pacman me pose des problèmes alors même que ma connection internet fonctionne très bien. En fait, pacman fonctionne (ou foire) aléatoirement, comment en atteste ceci:

Code : Tout sélectionner

[robin@thor /tmp] % sudo pacman -Syy
Password: 
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mir1.archlinux.fr : Connection time-out
error: failed retrieving file 'core.db' from arch.mirrors.tuxdroid.org : Connection time-out
error: failed retrieving file 'core.db' from mirror.selfnet.de : Connection time-out
error: failed retrieving file 'core.db' from ftp.halifax.rwth-aachen.de : Connection time-out
error: failed retrieving file 'core.db' from mirror.de.leaseweb.net : Connection time-out
error: failed retrieving file 'core.db' from artfiles.org : Connection time-out
error: failed retrieving file 'core.db' from archlinux.puzzle.ch : Connection time-out
error: failed retrieving file 'core.db' from archlinux.puzzle.ch : Connection time-out
error: failed to update core (download library error)
 extra                   1183.5 KiB   691K/s 00:02 [---------------------] 100%
 community               1035.8 KiB   932K/s 00:01 [---------------------] 100%
 multilib                  76.5 KiB  1031K/s 00:00 [---------------------] 100%
error: failed retrieving file 'archlinuxfr.db' from repo.archlinux.fr : Connection time-out
error: failed to update archlinuxfr (download library error)
error: failed retrieving file 'rolinh.db' from repo.rolinh.ch : Connection time-out
error: failed to update rolinh (download library error)
[robin@thor /tmp] % sudo pacman -Sy
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mir1.archlinux.fr : Connection time-out
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 archlinuxfr is up to date
error: failed retrieving file 'rolinh.db' from repo.rolinh.ch : Connection time-out
error: failed to update rolinh (download library error)
[robin@thor /tmp] % sudo pacman -Sy
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 archlinuxfr is up to date
error: failed retrieving file 'rolinh.db' from repo.rolinh.ch : Connection time-out
error: failed to update rolinh (download library error)
[robin@thor /tmp] % ping -c 3 mir1.archlinux.fr
PING mirror.syskall.net (88.191.229.194) 56(84) bytes of data.
64 bytes from 88-191-229-194.rev.dedibox.fr (88.191.229.194): icmp_req=1 ttl=51 time=602 ms
64 bytes from 88-191-229-194.rev.dedibox.fr (88.191.229.194): icmp_req=2 ttl=51 time=742 ms
64 bytes from 88-191-229-194.rev.dedibox.fr (88.191.229.194): icmp_req=3 ttl=51 time=532 ms

--- mirror.syskall.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 3335ms
rtt min/avg/max/mdev = 532.511/625.536/742.095/87.167 ms
[robin@thor /tmp] % sudo pacman -Sy
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mir1.archlinux.fr : Connection time-out
error: failed retrieving file 'core.db' from arch.mirrors.tuxdroid.org : Connection time-out
error: failed retrieving file 'core.db' from mirror.selfnet.de : Connection time-out
^Cerror: failed retrieving file 'core.db' from ftp.halifax.rwth-aachen.de : Connection time-out

Interrupt signal received

!130! [robin@thor /tmp] % sudo pacman -Sy
:: Synchronizing package databases...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  106k  100  106k    0     0   7912      0  0:00:13  0:00:13 --:--:--  367k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1183k  100 1183k    0     0  79242      0  0:00:15  0:00:15 --:--:--  653k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1035k  100 1035k    0     0  87722      0  0:00:12  0:00:12 --:--:--  639k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 78365  100 78365    0     0   5707      0  0:00:13  0:00:13 --:--:--  286k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 29030  100 29030    0     0   2126      0  0:00:13  0:00:13 --:--:--  161k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2478  100  2478    0     0    183      0  0:00:13  0:00:13 --:--:-- 44250
[robin@thor /tmp] % sudo pacman -Sy
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mir1.archlinux.fr : Connection time-out
error: failed retrieving file 'core.db' from arch.mirrors.tuxdroid.org : Connection time-out
error: failed retrieving file 'core.db' from mirror.selfnet.de : Connection time-out
error: failed retrieving file 'core.db' from ftp.halifax.rwth-aachen.de : Connection time-out
error: failed retrieving file 'core.db' from mirror.de.leaseweb.net : Connection time-out
error: failed retrieving file 'core.db' from artfiles.org : Connection time-out
error: failed retrieving file 'core.db' from archlinux.puzzle.ch : Connection time-out
error: failed retrieving file 'core.db' from archlinux.puzzle.ch : Connection time-out
error: failed to update core (download library error)
error: failed retrieving file 'extra.db' from mir1.archlinux.fr : Connection time-out
error: failed retrieving file 'extra.db' from arch.mirrors.tuxdroid.org : Connection time-out
error: failed retrieving file 'extra.db' from mirror.selfnet.de : Connection time-out
error: failed retrieving file 'extra.db' from ftp.halifax.rwth-aachen.de : Connection time-out
 extra is up to date                 0.0   B  0.00B/s 00:00 [c o  o  o  o  o  o  o  o  o  o  ]   0%
 community is up to date
 multilib is up to date
error: failed retrieving file 'archlinuxfr.db' from repo.archlinux.fr : Connection time-out
error: failed to update archlinuxfr (download library error)
error: failed retrieving file 'rolinh.db' from repo.rolinh.ch : Connection time-out
error: failed to update rolinh (download library error)
Comme l'avait suggéré tuxce dans l'autre post que j'ai cité, en dé-commentant une ligne XferCommand, cela fonctionne parfaitement.
Je précise que j'ai changé de FAI il y a environ 1 mois et que j'ai constaté que celui-ci n'aimait pas IPV6. J'ai donc dû préciser à mon routeur que je le voulais lui comme serveur DNS, sans quoi ma connexion foirait. Voici donc mes resolv.conf.head et pacman.conf:

Code : Tout sélectionner

nameserver 192.168.1.1
nameserver 208.67.222.222
nameserver 208.67.220.220

Code : Tout sélectionner

#
# /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
#GPGDir      = /etc/pacman.d/gnupg/
HoldPkg     = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst   = pacman
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
IgnorePkg   = linux linux-docs linux-headers
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#UseDelta
#TotalDownload
CheckSpace
#VerbosePkgLists
ILoveCandy

# PGP signature checking
# NOTE: None of this will work without running `pacman-key --init` first.
# The compiled in default is equivalent to the following line. This requires
# you to locally sign and trust packager keys using `pacman-key` for them to be
# considered valid.
#SigLevel = Optional TrustedOnly
# If you wish to check signatures but avoid local sign and trust issues, use
# the following line. This will treat any key imported into pacman's keyring as
# trusted.
#SigLevel = Optional TrustAll
# For now, off by default unless you read the above.
SigLevel = Never
#SigLevel = Optional

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

[core]
#SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[extra]
#SigLevel = PackageOptional
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist

[community]
#SigLevel = PackageOptional
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist

[multilib]
#SigLevel = PackageOptional
Include = /etc/pacman.d/mirrorlist

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

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

# personnal repo (I know, I rock :-P )
[rolinh]
Server = http://repo.rolinh.ch/$arch
Si quelqu'un y voit clair là-dedans. Personnellement, étant donné le comportement aléatoire, je penserais à un problème DNS mais comme seul pacman me pose des problèmes je ne sais que trop penser...

Merci d'avance pour votre aide!

Re: [réseau]soucis avec pacman 4

Publié : jeu. 26 janv. 2012, 10:06
par tuxce
Tu as essayé en désactivant ipv6: Desactiver IPv6

Re: [réseau]soucis avec pacman 4

Publié : jeu. 26 janv. 2012, 10:16
par Rolinh
J'avais oublié de précisé que j'avais désactivé IPV6 mais pas de cette manière. J'ai donc ajouté ceci à mon modprobe.conf:

Code : Tout sélectionner

alias net-pf-10 off
au lieu de ceci, comme je l'avais fait précédemment:

Code : Tout sélectionner

options ipv6 disable=1
Avec cette méthode, cela fonctionne effectivement bien et je peux ressentir nettement moins de latence lors des connexions.

Merci pour la suggestion. Est-ce dû au bug avec IPV6?

Re: [réseau]soucis avec pacman 4

Publié : jeu. 26 janv. 2012, 11:08
par tuxce
Oui, pour info, il y est sur l'autre, mais je le mets ici aussi: FS#27988

Re: [réseau]soucis avec pacman 4

Publié : jeu. 26 janv. 2012, 11:58
par Rolinh
Bon, je passe donc en résolu en attendant. Merci pour ton aide.