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.
  • [​Errno 14] FTP Error 451 – server did not report OK, got 451 Trying other mirror
  • [Errno 14] FTP Error 550 – Access denied: 550 Trying other mirror

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

  1. Edit the IBM repository configuration file:
    /qopensys/etc/yum/repos.d/ibm.repo
    and change the value of baseurl, replacing ftp:// with https://.
  2. The line will now read:
    baseurl=https://public.dhe.ibm.com/software/ibmi/products/pase/rpms/repo
  3. 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.

2 replies
  1. Glenn Gundermann
    Glenn Gundermann says:

    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.

    Reply
    • Alan Seiden
      Alan Seiden says:

      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.

      Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.