yum erreur - centos 7.1 x86_64
Je suis confronté à un problème avec la commande yum sur un serveur dédié (hébergé par la société OVH):
[root@mail-server ~]# yum clean all
[root@mail-server ~]# yum update
Modules complémentaires chargés : fastestmirror
One of the configured repositories failed (Inconnu),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:
yum-config-manager --disable <repoid>
4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot find a valid baseurl for repo: base/7/x86_64
Après enquête, j'ai trouvé que l'erreur soufflet (l'url de retour n'est pas ok, à partir du serveur dédié) :
KO De serveur dédié :
[root@mail-server ~]# curl "http://mirrorlist.centos.org/?release=7.1.1503&arch=x86_64&repo=os"
Invalid release
[root@mail-server ~]#
OK De la maison (ADSL)
MacBook-Air-de-John:~ jjohn$ curl "http://mirrorlist.centos.org/?release=7.1.1503&arch=x86_64&repo=os"
http://mirror.ate.info/ftp.centos.org/7.1.1503/os/x86_64/
http://ftp.rezopole.net/centos/7.1.1503/os/x86_64/
http://distrib-coffee.ipsl.jussieu.fr/pub/linux/centos/7.1.1503/os/x86_64/
http://mirror0.babylon.network/centos/7.1.1503/os/x86_64/
http://centos.crazyfrogs.org/7.1.1503/os/x86_64/
http://centos.mirrors.ovh.net/ftp.centos.org/7.1.1503/os/x86_64/
http://mirrors.ircam.fr/pub/CentOS/7.1.1503/os/x86_64/
ftp://ftp.free.fr/mirrors/ftp.centos.org/7.1.1503/os/x86_64/
http://mirror.ibcp.fr/pub/Centos/7.1.1503/os/x86_64/
http://ftp.ciril.fr/pub/linux/centos/7.1.1503/os/x86_64/
MacBook-Air-de-John:~ jjohn$
J'ai eu le même problème après une nouvelle installation, et un ami de serveur dédié (hébergé par la société OVH trop).
Je ne sais pas si l'erreur vient de OVH réseau (DNS, ...) ou mirrorlist.centos.org serveur.
Vous devez vous connecter pour publier un commentaire.
J'ai résolu le problème en tapant
sudo yum update
par la suiteVos DNS ne semble pas résoudre la structure de la liste des miroirs
Utilisation
ou Ajouter "nameserver 8.8.8.8" dans "/etc/resolv.conf" fichier
espère qu'il travail..!
d'abord, vous devez aller à l' /etc/yum.les pensions de titres.d répertoire et modifier la Structure de la Base.repo utilisant l'éditeur vi. recherchez les lignes suivantes;
mirrorlist=
baseurl=
supprimer le signe#, le #baseurl si vous avez des difficultés à accéder à la baseurl/mirrorlist adresse web à l'aide de yum puis enregistrez et quittez l'éditeur vi.
goodluck et apprécier le paquet yum-utilitaire de gestion de linux.
Cordialement-KO