Bonjour,
J'ai installer un centreon pour la supervision du parc info avec les images en .ovf proposé par Centreon directement.
Apres installation et configuration de celui-ci j'ai voulu installer d'autre outils sur le CentOS 6 et c'est la que ça coince.
yum ne fonctionne pas a cause d'un mauvais mirroring ou config proxy mal foutu. Je n'ai pas de proxy dans la boite ne n'en ai donc pas configurer.
Voici le message d'erreur :
Apres quelques heures de recherche j'ai pas réussi a résoudre mon problème. Sur mon interface réseaux le ONBOOT=yes
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38 [root@centreon~]# yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was 14: curl#5 - "Could not resolve proxy: proxy.int.centreon.com; Unknown error" One of the configured repositories failed (Unknown), 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. Run the command with the repository temporarily disabled yum --disablerepo=<repoid> ... 4. Disable the repository permanently, 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> or subscription-manager repos --disable=<repoid> 5. 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
Autres infos qui peuvent être utile, le fichier CentOS-Base.repo :
J'ai essayer de décommenter les baseurl, l'erreur change mais ça ne fonctionne pas
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46 # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 #released updates [updates] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 "/etc/yum.repos.d/CentOS-Base.repo" 44L, 1664C
le fichier centreon.repo (sensé être a jours tout de même c'est la dernière image publiée):
Et enfaîte nul part je trouve la ligne proxy.int.centreon.com comme indiqué dans l'erreur ligne 5. Et je comprend pas ou gérer ça ni comment le résoudre
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57 [centreon-stable-noarch] name=Centreon open source software repository. baseurl=http://yum-1.centreon.com/standard/19.04/el7/stable/noarch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CES [centreon-stable] name=Centreon open source software repository. baseurl=http://yum-1.centreon.com/standard/19.04/el7/stable/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CES [centreon-testing-noarch] name=Centreon open source software repository. (UNSUPPORTED) baseurl=http://yum-1.centreon.com/standard/19.04/el7/testing/noarch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CES [centreon-testing] name=Centreon open source software repository. (UNSUPPORTED) baseurl=http://yum-1.centreon.com/standard/19.04/el7/testing/$basearch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CES [centreon-unstable-noarch] name=Centreon open source software repository. (UNSUPPORTED) baseurl=http://yum-1.centreon.com/standard/19.04/el7/unstable/noarch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CES [centreon-unstable] name=Centreon open source software repository. (UNSUPPORTED) baseurl=http://yum-1.centreon.com/standard/19.04/el7/unstable/$basearch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CES [centreon-canary-noarch] name=Centreon open source software repository. (UNSUPPORTED) baseurl=http://yum-1.centreon.com/standard/19.04/el7/canary/noarch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CES [centreon-canary] name=Centreon open source software repository. (UNSUPPORTED) baseurl=http://yum-1.centreon.com/standard/19.04/el7/canary/$basearch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CES "/etc/yum.repos.d/centreon.repo" 56L, 1752C
Apres avoir fait la commande : echo $http_proxy, il me renvoi http://proxy.int.centreon.com:3128
Donc il dois y en avoir un configurer de base. Mais je trouve pas ou est le fichier ni comment supprimer ça sans le remplacé par un autre proxy :/
Merci de m'avoir lu et merci par avance pour l'aide que vous pourrez m'apporter, si vous avez besoin d'une autre infos hésitez pas à demander
Partager