AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  Getting this error when running dnf update. Help!

    Posted 25 days ago
    Edited by Sasi Chand 25 days ago

    AIX 73 (7300-01-02-2319)

    dnf-4.2.17-64_7.noarch - Downloading successful, but checksum doesn't match.

    Downloading Packages:
    [MIRROR] cyrus-sasl-2.1.28-1.aix6.1.ppc.rpm: Downloading successful, but checksum doesn't match. Calculated: f2b171ff8a501cadf0dbffb26d202a03863f07863fd2d1e3975ded4b126d3575(sha256) Expected: 50d1fb143174409fb16d3a3677d21978c6add32404333fc6cd120fa04dfd1d63(sha256)
    [MIRROR] cyrus-sasl-2.1.28-1.aix6.1.ppc.rpm: Downloading successful, but checksum doesn't match. Calculated: f2b171ff8a501cadf0dbffb26d202a03863f07863fd2d1e3975ded4b126d3575(sha256) Expected: 50d1fb143174409fb16d3a3677d21978c6add32404333fc6cd120fa04dfd1d63(sha256)
    [MIRROR] cyrus-sasl-2.1.28-1.aix6.1.ppc.rpm: Downloading successful, but checksum doesn't match. Calculated: f2b171ff8a501cadf0dbffb26d202a03863f07863fd2d1e3975ded4b126d3575(sha256) Expected: 50d1fb143174409fb16d3a3677d21978c6add32404333fc6cd120fa04dfd1d63(sha256)
    [MIRROR] cyrus-sasl-2.1.28-1.aix6.1.ppc.rpm: Downloading successful, but checksum doesn't match. Calculated: f2b171ff8a501cadf0dbffb26d202a03863f07863fd2d1e3975ded4b126d3575(sha256) Expected: 50d1fb143174409fb16d3a3677d21978c6add32404333fc6cd120fa04dfd1d63(sha256)
    [FAILED] cyrus-sasl-2.1.28-1.aix6.1.ppc.rpm: No more mirrors to try - All mirrors were already tried without success
    (2-3/24): gettext-0.21-2.aix7.1.ppc.rpm 13% [======- ] 56 MB/s | 13 MB 00:01 ETA
    Error: Error downloading packages:
    Cannot download cyrus-sasl/cyrus-sasl-2.1.28-1.aix6.1.ppc.rpm: All mirrors were tried

    DNF.CONF file

    bash-5.1# cat dnf.conf
    [main]
    cachedir=/var/cache/dnf
    keepcache=1
    debuglevel=2
    logfile=/var/log/dnf.log
    obsoletes=1
    plugins=1
    gpgkey=file:///opt/freeware/etc/dnf/RPM-GPG-KEY-IBM-AIX-Toolbox
    gpgcheck=1
    installonly_limit=3
    clean_requirements_on_remove=True
    best=True
    skip_if_unavailable=True
    sslcacert=
     
    [AIX_Toolbox]
    name=AIX generic repository
    sslcacert=
    baseurl=http://xxxxxxxx/build/aixtoolbox/repo/AIX_Toolbox/
    gpgkey=file:///opt/freeware/etc/dnf/RPM-GPG-KEY-IBM-AIX-Toolbox
    gpgcheck=1
    enabled=1
     
    [AIX_Toolbox_noarch]
    sslcacert=
    name=AIX noarch repository
    baseurl=http://xxxxxxxx/build/aixtoolbox/repo/AIX_Toolbox_noarch
    gpgkey=file:///opt/freeware/etc/dnf/RPM-GPG-KEY-IBM-AIX-Toolbox
    gpgcheck=1
    enabled=1
     
    [AIX_Toolbox_71]
    sslcacert=
    name=AIX 7.1 specific repository
    gpgkey=file:///opt/freeware/etc/dnf/RPM-GPG-KEY-IBM-AIX-Toolbox
    gpgcheck=1
    enabled=1
     
    [AIX_Toolbox_72]
    sslcacert=
    name=AIX 7.2 specific repository
    gpgkey=file:///opt/freeware/etc/dnf/RPM-GPG-KEY-IBM-AIX-Toolbox
    gpgcheck=1
    enabled=1
     
    [AIX_Toolbox_73]
    sslcacert=
    name=AIX 7.3 specific repository
    baseurl=http://xxxxxxxx/build/aixtoolbox/repo/AIX_Toolbox_73
    gpgkey=file:///opt/freeware/etc/dnf/RPM-GPG-KEY-IBM-AIX-Toolbox
    gpgcheck=1
    enabled=1



    ------------------------------
    Sasi Chand
    Humble - Engineer
    Freelance
    Wellington
    New Zealand
    ------------------------------



  • 2.  RE: Getting this error when running dnf update. Help!

    Posted 25 days ago

    Further to Sasi's comment, I have discovered that what's happening is in /var/cache/dnf there is a file called expired_repos.json :
     
    ["AIX_Toolbox"]
     
    This is where the files we want to install are. I've tried removing the file editing it but whenever I do a "dnf <SOMETHING>" command, the file keeps coming back and resetting that entry to the above. I can't find a way making that repo unexpired or stopping that file getting created. Maybe a dnf bug.



    ------------------------------
    Andrew Goldie
    ------------------------------



  • 3.  RE: Getting this error when running dnf update. Help!

    Posted 24 days ago

    Update.

    We got it working again

    Fix

    1. Deleted all files in the local repositories
    2. Re sync the repos

    Question: 

    When running dnf update we encountered this error:

    Error: Failed to download metadata for repo AIX Toolbox/repodata/repomd.xml

    Had to download this repodata/* for each repo than dnf update worked fine.

    Is there a process to sync this repodata/ dir during the reposync process?

    Sasi



    ------------------------------
    Sasi Chand
    Humble - Engineer
    Freelance
    Wellington
    New Zealand
    ------------------------------