Yum update erro no CentOS-7

1. Yum update erro no CentOS-7

Guilherme Ferreira
Guifs007

(usa Outra)

Enviado em 16/06/2020 - 11:28h

Estou tentando fazer a instalação do zabbix-agent em um CentOS 7, mas ocorre este erro, alguém sabe auxiliar?
# yum install zabbix-agent
Plugins carregados: fastestmirror
Bad id for repo: comments abridged, byte = 8
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 41 kB 00:00:00


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: extras/$releasever/x86_64





  


2. Re: Yum update erro no CentOS-7

Stanislaus K
StanislausK

(usa FreeBSD)

Enviado em 16/06/2020 - 12:12h

Ola,

vc viu essa dica:

Instalando o Zabbix Agent
https://brasilcloud.com.br/tutoriais/como-instalar-o-agente-zabbix-zabbix-agent-no-centos-rhel-5-6-7...


3. Re: Yum update erro no CentOS-7

Guilherme Ferreira
Guifs007

(usa Outra)

Enviado em 16/06/2020 - 13:38h

Olá, foi exatamente esse procedimento que fiz mas ao tentar da o que descrevi no tópico, é alguns problemas do yum.repos.d algum problema nos repositórios mas não estou conseguindo resolver



4. Re: Yum update erro no CentOS-7

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 16/06/2020 - 14:54h


digita
yum clean all

e depois

yum update




5. Yum update erro no CentOS-7

Guilherme Ferreira
Guifs007

(usa Outra)

Enviado em 16/06/2020 - 15:23h

[///]# yum update
Plugins carregados: fastestmirror
Bad id for repo: comments abridged, byte = 8
Determining fastest mirrors


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: centosplus/$releasever/x86_64
[///]##



6. Re: Yum update erro no CentOS-7

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 16/06/2020 - 15:53h


digita ai

yum repolist


7. Re: Yum update erro no CentOS-7

Guilherme Ferreira
Guifs007

(usa Outra)

Enviado em 18/06/2020 - 16:26h

Conteúdo do yum repolist e depois yum update
# yum repolist
Plugins carregados: fastestmirror
Bad id for repo: comments abridged, byte = 8
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 55 kB 00:00
* base: ftp.unicamp.br
* c7-media:
* epel: mirror.math.princeton.edu
C7.0.1406-base | 3.6 kB 00:00
C7.0.1406-centosplus | 2.9 kB 00:00
C7.0.1406-extras | 2.9 kB 00:00
C7.0.1406-fasttrack | 2.9 kB 00:00
C7.0.1406-updates | 2.9 kB 00:00
C7.1.1503-base | 3.6 kB 00:00
C7.1.1503-centosplus | 3.4 kB 00:00
C7.1.1503-extras | 3.4 kB 00:00
C7.1.1503-fasttrack | 3.4 kB 00:00
C7.1.1503-updates | 3.4 kB 00:00
C7.2.1511-base | 3.6 kB 00:00
C7.2.1511-centosplus | 3.4 kB 00:00
C7.2.1511-extras | 3.4 kB 00:00
C7.2.1511-fasttrack | 3.3 kB 00:00
C7.2.1511-updates | 3.4 kB 00:00
C7.3.1611-base | 3.6 kB 00:00
C7.3.1611-centosplus | 3.4 kB 00:00
C7.3.1611-extras | 3.4 kB 00:00
C7.3.1611-fasttrack | 3.3 kB 00:00
C7.3.1611-updates | 3.4 kB 00:00
C7.4.1708-base | 3.6 kB 00:00
C7.4.1708-centosplus | 3.4 kB 00:00
C7.4.1708-extras | 3.4 kB 00:00
C7.4.1708-fasttrack | 3.3 kB 00:00
C7.4.1708-updates | 3.4 kB 00:00
C7.5.1804-base | 3.6 kB 00:00
C7.5.1804-centosplus | 3.4 kB 00:00
C7.5.1804-extras | 3.4 kB 00:00
C7.5.1804-fasttrack | 3.3 kB 00:00
C7.5.1804-updates | 3.4 kB 00:00
C7.6.1810-base | 3.6 kB 00:00
C7.6.1810-centosplus | 3.4 kB 00:00
C7.6.1810-extras | 3.4 kB 00:00
C7.6.1810-fasttrack | 3.4 kB 00:00
C7.6.1810-updates | 3.4 kB 00:00
C7.7.1908-base | 3.6 kB 00:00
C7.7.1908-centosplus | 2.9 kB 00:00
C7.7.1908-extras | 2.9 kB 00:00
C7.7.1908-fasttrack | 2.9 kB 00:00
C7.7.1908-updates | 2.9 kB 00:00
base | 3.6 kB 00:00
base-debuginfo | 2.5 kB 00:00
base-source | 2.9 kB 00:00
file:///media/CentOS/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /media/CentOS/repodata/repomd.xml"
Tentando outro espelho.
file:///media/cdrecorder/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /media/cdrecorder/repodata/repomd.xml"
Tentando outro espelho.
file:///media/cdrom/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /media/cdrom/repodata/repomd.xml"
Tentando outro espelho.
C7.0.1406-base/x86_64/primary_db | 4.9 MB 00:03
C7.0.1406-centosplus/x86_64/primary_db | 3.5 MB 00:02
C7.0.1406-extras/x86_64/primary_db | 43 kB 00:00
C7.0.1406-fasttrack/x86_64/primary_db | 124 kB 00:00
C7.0.1406-updates/x86_64/primary_db | 7.2 MB 00:05
C7.1.1503-base/x86_64/primary_db | 5.1 MB 00:03
C7.1.1503-centosplus/x86_64/primary_db | 2.2 MB 00:02
C7.1.1503-extras/x86_64/primary_db | 120 kB 00:00
C7.1.1503-fasttrack/x86_64/primary_db | 71 kB 00:00
C7.1.1503-updates/x86_64/primary_db | 4.7 MB 00:03
C7.2.1511-base/x86_64/primary_db | 5.3 MB 00:04
C7.2.1511-centosplus/x86_64/primary_db | 4.1 MB 00:03
C7.2.1511-extras/x86_64/primary_db | 166 kB 00:01
C7.2.1511-fasttrack/x86_64/primary_db | 1.2 kB 00:00
C7.2.1511-updates/x86_64/primary_db | 9.1 MB 00:06
C7.3.1611-base/x86_64/primary_db | 5.6 MB 00:04
C7.3.1611-centosplus/x86_64/primary_db | 3.2 MB 00:02
C7.3.1611-extras/x86_64/primary_db | 191 kB 00:00
C7.3.1611-fasttrack/x86_64/primary_db | 1.2 kB 00:00
C7.3.1611-updates/x86_64/primary_db | 7.8 MB 00:06
C7.4.1708-base/x86_64/primary_db | 5.7 MB 00:04
C7.4.1708-centosplus/x86_64/primary_db | 3.1 MB 00:02
C7.4.1708-extras/x86_64/primary_db | 185 kB 00:00
C7.4.1708-fasttrack/x86_64/primary_db | 1.2 kB 00:00
C7.4.1708-updates/x86_64/primary_db | 6.9 MB 00:05
C7.5.1804-base/x86_64/primary_db | 5.9 MB 00:04
C7.5.1804-centosplus/x86_64/primary_db | 3.3 MB 00:02
C7.5.1804-extras/x86_64/primary_db | 205 kB 00:01
C7.5.1804-fasttrack/x86_64/primary_db | 1.1 kB 00:00
C7.5.1804-updates/x86_64/primary_db | 6.0 MB 00:04
C7.6.1810-base/x86_64/primary_db | 6.0 MB 00:04
C7.6.1810-centosplus/x86_64/primary_db | 3.3 MB 00:03
C7.6.1810-extras/x86_64/primary_db | 215 kB 00:00
C7.6.1810-fasttrack/x86_64/primary_db | 77 kB 00:00
C7.6.1810-updates/x86_64/primary_db | 7.4 MB 00:05
C7.7.1908-base/x86_64/primary_db | 6.0 MB 00:04
C7.7.1908-centosplus/x86_64/primary_db | 3.0 MB 00:02
C7.7.1908-extras/x86_64/primary_db | 165 kB 00:00
C7.7.1908-fasttrack/x86_64/primary_db | 34 kB 00:00
C7.7.1908-updates/x86_64/primary_db | 7.6 MB 00:05
base/7/x86_64/primary_db | 6.1 MB 00:00
base-debuginfo/x86_64/primary_db | 2.5 MB 00:03
base-source/7/primary_db | 974 kB 00:01
file:///media/CentOS/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /media/CentOS/repodata/repomd.xml"
Tentando outro espelho.
file:///media/cdrecorder/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /media/cdrecorder/repodata/repomd.xml"
Tentando outro espelho.
file:///media/cdrom/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /media/cdrom/repodata/repomd.xml"
Tentando outro espelho.
cr/7/x86_64 | 2.9 kB 00:00
cr/7/x86_64/primary_db | 1.1 kB 00:00
epel/x86_64 | 4.7 kB 00:00
epel/x86_64/group_gz | 95 kB 00:00
epel/x86_64/updateinfo | 1.0 MB 00:00
epel/x86_64/primary_db | 6.8 MB 00:00
extras/7/x86_64 | 2.9 kB 00:00
extras/7/x86_64/primary_db | 194 kB 00:00
extrascentos7 | 2.9 kB 00:00
extrascentos7/primary_db | 194 kB 00:00
fasttrack/7/x86_64 | 2.9 kB 00:00
fasttrack/7/x86_64/primary_db | 34 kB 00:00
updates/7/x86_64 | 2.9 kB 00:00
updates/7/x86_64/primary_db | 2.1 MB 00:00
zabbix/x86_64 | 2.9 kB 00:00
http://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/repodata/3d0396ad111bded9d21f25e38a2a92b7c3ac06983fc... [Errno 14] curl#18 - "transfer closed with 28519 bytes remaining to read"
Tentando outro espelho.
zabbix/x86_64/primary_db | 166 kB 00:01
zabbix-non-supported/x86_64 | 951 B 00:00
zabbix-non-supported/x86_64/primary | 1.6 kB 00:00
zabbix-non-supported 4/4
id do repo nome do repo status
C7.0.1406-base/x86_64 CentOS-7.0.1406 - Base 8.465
C7.0.1406-centosplus/x86_64 CentOS-7.0.1406 - CentOSPlus 123
C7.0.1406-extras/x86_64 CentOS-7.0.1406 - Extras 104
C7.0.1406-fasttrack/x86_64 CentOS-7.0.1406 - Fasttrack 155
C7.0.1406-updates/x86_64 CentOS-7.0.1406 - Updates 1.725
C7.1.1503-base/x86_64 CentOS-7.1.1503 - Base 8.652
C7.1.1503-centosplus/x86_64 CentOS-7.1.1503 - CentOSPlus 73
C7.1.1503-extras/x86_64 CentOS-7.1.1503 - Extras 285
C7.1.1503-fasttrack/x86_64 CentOS-7.1.1503 - Fasttrack 110
C7.1.1503-updates/x86_64 CentOS-7.1.1503 - Updates 1.726
C7.2.1511-base/x86_64 CentOS-7.2.1511 - Base 9.007
C7.2.1511-centosplus/x86_64 CentOS-7.2.1511 - CentOSPlus 134
C7.2.1511-extras/x86_64 CentOS-7.2.1511 - Extras 393
C7.2.1511-fasttrack/x86_64 CentOS-7.2.1511 - Fasttrack 0
C7.2.1511-updates/x86_64 CentOS-7.2.1511 - Updates 2.560
C7.3.1611-base/x86_64 CentOS-7.3.1611 - Base 9.363
C7.3.1611-centosplus/x86_64 CentOS-7.3.1611 - CentOSPlus 101
C7.3.1611-extras/x86_64 CentOS-7.3.1611 - Extras 451
C7.3.1611-fasttrack/x86_64 CentOS-7.3.1611 - Fasttrack 0
C7.3.1611-updates/x86_64 CentOS-7.3.1611 - Updates 2.146
C7.4.1708-base/x86_64 CentOS-7.4.1708 - Base 9.591
C7.4.1708-centosplus/x86_64 CentOS-7.4.1708 - CentOSPlus 92
C7.4.1708-extras/x86_64 CentOS-7.4.1708 - Extras 448
C7.4.1708-fasttrack/x86_64 CentOS-7.4.1708 - Fasttrack 0
C7.4.1708-updates/x86_64 CentOS-7.4.1708 - Updates 2.416
C7.5.1804-base/x86_64 CentOS-7.5.1804 - Base 9.911
C7.5.1804-centosplus/x86_64 CentOS-7.5.1804 - CentOSPlus 93
C7.5.1804-extras/x86_64 CentOS-7.5.1804 - Extras 434
C7.5.1804-fasttrack/x86_64 CentOS-7.5.1804 - Fasttrack 0
C7.5.1804-updates/x86_64 CentOS-7.5.1804 - Updates 1.614
C7.6.1810-base/x86_64 CentOS-7.6.1810 - Base 10.019
C7.6.1810-centosplus/x86_64 CentOS-7.6.1810 - CentOSPlus 103
C7.6.1810-extras/x86_64 CentOS-7.6.1810 - Extras 435
C7.6.1810-fasttrack/x86_64 CentOS-7.6.1810 - Fasttrack 67
C7.6.1810-updates/x86_64 CentOS-7.6.1810 - Updates 2.500
C7.7.1908-base/x86_64 CentOS-7.7.1908 - Base 10.097
C7.7.1908-centosplus/x86_64 CentOS-7.7.1908 - CentOSPlus 91
C7.7.1908-extras/x86_64 CentOS-7.7.1908 - Extras 341
C7.7.1908-fasttrack/x86_64 CentOS-7.7.1908 - Fasttrack 43
C7.7.1908-updates/x86_64 CentOS-7.7.1908 - Updates 1.787
base/7/x86_64 CentOS-7 - Base 10.070
base-debuginfo/x86_64 CentOS-7 - Debuginfo 7.810
base-source/7 CentOS-7 - Base Sources 2.748
c7-media CentOS-7 - Media 0
cr/7/x86_64 CentOS-7 - cr 0
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_6 13.327
extras/7/x86_64 CentOS-7 - Extras 397
extrascentos7 Extras packages for CentOS 7 for x86_64 397
fasttrack/7/x86_64 CentOS-7 - fasttrack 43
updates/7/x86_64 CentOS-7 - Updates 759
zabbix/x86_64 Zabbix Official Repository - x86_64 328
zabbix-non-supported/x86_64 Zabbix Official Repository non-supported - x8 4
repolist: 131.538

yum update
Plugins carregados: fastestmirror
Bad id for repo: comments abridged, byte = 8
Loading mirror speeds from cached hostfile
* base: ftp.unicamp.br
* c7-media:
* epel: mirror.math.princeton.edu
file:///media/CentOS/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /media/CentOS/repodata/repomd.xml"
Tentando outro espelho.
file:///media/cdrecorder/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /media/cdrecorder/repodata/repomd.xml"
Tentando outro espelho.
file:///media/cdrom/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /media/cdrom/repodata/repomd.xml"
Tentando outro espelho.


One of the configured repositories failed (CentOS-7 - Media),
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=c7-media ...

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 c7-media
or
subscription-manager repos --disable=c7-media

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=c7-media.skip_if_unavailable=true

failure: repodata/repomd.xml from c7-media: [Errno 256] No more mirrors to try.
file:///media/CentOS/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /media/CentOS/repodata/repomd.xml"
file:///media/cdrecorder/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /media/cdrecorder/repodata/repomd.xml"
file:///media/cdrom/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /media/cdrom/repodata/repomd.xml"






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts