I come Informatica - I como Informática - I for Information Technology
PORTALE
PORTAL
PORTAL
FORUM
FORO
FORUM
Informatica
Informática
Information Technology
Stefano Pederzani
Consulente informatico
ARTE
Homepages
Curricula
Curricula
Resumes
Pubblicità
Publicidad
Advertisement




[SOLVED] YumRepo Error: All mirror URLs are not using ftp, h

Tutto ciò che riguarda Linux sulle macchine server o i servizi Linux in generale.
Todo lo que interesa Linux sobre las máquinas servidoras o los servicios Linux en general.
All about Linux server machines or Linux services in general.

[SOLVED] YumRepo Error: All mirror URLs are not using ftp, h

Postby stefanopederzani » Thu Dec 17, 2020 4:04 pm

Today I discovered with horror I could not update my CentOS 6.10 (Final) anymore.
Here something similar to the error message:
"YumRepo Error: All mirror URLs are not using ftp, http[s] or file"

Using the graphic app is not the best way to solve an error.
Surfing the web I discovered the command line I needed for debug:
Code: Select all
# yum repolist

This is the best way to verify everything is OK.
It was not.
I catch 2 or 3 error on top of the output and 3 on the middle, while it was ending with a list of repo and a column with the number of available mirror sites.
???????????
Going on surfing, I found the address of the main site has changed.
As stackoverflow reported on https://stackoverflow.com/questions/21396508/yumrepo-error-all-mirror-urls-are-not-using-ftp-https-or-file
we have to modify /etc/yum.repos.d/CentOS-Base.repo (I suggest a backup copy, before).
For every repo in that file we must:
1) Comment out "mirrorlist" line
2) Uncomment "baseurl" line
3) Replace in "baseurl" line "mirror.centos.org/centos" with "vault.centos.org".
Yes, we change the address and omit a part of the path, rest of the URL remains unchanged. (also here I suggest to make a copy of the original line).
For example:
Code: Select all
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
baseurl=http://vault.centos.org/$releasever/updates/$basearch/


If we run again:
Code: Select all
# yum repolist


Most of the errors disappeared!
But it is not completely OK.
Scrolling down the same web page there is an admin still using CentOS 5.4 - an "ancient" version. He claims that substituting "$releasever" with "5.4" directly eliminates last errors.
So I did.

Code: Select all
#baseurl=http://vault.centos.org/$releasever/updates/$basearch/
baseurl=http://vault.centos.org/6.10/updates/$basearch/


And it works flawlessly!
Amministratore di sistemi Unix e DBA dal 1995
http://pepe.mi.bo.it/SITO_Curricula/CV_ ... efano.html
User avatar
stefanopederzani
 
Posts: 178
Joined: Tue Sep 18, 2012 12:43 am
Location: Bologna

Re: New vault for CentOS older releases

Postby stefanopederzani » Thu Dec 17, 2020 4:20 pm

Now I add in my second post some little helps more.

I personally cannot do a "yum update" from command line, because I cannot update neither Firefox nor Thunderbird for an alleged problem tied to my video board, too long to explain here.
But if you use to do so, "yum update" is what to do next, as well.

Personally I have to run the update via the graphic app, that is from the menu in the top left bar of the desktop: System->Administration->Software Update.
There I can uncheck FF and TB and start the update.
I noticed that everything was very faster than the last time it worked on the older servers.
I suspect the mirrorsite has gone disappearing slowly and relentlessly, until today when there are only the new ones. Maybe in the last days the search in the list of mirror was slowing the update.

Hope it helped!
Amministratore di sistemi Unix e DBA dal 1995
http://pepe.mi.bo.it/SITO_Curricula/CV_ ... efano.html
User avatar
stefanopederzani
 
Posts: 178
Joined: Tue Sep 18, 2012 12:43 am
Location: Bologna


Return to Server Linux - Servidores Linux - Linux servers



Who is online

Users browsing this forum: YandexBot and 2 guests





CV di Stefano Pederzani




I come Informatica - I como Informática - I for Information Technology
Vai al PORTALE - Ir a el PORTAL - Go to PORTAL
Stefano Pederzani
Consulenze informatiche Bologna
Automatic barriers and access control
Barriere stradali e controllo accessi
MMS IMPIANTI
Cablaggio strutturato - telefonia
Elettricità - climatizzazione