NethServer Linux Centos YUM update repository problems (from Russia)

Автор: | 26 августа, 2018

NethServer Centos YUM не обновляется список репозиториев при подключении с российских ип , 403 , 404 , не пингует no ping ; ip block
предлагает Clear yum cache

Administration / Software center не отображается , ошибка
failure: repodata/repomd.xml from nethforge: [Errno 256] No more mirrors to try.
http://nethserver.de-labrusse.fr/nethserver/7/nethforge/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 — Not Found

Could not retrieve mirrorlist http://mirrorlist.nethserver.org/7/nethserver?release=7&repo=nethforge&arch=x86_64 error was
12: Timeout on http://mirrorlist.nethserver.org/7/nethserver?release=7&repo=nethforge&arch=x86_64: (28, ‘Connection timed out after 30001 milliseconds’)

mirrorlist.nethserver.org packages.nethserver.org 46.101.114.111 159.89.233.254
403 Forbidden

1)Скачиваем текстовый редактор Download the text editor nano или используем vi

wget http://mirror.centos.org/centos/7/os/x86_64/Packages/nano-2.3.1-10.el7.x86_64.rpm

2)Устанавливаем в Centos Nano rpm

sudo rpm -i nano-2.3.1-10.el7.x86_64.rpm

https://community.nethserver.org/t/yum-update-repository-problems-from-russia/9827

NethServer-Administration-Software center-yum-failed-00

3)Смотрим список зеркал тут \ We look at the list of mirrors here http://mirror-status.nethserver.org/

переходим в папку cd /etc/yum.repos.d/
редактируем файл
sudo nano NethForge.repo
[nethforge]
name=NethForge $releasever
#mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=nethforge&arch=$basearch&nsrelease=$nsrele$
baseurl=https://mirror.alpix.eu/nethserver/$releasever/nethforge/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethForge-7
enabled=1
enablegroups=1

[nethforge-testing]
name=NethForge $releasever — Testing
#mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=nethforge-testing&arch=$basearch&nsrelease$
baseurl=https://mirror.alpix.eu/nethserver/$releasever/nethforge-testing/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethForge-7
enabled=0
enablegroups=1

sudo nano NethServer.repo
# nethserver.org YUM repositories configuration
#

[nethserver-base]
name=NethServer-$releasever — Base
#mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=base&arch=$basearch&nsrelease=$nsrelease
baseurl=https://mirror.alpix.eu/nethserver/$releasever/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-$releasever
enabled=1
enablegroups=0

[nethserver-updates]
name=NethServer-$releasever — Updates
#mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=updates&arch=$basearch&nsrelease=$nsrelease
baseurl=https://mirror.alpix.eu/nethserver/$releasever/updates/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-$releasever
enabled=1
enablegroups=1

[nethserver-testing]
name=NethServer-$releasever — Testing
mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=testing&arch=$basearch&nsrelease=$nsrelease
baseurl=http://mirror1.nethserver.org/nethserver/$releasever/testing/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-$releasever
enabled=0
enablegroups=0

Чистим обновляем \ Clean and update

yum clean all && rm -rf /var/cache/yum && yum -y update

NethServer Linux Centos YUM update repository problems (from Russia): 4 комментария

  1. Дмитрий

    Исправьте в файле NethForge.repo [nethforge-testing] baseurl=http://https:// нужно только https:// оставить.

  2. Andrey Автор записи

    cd /etc/yum.repos.d/
    sudo nano NethForge.repo
    [nethforge]
    name=NethForge $releasever
    #mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=nethforg$
    baseurl=https://mirror.alpix.eu/nethserver/$releasever/nethforge/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethForge-7
    gpgcheck=1
    repo_gpgcheck=1
    enabled=1
    enablegroups=1

    [nethforge-testing]
    name=NethForge $releasever — Testing
    #mirrorlist=http://mirror.alpix.eu/?release=$releasever&repo=nethforge-testing&$
    baseurl=https://mirror.alpix.eu/nethserver/$releasever/nethforge-testing/$basea$
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethForge-7
    gpgcheck=1
    repo_gpgcheck=1
    enabled=0
    enablegroups=1


    nano NethServer.repo
    [nethserver-base]
    name=NethServer-$nsrelease — Base
    #mirrorlist=http://mirror.alpix.eu/?release=$releasever&repo=base&arch=$basearc$
    baseurl=https://mirror.alpix.eu/nethserver/$releasever/base/$basearch/
    gpgcheck=1
    repo_gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-$releasever
    enabled=1
    enablegroups=0

    [nethserver-updates]
    name=NethServer-$nsrelease — Updates
    #mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=updates&$
    baseurl=https://mirror.alpix.eu/nethserver/$releasever/updates/$basearch/
    gpgcheck=1
    repo_gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-$releasever
    enabled=1
    enablegroups=1

    [nethserver-testing]
    name=NethServer-$nsrelease — Testing
    #mirrorlist=http://mirror.alpix.eu/?release=$releasever&repo=testing&arch=$base$
    baseurl=https://mirror.alpix.eu/nethserver/$releasever/testing/$basearch/
    gpgcheck=1
    repo_gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-$releasever
    enabled=0
    enablegroups=0

    [ce-base]
    name=CE-Base-$nsrelease
    mirrorlist=https://mirror.alpix.eu/?release=$releasever&repo=ce-base&arch=$base$
    baseurl=http://mirror.centos.org/centos/$nsrelease/os/$basearch/
    gpgcheck=1
    [ce-updates]
    name=CE-Updates-$nsrelease
    mirrorlist=http://mirror.alpix.eu/?release=$releasever&repo=ce-updates&arch=$ba$
    baseurl=http://mirror.centos.org/centos/$nsrelease/updates/$basearch/
    gpgcheck=1
    repo_gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
    enabled=1

    [ce-extras]
    name=CE-Extras-$nsrelease
    #mirrorlist=http://mirror.alpix.eu/?release=$releasever&repo=ce-extras&arch=$ba$
    baseurl=http://mirror.alpix.eu/centos/$nsrelease/extras/$basearch/
    gpgcheck=1
    repo_gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
    enabled=1
    [ce-sclo-rh]
    name=CE-SCLo-rh-$nsrelease
    mirrorlist=https://mirror.alpix.eu/?release=$releasever&repo=ce-sclo-rh&arch=$b$
    baseurl=http://mirror.centos.org/centos/$nsrelease/sclo/$basearch/rh/
    gpgcheck=1
    repo_gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
    enabled=1

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *