gilsonroberto
(usa CentOS)
Enviado em 22/03/2018 - 18:05h
Boa tarde, sou novo na utilização do Linux e utilizo o distribuição Centos 7, estou com uma falha na utilização do yum, apresenta a seguinte mensagem:
[root@servidor1 base]# yum check-update
Plugins carregados: fastestmirror
One of the configured repositories failed (Desconhecido),
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/$releasever/x86_64
************************************************************************************************************************************************************
Já dei uma boa pesquisada e não consegui resolver a falha, seguem algumas informações sobre a rede e config do servidor. Alguem pode me ajudar?
[root@servidor1 base]# cat /etc/resolv.conf && route -n
; generated by /usr/sbin/dhclient-script
search minhaempresa.corp.
nameserver 192.168.100.100
nameserver 8.8.8.8
Tabela de Roteamento IP do Kernel
Destino Roteador MáscaraGen. Opções Métrica Ref Uso Iface
0.0.0.0 192.168.15.1 0.0.0.0 UG 600 0 0 wlp2s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 enp1s0
192.168.15.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp2s0
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 enp1s0
[root@servidor1 base]#
[root@servidor1 ~]# df -h
Sist. Arq. Tam. Usado Disp. Uso% Montado em
/dev/mapper/cl_unknown-root 9,4G 1,5G 7,9G 16% /
devtmpfs 904M 0 904M 0% /dev
tmpfs 915M 0 915M 0% /dev/shm
tmpfs 915M 8,6M 906M 1% /run
tmpfs 915M 0 915M 0% /sys/fs/cgroup
/dev/sda1 470M 132M 339M 28% /boot
/dev/mapper/cl_unknown-home 470M 25M 446M 6% /home
/dev/mapper/cl_unknown-tmp 470M 25M 446M 6% /tmp
/dev/mapper/cl_unknown-var 470M 44M 427M 10% /var
tmpfs 183M 0 183M 0% /run/user/0
[root@servidor1 ~]#
[root@servidor1 ~]# nslookup mirrorlist.centos.org
Server: 192.168.100.100
Address: 192.168.100.100#53
Non-authoritative answer:
Name: mirrorlist.centos.org
Address: 85.236.43.108
Name: mirrorlist.centos.org
Address: 216.176.179.218
Name: mirrorlist.centos.org
Address: 67.219.148.138
Name: mirrorlist.centos.org
Address: 212.69.166.138
[root@servidor1 ~]# cat /etc/yum.repos.d/CentOS-Base.repo
# 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
[root@servidor1 ~]#