How to Resolve Yum Command FTP Errors on IBM i
While installing packages from IBM’s original open source repository, ibm
, users may encounter errors, including:
- [Errno 12] Timeout on: ftp://public.dhe.ibm.com/software/ibmi/products/pase/rpms/repo/repodata/repomd.xml: (28, ‘Connection time-out’) Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: ibm. Please verify its path and try again.
If you get similar errors containing FTP
or ftp
in the text, you can get past them by changing from ftp to https. Explanation: IBM originally chose the ftp protocol for its repositories, but later enabled https, which proved more reliable.
How to update your IBM i repository from ftp to https
- Edit the IBM repository configuration file:
/qopensys/etc/yum/repos.d/ibm.repo
and change the value of baseurl, replacingftp://
withhttps://
. - The line will now read:
baseurl=https://public.dhe.ibm.com/software/ibmi/products/pase/rpms/repo
- From a PASE terminal such as SSH, run the “yum clean all” command:
/QOpenSys/pkgs/bin/yum clean all
Now you can try your Yum or RPM command again.
We don’t have a file /qopensys/etc/yum/repos.d/ibm.repo
In the /QOpenSys/etc/yum/repos.d folder, we have four files:
ibmi-base.repo
ibmi-base-unsecure.repo
ibmi-release.repo
ibmi-release-unsecure.repo
All of them are using https.
Glenn, excellent. That means you have the new repositories and not the old one. Are you somehow getting an FTP error? Please reply with the actual error if you are.