Are you stuck with the error ‘Cannot find a valid baseurl for repo: ius’ while upgrading SolusVM to a new version with PHP 7.3? Don’t worry, We can help!
Here at Bobcares, we often handle requests from our customers to fix similar SolusVM upgrade errors.
Today, let see how our Support Engineers fix this as a part of our Server Management Services.
“Cannot find a valid baseurl for repo: ius” error
Our Solusvm users often report to us that they are facing issues while trying to manually upgrading SolusVM to a new version with PHP 7.3. One of the errors that we noticed recently is :
Something went wrong, check /var/log/yum.log
Also, when trying to install the SolusVM repo, we see the following error :
# yum install solusvm-release
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
epel/metalink | 16 kB 00:00
Could not retrieve mirrorlist https://mirrors.iuscommunity.org/mirrorlist?repo=ius-centos6&arch=x86_64&protocol=http error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.iuscommunity.org'"
Error: Cannot find a valid baseurl for repo: ius
While troubleshooting this error, our Support Engineers found that this issue is due to the unavailability of the repository ius.
The IUS Repository is a yum repository that provides the latest upstream versions of selected software, such as PHP, Python, MySQL, MariaDB, Kit, Redis. IUS stands for Inline With Upstream Stable.
How to Fix this error
Let us see the steps followed by our support engineers to resolve this error for our customers.
- Firstly, connect the affected node via SSH.
- Then disable the repository by setting the directive enabled=0 in /etc/yum.repos.d/ius.repo file.
- Save the changes and close the file.
- Finally, run the upgrade once again:
# /bin/bash /usr/local/solusvm/tmp/update/php_updater.sh
[Need help to resolve solusvm related errors? We’d be happy to assist]
Conclusion
In short, today we saw the steps followed by our Support Techs to resolve the error ‘Cannot find a valid baseurl for repo: ius’ while upgrading SolusVM to a new version with PHP 7.3.
0 Comments