Page 1 of 1
upgrade fails: no more mirrors to try
Posted: Mon May 18, 2020 4:40 am
by Bart_Decloedt
Hello,
I am trying to upgrade nagiosxi from version 5.2.3 to the current version on CentOS Linux 7 (Core) but get stuck on the following error:
Error downloading packages:
php-imap-5.4.16-7.el7.x86_64: [Errno 256] No more mirrors to try.
It seems that all the known links are down for this specific package. What steps should i take in order to perform the upgrade? I know the package can still be found online, should i download and install it manually in a specific folder?
Kind regards,
Re: upgrade fails: no more mirrors to try
Posted: Mon May 18, 2020 12:17 pm
by benjaminsmith
Hi,
Ok, let's get this resolved for you. It might be a connection issue to the repository or a corrupted yum cache. Please run the following command:
and then try running the upgrade once more. If it fails again, post the whole output to the thread along with the output of the following command.
Benjamin
Re: upgrade fails: no more mirrors to try
Posted: Tue May 26, 2020 10:09 am
by Bart_Decloedt
Hi,
That indeed cleared that message.
Sadly enough I now get this one instead:
"Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again"
As for the entire output, since I am performing the upgrade from a ssh terminal i cannot post the entire output. I have added everything i could below, i get this both when I perform the upgrade and when i run the yum command.
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. Disable the repository, 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>
4. 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 retrieve metalink for repository: epel/x86_64. Please verify its path and try again
Re: upgrade fails: no more mirrors to try
Posted: Tue May 26, 2020 3:59 pm
by benjaminsmith
Hello
@Bart_Decloedt,
"Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again"
Trying editing the
vi /etc/yum.repos.d/epel.repo configuration file and change the repo address from https to http and run the upgrade once more.
If you encounter any errors, please post them to thread along with the output of
yum repolist -v. Thanks.
Reference:
https://support.nagios.com/forum/viewto ... 16&t=47223
https://support.nagios.com/forum/viewto ... =6&t=53567
https://stackoverflow.com/questions/267 ... y-its-path
Re: upgrade fails: no more mirrors to try
Posted: Thu May 28, 2020 1:36 am
by Bart_Decloedt
Hello Benjamin,
Your last recommendation did the trick so thanks for your help.
Kind Regards,
Bart
Re: upgrade fails: no more mirrors to try
Posted: Thu May 28, 2020 6:45 am
by scottwilkerson
Bart_Decloedt wrote:Hello Benjamin,
Your last recommendation did the trick so thanks for your help.
Kind Regards,
Bart
Great!
Locking thread