1

Привет!
При вводе команды yum update

[root@www ~]# yum update
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. </html>/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

Как решить эту проблему? Помогите пожалуйста. ak

2

Velland,
Необходимо уточнение: Какая ОС?

3

попробуйте для начала

yum clean all

4

Необходимо уточнение: Какая ОС?

CentOS release 6.3 (Final)

5

попробуйте для начала

yum clean all

Не помогло.

6

Последнее что я ставил был fail2ban, после него yum стал выдавать ошибки

Aug 19 12:02:09 Installed: gamin-python-0.1.10-9.el6.x86_64
Aug 19 12:02:09 Installed: 1:perl-Digest-SHA-5.47-127.el6.x86_64
Aug 19 12:02:10 Installed: python-inotify-0.9.1-1.el6.noarch
Aug 19 12:02:10 Installed: shorewall-core-4.5.4-1.el6.noarch
Aug 19 12:02:12 Installed: shorewall-4.5.4-1.el6.noarch
Aug 19 12:02:12 Installed: tcp_wrappers-7.6-57.el6.x86_64
Aug 19 12:02:13 Installed: fail2ban-0.8.4-28.el6.noarch

7

Velland пишет:

Последнее что я ставил был fail2ban, после него yum стал выдавать ошибки
Aug 19 12:02:09 Installed: gamin-python-0.1.10-9.el6.x86_64
Aug 19 12:02:09 Installed: 1:perl-Digest-SHA-5.47-127.el6.x86_64
Aug 19 12:02:10 Installed: python-inotify-0.9.1-1.el6.noarch
Aug 19 12:02:10 Installed: shorewall-core-4.5.4-1.el6.noarch
Aug 19 12:02:12 Installed: shorewall-4.5.4-1.el6.noarch
Aug 19 12:02:12 Installed: tcp_wrappers-7.6-57.el6.x86_64
Aug 19 12:02:13 Installed: fail2ban-0.8.4-28.el6.noarch

а где тут ошибки?

8

Hrafn пишет:
Velland пишет:

Последнее что я ставил был fail2ban, после него yum стал выдавать ошибки
Aug 19 12:02:09 Installed: gamin-python-0.1.10-9.el6.x86_64
Aug 19 12:02:09 Installed: 1:perl-Digest-SHA-5.47-127.el6.x86_64
Aug 19 12:02:10 Installed: python-inotify-0.9.1-1.el6.noarch
Aug 19 12:02:10 Installed: shorewall-core-4.5.4-1.el6.noarch
Aug 19 12:02:12 Installed: shorewall-4.5.4-1.el6.noarch
Aug 19 12:02:12 Installed: tcp_wrappers-7.6-57.el6.x86_64
Aug 19 12:02:13 Installed: fail2ban-0.8.4-28.el6.noarch

а где тут ошибки?

Я имел введу что до установки fail2ban все норм было, потом yum начал выдавать ошибки

[root@www ~]# yum update
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. </html>/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

9

Попробуй заменить mirrorlist на baseurl в файле репозитория (одно закомментируй, другое раскомментируй).

10 (22.08.2012 14:59:43 отредактировано Velland)

Заменил вот что теперь:

[root@www ~]# yum update
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile

base                                                     | 5.9 kB     00:00 ...
http://mirror.centos.org/centos/6/os/x8 … epomd.xml: [Errno -1] Error importing repomd.xml for base: Damaged repomd.xml file
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

11

Подожди. Может обновляется что на сервере.

12

Vascom пишет:

Подожди. Может обновляется что на сервере.

Подождал, все таже ошибка.

13

Velland,
Почитайте: http://www.linuxquestions.org/questions … po-478600/
(вроде есть решения)

14

здесь почитай: http://serverfault.com/questions/314120 … y-metadata хоть и для 5.7 но для 6.3 так же подойдет.

It is good day to die ...
MS Windows 10
Заметки о главном...

15

Ничего не помогло.

16

покажите конфиги репозиториев

17

centalt.repo

+ открыть спойлер
[CentALT]
name=CentALT Packages for Enterprise Linux 6 - $basearch
baseurl=http://centos.alt.ru/repository/centos/6/$basearch/
enabled=1
priority=10
gpgcheck=0

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
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates 
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

CentOS-Debuginfo.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.
#

# All debug packages from all the various CentOS-5 releases
# are merged into a single repo, split by BaseArch
#
# Note: packages in the debuginfo repo are currently not signed
#

[debug]
name=CentOS-6 - Debuginfo
baseurl=http://debuginfo.centos.org/6/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Debug-6
enabled=0

CentOS-Media.repo

+ открыть спойлер
# CentOS-Media.repo
#
# This repo is used to mount the default locations for a CDROM / DVD on
#  CentOS-6.  You can use this repo and yum to install items directly off the
#  DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
#  yum --enablerepo=c6-media [command]
#  
# or for ONLY the media repo, do this:
#
#  yum --disablerepo=\* --enablerepo=c6-media [command]
 
[c6-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
        file:///media/cdrom/
        file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

CentOS-Vault.repo

+ открыть спойлер
#-----------------

[C6.0-base]
name=CentOS-6.0 - Base
baseurl=http://vault.centos.org/6.0/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0

[C6.0-updates]
name=CentOS-6.0 - Updates
baseurl=http://vault.centos.org/6.0/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0

[C6.0-extras]
name=CentOS-6.0 - Extras
baseurl=http://vault.centos.org/6.0/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0

[C6.0-contrib]
name=CentOS-6.0 - Contrib
baseurl=http://vault.centos.org/6.0/contrib/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0

[C6.0-centosplus]
name=CentOS-6.0 - CentOSPlus
baseurl=http://vault.centos.org/6.0/centosplus/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0
#-----------------

[C6.1-base]
name=CentOS-6.1 - Base
baseurl=http://vault.centos.org/6.1/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0

[C6.1-updates]
name=CentOS-6.1 - Updates
baseurl=http://vault.centos.org/6.1/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0

[C6.1-extras]
name=CentOS-6.1 - Extras
baseurl=http://vault.centos.org/6.1/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0

[C6.1-contrib]
name=CentOS-6.1 - Contrib
baseurl=http://vault.centos.org/6.1/contrib/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0

[C6.1-centosplus]
name=CentOS-6.1 - CentOSPlus
baseurl=http://vault.centos.org/6.1/centosplus/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0
#-----------------

[C6.2-base]
name=CentOS-6.2 - Base
baseurl=http://vault.centos.org/6.2/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0

[C6.2-updates]
name=CentOS-6.2 - Updates
baseurl=http://vault.centos.org/6.2/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0

[C6.2-extras]
name=CentOS-6.2 - Extras
baseurl=http://vault.centos.org/6.2/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0

[C6.2-contrib]
name=CentOS-6.2 - Contrib
baseurl=http://vault.centos.org/6.2/contrib/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0

[C6.2-centosplus]
name=CentOS-6.2 - CentOSPlus
baseurl=http://vault.centos.org/6.2/centosplus/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=0

epel.repo

+ открыть спойлер
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
priority=10
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

epel-testing.repo

+ открыть спойлер
[epel-testing]
name=Extra Packages for Enterprise Linux 6 - Testing - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/testing/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-epel6&arch=$basearch
failovermethod=priority
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-testing-debuginfo]
name=Extra Packages for Enterprise Linux 6 - Testing - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/testing/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-testing-source]
name=Extra Packages for Enterprise Linux 6 - Testing - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/testing/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

webmin.repo

+ открыть спойлер
[Webmin]
name=Webmin Distribution Neutral
baseurl=http://download.webmin.com/download/yum
enabled=1
priority=10
gpgkey=http://www.webmin.com/jcameron-key.asc

18

а в целом доступ в инет с этой машины нормальный?

19 (23.08.2012 13:36:13 отредактировано Hrafn)

покажите еще содержимое /etc/yum.conf
и вывод

yum repolist

20 (23.08.2012 14:41:56 отредактировано AlfaStriker)

Я конечно не такой прям Линуксоид, но дам совет.
Сделай так:
1. Проверь есть ли Интернет

# ping google.ru

2. Удали все лишние репы

# yum remove centalt-release -y
# yum remove  epel-testing-release -y
# yum remove epel-release -y
# yum remove webmin-release -y

3. Попробуй обновится

# yum clean -y
# yum update -y


По моему надо удалить все не рабочие репы.

21

Hrafn пишет:

а в целом доступ в инет с этой машины нормальный?

Да нормальный.

Hrafn пишет:

покажите еще содержимое /etc/yum.conf
и вывод

yum repolist

yum.conf

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release

#  This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
#  It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

yum repolist

[root@www ~]# yum repolist
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. </html>/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
repo id         repo name                                                 status
CentALT         CentALT Packages for Enterprise Linux 6 - x86_64          0
Webmin          Webmin Distribution Neutral                               0
base            CentOS-6 - Base                                           0
epel            Extra Packages for Enterprise Linux 6 - x86_64            0
extras          CentOS-6 - Extras                                         0
updates         CentOS-6 - Updates                                        0
repolist: 0

22

и заодно содержимое /var/cache/yum/x86_64/6/base/mirrorlist.txt

23

AlfaStriker пишет:

Я конечно не такой прям Линуксоид, но дам совет.
Сделай так:
1. Проверь есть ли Интернет
# ping google.ru

2. Удали все лишние репы
# yum remove centalt-release -y
# yum remove  epel-testing-release -y
# yum remove epel-release -y
# yum remove webmin-release -y

3. Попробуй обновится
# yum clean -y
# yum update -y




По моему надо удалить все не рабочие репы.

ping google.ru

[root@www ~]# ping google.ru
PING google.ru (173.194.35.191) 56(84) bytes of data.
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=1 ttl=54 time=62.6 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=2 ttl=54 time=67.5 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=3 ttl=54 time=61.5 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=4 ttl=54 time=61.4 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=5 ttl=54 time=61.1 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=6 ttl=54 time=61.4 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=7 ttl=54 time=61.4 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=8 ttl=54 time=61.6 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=9 ttl=54 time=61.4 ms
64 bytes from muc03s02-in-f31.1e100.net (173.194.35.191): icmp_seq=10 ttl=54 time=62.8 ms

yum remove centalt-release -y

[root@www ~]# yum remove centalt-release -y
Loaded plugins: fastestmirror, priorities
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package centalt-release.noarch 0:6-1 will be erased
--> Finished Dependency Resolution

CentALT                                                  | 5.9 kB     00:00 ... 
http://centos.alt.ru/repository/centos/6/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for CentALT: Damaged repomd.xml file
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: CentALT. Please verify its path and try again
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

yum remove  epel-testing-release -y

[root@www ~]# yum remove  epel-testing-release -y
Loaded plugins: fastestmirror, priorities
Setting up Remove Process
No Match for argument: epel-testing-release
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. </html>/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

yum remove epel-release -y

]0;root@www:~[root@www ~]# um remove epel-release -y[1@y
Loaded plugins: fastestmirror, priorities
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:6-7 will be erased
--> Finished Dependency Resolution

CentALT                                                  | 5.9 kB     00:00 ... 
http://centos.alt.ru/repository/centos/6/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for CentALT: Damaged repomd.xml file
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: CentALT. Please verify its path and try again
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

yum remove webmin-release -y

[root@www ~]# yum remove webmin-release -y
Loaded plugins: fastestmirror, priorities
Setting up Remove Process
No Match for argument: webmin-release
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. </html>/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

yum clean -y

[root@www ~]# yum clean -y
Loaded plugins: fastestmirror, priorities
Error: clean requires an option: headers, packages, metadata, dbcache, plugins, expire-cache, rpmdb, all

yum update -y

[root@www ~]# yum update -y
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. </html>/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

24

Hrafn пишет:

и заодно содержимое /var/cache/yum/x86_64/6/base/mirrorlist.txt

По этому пути его вобще нету.

25

Может как вариант:

# yum clean all
# yum clean dbcache
# yum clean metadata

26

первая команда и так все вычистит

27

что вообще есть в /var/cache/yum/x86_64/6/base/ ?

28

попробуйте еще:

cd /tmp
wget http://mirror.yandex.ru/centos/6.3/os/x86_64/repodata/repomd.xml

29

Hrafn пишет:

что вообще есть в /var/cache/yum/x86_64/6/base/ ?

Папка packages и она пуста

30

сделайте

yum update

и снова посмотрите. что там есть