Как восстановить репозиторий yum centos7?Linux

Ответить Пред. темаСлед. тема
Anonymous
 Как восстановить репозиторий yum centos7?

Сообщение Anonymous »

Когда мой коллега обновлял информацию о репозитории centos7.9, он случайно использовал репозиторий версии 8.5 и обновил его, в результате чего системная информация стала 8.5.

Код: Выделить всё

[root@xxx etc]# hostnamectl
Static hostname: ...//Sensitive Information
Icon name: computer-vm
Chassis: vm
Machine ID: ...//Sensitive Information
Boot ID: ...//Sensitive Information
Virtualization: kvm
Operating System: CentOS Linux 8
CPE OS Name: cpe:/o:centos:centos:8
Kernel: Linux 3.10.0-1160.15.2.el7.x86_64
Architecture: x86-64
-----------------------------------------------------
[root@xxx etc]## cat /etc/redhat-release
CentOS Linux release 8.5.2111
Когда я заменил правильный файл CentOS-Base.repo обратно, обновив информацию о репо, я получил следующие ошибки:

Код: Выделить всё

[root@xxx yum.repos.d]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base epel-Everything epel-modular extras updates
Other repos take up 550 M of disk space (use --verbose for details)
-------------------
[root@xxx yum.repos.d]# yum makecache
Loaded plugins: fastestmirror
Determining fastest mirrors
https://mirrors.huaweicloud.com/centos/8.5-1.2111.el8/os/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

One of the configured repositories failed (CentOS-8.5-1.2111.el8 - Base - mirrors.huaweicloud.com),
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=base ...

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

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

failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
https://mirrors.huaweicloud.com/centos/8.5-1.2111.el8/os/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

Как мне справиться с этой проблемой???
Файл CentOS-Base.repo получен от поставщика облачных услуг

Подробнее здесь: https://stackoverflow.com/questions/790 ... of-centos7
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение
  • Почему yum Remove проверяет репозиторий во время локального удаления пакета?
    Anonymous » » в форуме Linux
    0 Ответы
    11 Просмотры
    Последнее сообщение Anonymous
  • Jstree: как восстановить/восстановить узел
    Гость » » в форуме Jquery
    0 Ответы
    78 Просмотры
    Последнее сообщение Гость
  • Ошибка ввода/вывода centos7 после использования lvresize
    Anonymous » » в форуме Linux
    0 Ответы
    69 Просмотры
    Последнее сообщение Anonymous
  • Невозможно установить glibc-langpack-no на centos7
    Anonymous » » в форуме Php
    0 Ответы
    42 Просмотры
    Последнее сообщение Anonymous
  • Когда я попытался запустить «pip3 install uwsgi» в centOS7, я столкнулся с этой ужасной ошибкой.
    Anonymous » » в форуме Python
    0 Ответы
    64 Просмотры
    Последнее сообщение Anonymous

Вернуться в «Linux»