Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
Expand all | Collapse all

error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

  • 1.  error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

    Posted Mon January 22, 2024 04:01 PM

    Hi,

    was migrating to AIX 7.3. yum was previously installed on AIX 7.2 and updated to dnf with -y. When I tried to update dnf on AIX 7.3 to 64 with -y I got

    Verifying...                          ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:libsolv-0.7.9-64_4               ################################# [  4%]
       2:rpm-python3.9-4.15.1-64_4        ################################# [  8%]
       3:rpm-python3-4.15.1-64_4          ################################# [ 12%]
       4:libdnf-0.39.1-64_5               ################################# [ 15%]
       5:python3.9-libdnf-0.39.1-64_5     ################################# [ 19%]
       6:python3.9-hawkey-0.39.1-64_5     ################################# [ 23%]
       7:dnf-data-4.2.17-64_6             ################################# [ 27%]
       8:python3.9-dnf-4.2.17-64_6        ################################# [ 31%]
       9:python3-dnf-4.2.17-64_6          ################################# [ 35%]
      10:dnf-4.2.17-64_6                  ################################# [ 38%]
    error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory
    error: dnf-4.2.17-64_6.noarch: install failed
      11:dnf-automatic-4.2.17-64_6        ################################# [ 42%]
      12:python3-hawkey-0.39.1-64_5       ################################# [ 46%]
      13:python3-libdnf-0.39.1-64_5       ################################# [ 50%]
    Cleaning up / removing...
      14:python3-libdnf-0.39.1-32_52      ################################# [ 54%]
      15:python3-hawkey-0.39.1-32_52      ################################# [ 58%]
      16:dnf-automatic-4.2.17-32_51       ################################# [ 62%]
    error: dnf-4.2.17-32_51.ppc: erase skipped
      17:python3-dnf-4.2.17-32_51         ################################# [ 65%]
      18:python3.9-dnf-4.2.17-32_51       ################################# [ 69%]
      19:python3.9-hawkey-0.39.1-32_52    ################################# [ 73%]
      20:python3.9-libdnf-0.39.1-32_52    ################################# [ 77%]
      21:libdnf-0.39.1-32_52              ################################# [ 81%]
      22:rpm-python3-4.15.1-32_2          ################################# [ 85%]
      23:rpm-python3.9-4.15.1-32_2        ################################# [ 88%]
      24:libsolv-0.7.9-32_53              ################################# [ 92%]
      25:dnf-data-4.2.17-32_51            ################################# [ 96%]

    dnf installation failed.

    and when I re-run it

    kipping ca-certificates-2023.2.60-0 as higher version ca-certificates-2023.2.60-2.ppc is installed.
    dnf-4.2.17-32_51.ppc will be updated to dnf-4.2.17-64_6
    dnf-automatic-4.2.17-64_6 is already installed
    dnf-data-4.2.17-64_6 is already installed
    Skipping libcomps-0.1.15-64_1 as higher version libcomps-0.1.15-101.ppc is installed.
    libdnf-0.39.1-64_5 is already installed
    Skipping libmodulemd-1.5.2-64_2 as higher version libmodulemd-1.5.2-100.ppc is installed.
    Skipping librepo-1.11.0-64_2 as higher version librepo-1.11.0-103.ppc is installed.
    Skipping libsmartcols-2.34-64_1 as higher version libsmartcols-2.34-101.ppc is installed.
    libsolv-0.7.9-64_4 is already installed
    Skipping libzstd-1.4.4-64_2 as higher version libzstd-1.5.2-2.ppc is installed.
    Skipping p11-kit-0.23.22-0 as higher version p11-kit-0.24.1-1.ppc is installed.
    Skipping p11-kit-tools-0.23.22-0 as higher version p11-kit-tools-0.24.1-1.ppc is installed.
    Skipping python3-3.9.16-0 as higher version python3-3.9.18-1.ppc is installed.
    Skipping python3-devel-3.9.16-0 as higher version python3-devel-3.9.18-1.ppc is installed.
    python3-dnf-4.2.17-64_6 is already installed
    Skipping python3-gpg-1.13.1-64_3 as higher version python3-gpg-1.13.1-101.ppc is installed.
    python3-hawkey-0.39.1-64_5 is already installed
    Skipping python3-libcomps-0.1.15-64_1 as higher version python3-libcomps-0.1.15-101.ppc is installed.
    python3-libdnf-0.39.1-64_5 is already installed
    Skipping python3-librepo-1.11.0-64_2 as higher version python3-librepo-1.11.0-103.ppc is installed.
    Skipping python3.9-3.9.16-0 as higher version python3.9-3.9.18-1.ppc is installed.
    Skipping python3.9-devel-3.9.16-0 as higher version python3.9-devel-3.9.18-1.ppc is installed.
    python3.9-dnf-4.2.17-64_6 is already installed
    Skipping python3.9-gpg-1.13.1-64_3 as higher version python3.9-gpg-1.13.1-101.ppc is installed.
    python3.9-hawkey-0.39.1-64_5 is already installed
    Skipping python3.9-libcomps-0.1.15-64_1 as higher version python3.9-libcomps-0.1.15-101.ppc is installed.
    python3.9-libdnf-0.39.1-64_5 is already installed
    Skipping python3.9-librepo-1.11.0-64_2 as higher version python3.9-librepo-1.11.0-103.ppc is installed.
    rpm-python3-4.15.1-64_4 is already installed
    rpm-python3.9-4.15.1-64_4 is already installed
    Skipping zchunk-libs-1.1.4-64_3 as higher version zchunk-libs-1.1.4-103.ppc is installed.

    Installing the packages...

    Verifying...                          ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:dnf-4.2.17-64_6                  ################################# [ 50%]
    error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aecacd: cpio: utime failed - No such file or directory
    error: dnf-4.2.17-64_6.noarch: install failed
    error: dnf-4.2.17-32_51.ppc: erase skipped

    Any idea? I could run dnf update and it did update some packages, but I cant get that dnf 32 updated to 64.

    ls -l /opt/freeware/bin/dnf
    lrwxrwxrwx    1 root     system           23 Jan 22 21:35 /opt/freeware/bin/dnf -> /opt/freeware/bin/dnf-3
    ls -l /opt/freeware/bin/dnf-3
    -rwxr-xr-x    1 root     system         2022 Apr 28 2023  /opt/freeware/bin/dnf-3

    rpm -qa
    pci.df1000fd-0002-271304-1.noarch
    python-iniparse-0.4-1.noarch
    yum-metadata-parser-1.1.4-2.ppc
    libconfuse-3.2.2-2.ppc
    ganglia-gmond-3.7.2-2.ppc
    ganglia-mod_aixdisk-3.7.2-1.ppc
    libidn-1.28-1.ppc
    libsigsegv-2.10-1.ppc
    nrpe-2.14-1.ppc
    cfengine-community-3.6.6-0.ppc
    pkg-config-0.29.2-2.ppc
    cups-libs-2.2.3-3.ppc
    cups-2.2.3-3.ppc
    unzip-6.0-3.ppc
    ganglia-mod_ibmrperf-3.7.2-1.ppc
    ganglia-mod_ibmnet-3.7.2-1.ppc
    dm-mettleci-workbench-1.0-1165.noarch
    bzip2-1.0.8-2.ppc
    libgcc8-8.3.0-6.ppc
    libstdc++8-8.3.0-6.ppc
    gmp-6.2.1-1.ppc
    libmpc-1.2.1-1.ppc
    libgfortran8-8.3.0-6.ppc
    blas-3.9.1-1.ppc
    zeromq-4.3.4-1.ppc
    zeromq-devel-4.3.4-1.ppc
    pcre-8.44-2.ppc
    unrar-5.9.2-1.ppc
    libgomp8-8.3.0-6.ppc
    openblas-0.3.18-1.ppc
    blas-devel-3.9.1-1.ppc
    libXrender-0.9.8-3waixX11.ppc
    libdbi-0.9.0-1.ppc
    pysqlite-2.8.3-2.ppc
    gtk2-2.24.30-3waixX11.ppc
    libunistring-0.9.10-1.ppc
    screen-4.7.0-1.ppc
    oniguruma-6.9.6-1.ppc
    dos2unix-7.4.1-1.ppc
    libgcc10-10.3.0-6.ppc
    zlib-1.2.13-1.ppc
    xz-libs-5.4.3-1.ppc
    libffi-3.4.4-2.ppc
    libstdc++-10-2.ppc
    file-libs-5.41-1.ppc
    libtasn1-4.19.0-1.ppc
    file-5.41-1.ppc
    xz-devel-5.4.3-1.ppc
    freetype2-2.12.1-1.ppc
    libjpeg-9e-1.ppc
    libgomp10-10.3.0-6.ppc
    libtextstyle-0.21-2.ppc
    libxml2-2.10.4-1.ppc
    gettext-0.21-2.ppc
    bash-5.2.15-1.ppc
    readline-8.2-1.ppc
    gcc10-10.3.0-6.ppc
    apr-1.7.4-1.ppc
    python3.9-3.9.18-1.ppc
    apr-util-1.6.3-2.ppc
    libgcrypt-1.10.2-1.ppc
    fontconfig-2.14.2-1.ppc
    gnutls-3.7.9-1.ppc
    ca-certificates-2023.2.60-2.ppc
    libxslt-1.1.37-2.ppc
    libgcrypt-devel-1.10.2-1.ppc
    subversion-1.10.8-2.ppc
    python3-devel-3.9.18-1.ppc
    gcc-10-2.ppc
    coreutils-9.3-1.ppc
    samba-devel-4.18.9-1.ppc
    samba-winbind-4.18.9-1.ppc
    samba-libs-4.18.9-1.ppc
    harfbuzz-7.1.0-1.ppc
    libxml2-devel-2.10.4-1.ppc
    libjpeg-devel-9e-1.ppc
    libzstd-devel-1.5.2-2.ppc
    libgfortran-10-2.ppc
    libnghttp2-1.55.1-1.ppc
    cmake-3.26.4-2.ppc
    libgfortran10-10.3.0-6.ppc
    pixman-0.42.2-1.ppc
    libtiff-devel-4.6.0-1.ppc
    gcc-gfortran-10-2.ppc
    curl-devel-8.4.0-1.ppc
    tk-8.6.13-1.ppc
    samba-4.18.9-1.ppc
    python3.7-devel-3.7.16-1.ppc
    python-tools-2.7.18-4.ppc
    perl-5.34.1-2.ppc
    gawk-5.2.2-1.ppc
    grep-3.7-2.ppc
    libtool-ltdl-2.4.7-1.ppc
    xz-5.4.3-1.ppc
    sudo-1.9.13p2-2.ppc
    libpng-devel-1.6.37-1.ppc
    dbus-1.14.8-1.ppc
    python3.9-six-1.13.0-2.noarch
    libassuan-2.5.5-1.ppc
    check-0.13.0-1.ppc
    python3.9-libcomps-0.1.15-101.ppc
    libyaml-0.2.5-1.ppc
    libksba-1.6.3-1.ppc
    gpgme-1.13.1-101.ppc
    dnf-4.2.17-32_51.ppc
    python3-librepo-1.11.0-103.ppc
    python3-gpg-1.13.1-101.ppc
    libcroco-0.6.5-1.ppc
    glib-1.2.10-2.ppc
    lzo-2.10-2.ppc
    libXft-2.3.2-4waixX11.ppc
    libart_lgpl-2.3.21-2.ppc
    ganglia-mod_ibmfc-3.7.2-1.ppc
    ganglia-mod_ibmpower-3.7.2-1.ppc
    python-urlgrabber-3.10.1-1.noarch
    shared-mime-info-1.6-2.ppc
    atk-2.20.0-3.ppc
    cairo-1.14.6-2waixX11.ppc
    ganglia-lib-3.7.2-2.ppc
    ganglia-mod_ibmame-3.7.2-1.ppc
    ganglia-mod_ibmams-3.7.2-1.ppc
    serf-1.3.9-2.ppc
    jq-1.6-1.ppc
    dm-unittest-harness-1.0-326.noarch
    zip-3.0-4.ppc
    mpfr-4.1.0-1.ppc
    db-5.3.28-1.ppc
    lapack-3.9.1-1.ppc
    mpfr-devel-4.1.0-1.ppc
    libwebp-1.0.2-1.ppc
    jbigkit-libs-2.1-1.ppc
    jbigkit-devel-2.1-1.ppc
    cyrus-sasl-2.1.28-1.ppc
    openblas-devel-0.3.18-1.ppc
    lapack-devel-3.9.1-1.ppc
    nettle-3.7.3-1.ppc
    gdk-pixbuf-2.35.1-3waixX11.ppc
    nagios-plugins-2.3.3-1.ppc
    expect-5.45.4-2.ppc
    tar-1.33-1.ppc
    unixODBC-2.3.9-1.ppc
    sed-4.8-1.ppc
    bzip2-devel-1.0.8-2.ppc
    libgcc-10-2.ppc
    expat-2.5.0-1.ppc
    openldap-2.5.16-1.ppc
    libstdc++10-10.3.0-6.ppc
    ncurses-6.4-1.ppc
    zlib-devel-1.2.13-1.ppc
    libzstd-1.5.2-2.ppc
    libstdc++10-devel-10.3.0-6.ppc
    libpng-1.6.37-1.ppc
    libssh2-1.10.0-2.ppc
    pcre2-10.40-1.ppc
    libgomp-10-2.ppc
    glib2-2.76.3-1.ppc
    libiconv-1.17-1.ppc
    popt-1.19-1.ppc
    info-7.0.2-1.ppc
    sqlite-3.41.2-1.ppc
    gcc10-cpp-10.3.0-6.ppc
    gdbm-1.23-1.ppc
    python-2.7.18-4.ppc
    libgpg-error-1.45-1.ppc
    python3-3.9.18-1.ppc
    p11-kit-0.24.1-1.ppc
    p11-kit-tools-0.24.1-1.ppc
    python3.7-3.7.16-1.ppc
    libgpg-error-devel-1.45-1.ppc
    httpd-2.4.58-1.ppc
    python3.9-devel-3.9.18-1.ppc
    gcc-cpp-10-2.ppc
    gcc10-c++-10.3.0-6.ppc
    libsmbclient-4.18.9-1.ppc
    samba-winbind-clients-4.18.9-1.ppc
    samba-common-4.18.9-1.ppc
    samba-client-4.18.9-1.ppc
    krb5-libs-1.21.2-1.ppc
    libtiff-4.6.0-1.ppc
    libssh2-devel-1.10.0-2.ppc
    tcl-8.6.13-1.ppc
    lz4-1.9.3-1.ppc
    curl-8.4.0-1.ppc
    cmake-data-3.26.4-2.ppc
    gcc10-gfortran-10.3.0-6.ppc
    libwebp-devel-1.0.2-1.ppc
    pango-1.40.1-3waixX11.ppc
    python-pycurl-7.43.0.5-1.ppc
    rsync-3.2.7-1.ppc
    libxslt-devel-1.1.37-2.ppc
    gcc-c++-10-2.ppc
    mod_dav_svn-1.10.8-2.ppc
    python-devel-2.7.18-4.ppc
    sqlite-devel-3.41.2-1.ppc
    readline-devel-8.2-1.ppc
    libffi-devel-3.4.4-2.ppc
    wget-1.21.4-1.ppc
    logrotate-3.20.1-1.ppc
    freetype2-devel-2.12.1-1.ppc
    libstdc++-devel-10-2.ppc
    less-598-1.ppc
    python3.9-dateutil-2.8.0-2.noarch
    python3-six-1.13.0-2.noarch
    python3-dateutil-2.8.0-2.noarch
    zchunk-libs-1.1.4-103.ppc
    libsmartcols-2.34-101.ppc
    json-c-0.15-2.ppc
    pinentry-1.0.0-1.ppc
    libcomps-0.1.15-101.ppc
    npth-1.5-1.ppc
    libmodulemd-1.5.2-100.ppc
    gnupg2-2.4.3-1.ppc
    librepo-1.11.0-103.ppc
    python3.9-gpg-1.13.1-101.ppc
    python3.9-librepo-1.11.0-103.ppc
    python3-libcomps-0.1.15-101.ppc
    rpm-python3.9-4.15.1-64_4.ppc
    rpm-python3-4.15.1-64_4.ppc
    AIX-rpm-7.3.2.1-24.ppc
    gcc8-cpp-8.3.0-7.ppc
    gcc8-8.3.0-7.ppc
    libsolv-0.7.9-64_52.ppc
    libdnf-0.39.1-64_52.ppc
    python3.9-libdnf-0.39.1-64_52.ppc
    python3.9-hawkey-0.39.1-64_52.ppc
    libstdc++8-devel-8.3.0-7.ppc
    dnf-data-4.2.17-64_53.ppc
    python3.9-dnf-4.2.17-64_53.ppc
    python3.9-dnf-plugins-core-4.0.16-64_52.ppc
    python3.9-dnf-plugin-migrate-4.0.16-64_52.ppc
    python3-dnf-4.2.17-64_53.ppc
    dnf-automatic-4.2.17-64_53.ppc
    python3-dnf-plugin-migrate-4.0.16-64_52.ppc
    python3-dnf-plugins-core-4.0.16-64_52.ppc
    gcc8-gfortran-8.3.0-7.ppc
    gcc8-c++-8.3.0-7.ppc
    python3-hawkey-0.39.1-64_52.ppc
    python3-libdnf-0.39.1-64_52.ppc

    Thanks,



    ------------------------------
    Martin Boban
    ------------------------------

    #AIXOpenSource


  • 2.  RE: error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

    Posted Tue January 23, 2024 08:25 AM

    Hi Martin,

    You can verify the checksum of dnf rpm.

    Not sure if  during download of dnf bundle there was any issue with the space.

    You can try downloading the bundle again with having sufficient space.



    ------------------------------
    SANGAMESH
    ------------------------------



  • 3.  RE: error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

    Posted Mon January 29, 2024 09:45 AM
    Edited by Martin Boban Mon January 29, 2024 09:45 AM

    Hi Sangamesh, Thank you for answer. Packages are fine as I can use them on test lpar. For this case I ended up by removing all with https://community.ibm.com/community/user/power/blogs/jan-harris1/2022/05/25/destroyrpms

    then run in to this .....

    1. I removed all rpms and installed RPM version 4.15.1.2009
    2. update that rpm to 4.18.1.2001 (coming from 7300-02-01-2346)
    3. clean dnf install gives:

    Installing rpm.rte at the latest version ...
    This may take several minutes depending on the number of rpms installed...
    +-----------------------------------------------------------------------------+
                        Pre-installation Verification...
    +-----------------------------------------------------------------------------+
    Verifying selections...done
    Verifying requisites...done
    Results...

    WARNINGS
    --------
      Problems described in this section are not likely to be the source of any
      immediate or serious failures, but further actions may be necessary or
      desired.

      Already Installed
      -----------------
      The number of selected filesets that are either already installed
      or effectively installed through superseding filesets is 1.  See
      the summaries at the end of this installation for details.

      NOTE:  Base level filesets may be reinstalled using the "Force"
      option (-F flag), or they may be removed, using the deinstall or
      "Remove Software Products" facility (-u flag), and then reinstalled.

      << End of Warning Section >>

    +-----------------------------------------------------------------------------+
                       BUILDDATE Verification ...
    +-----------------------------------------------------------------------------+
    Verifying build dates...done
    FILESET STATISTICS
    ------------------
        1  Selected to be installed, of which:
            1  Already installed (directly or via superseding filesets)
      ----
        0  Total to be installed


    Pre-installation Failure/Warning Summary
    ----------------------------------------
    Name                      Level           Pre-installation Failure/Warning
    -------------------------------------------------------------------------------
    rpm.rte                   4.15.1.2009     Already superseded by 4.18.1.2001

    Checking whether any of the rpms from dnf_bundle are already installed...
    Takes couple of minutes to process.

    ca-certificates-2023.2.60-0 will be installed
    dnf-4.2.17-64_6 will be installed
    dnf-automatic-4.2.17-64_6 will be installed
    dnf-data-4.2.17-64_6 will be installed
    libcomps-0.1.15-64_1 will be installed
    libdnf-0.39.1-64_5 will be installed
    libmodulemd-1.5.2-64_2 will be installed
    librepo-1.11.0-64_2 will be installed
    libsmartcols-2.34-64_1 will be installed
    libsolv-0.7.9-64_4 will be installed
    libzstd-1.4.4-64_2 will be installed
    p11-kit-0.23.22-0 will be installed
    p11-kit-tools-0.23.22-0 will be installed
    python3-3.9.16-0 will be installed
    python3-dnf-4.2.17-64_6 will be installed
    python3-gpg-1.13.1-64_3 will be installed
    python3-hawkey-0.39.1-64_5 will be installed
    python3-libcomps-0.1.15-64_1 will be installed
    python3-libdnf-0.39.1-64_5 will be installed
    python3-librepo-1.11.0-64_2 will be installed
    python3.9-3.9.16-0 will be installed
    python3.9-dnf-4.2.17-64_6 will be installed
    python3.9-gpg-1.13.1-64_3 will be installed
    python3.9-hawkey-0.39.1-64_5 will be installed
    python3.9-libcomps-0.1.15-64_1 will be installed
    python3.9-libdnf-0.39.1-64_5 will be installed
    python3.9-librepo-1.11.0-64_2 will be installed
    rpm-python3-4.15.1-64_4 will be installed
    rpm-python3.9-4.15.1-64_4 will be installed
    zchunk-libs-1.1.4-64_3 will be installed

    Installing the packages...

    Verifying...                          ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:python3.9-3.9.16-0               ################################# [  3%]
    error: unpacking of archive failed on file /opt/freeware/lib/python3.9/config;65b7aa39: cpio: utime failed - No such file or directory
    error: python3.9-3.9.16-0.ppc: install failed
       2:python3-3.9.16-0                 ################################# [  7%]
    error: unpacking of archive failed on file /opt/freeware/bin/pydoc3;65b7aa39: cpio: utime failed - No such file or directory
    error: python3-3.9.16-0.ppc: install failed
       3:libzstd-1.4.4-64_2               ################################# [ 10%]
       4:libmodulemd-1.5.2-64_2           ################################# [ 13%]
       5:libsolv-0.7.9-64_4               ################################# [ 17%]
       6:libsmartcols-2.34-64_1           ################################# [ 20%]
       7:zchunk-libs-1.1.4-64_3           ################################# [ 23%]
       8:librepo-1.11.0-64_2              ################################# [ 27%]
       9:python3.9-gpg-1.13.1-64_3        ################################# [ 30%]
      10:rpm-python3.9-4.15.1-64_4        ################################# [ 33%]
      11:rpm-python3-4.15.1-64_4          ################################# [ 37%]
      12:libdnf-0.39.1-64_5               ################################# [ 40%]
      13:python3.9-libdnf-0.39.1-64_5     ################################# [ 43%]
      14:python3.9-hawkey-0.39.1-64_5     ################################# [ 47%]
      15:python3.9-librepo-1.11.0-64_2    ################################# [ 50%]
      16:p11-kit-0.23.22-0                ################################# [ 53%]
    error: unpacking of archive failed on file /opt/freeware/lib64/libp11-kit.a;65b7aa39: cpio: utime failed - No such file or directory
    error: p11-kit-0.23.22-0.ppc: install failed
      17:p11-kit-tools-0.23.22-0          ################################# [ 57%]
    error: unpacking of archive failed on file /opt/freeware/bin/p11-kit;65b7aa39: cpio: utime failed - No such file or directory
    error: p11-kit-tools-0.23.22-0.ppc: install failed
      18:libcomps-0.1.15-64_1             ################################# [ 60%]
      19:python3.9-libcomps-0.1.15-64_1   ################################# [ 63%]
      20:dnf-data-4.2.17-64_6             ################################# [ 67%]
      21:python3.9-dnf-4.2.17-64_6        ################################# [ 70%]
      22:python3-dnf-4.2.17-64_6          ################################# [ 73%]
      23:dnf-4.2.17-64_6                  ################################# [ 77%]
    error: unpacking of archive failed on file /opt/freeware/bin/dnf;65b7aa39: cpio: utime failed - No such file or directory
    error: dnf-4.2.17-64_6.noarch: install failed
      24:dnf-automatic-4.2.17-64_6        ################################# [ 80%]
      25:python3-libcomps-0.1.15-64_1     ################################# [ 83%]
      26:ca-certificates-2023.2.60-0      ################################# [ 87%]
    error: unpacking of archive failed on file /opt/freeware/share/pki/ca-trust-source/anchors/extracted;65b7aa39: cpio: utime failed - No such file or directory
    error: ca-certificates-2023.2.60-0.ppc: install failed
      27:python3-librepo-1.11.0-64_2      ################################# [ 90%]
      28:python3-hawkey-0.39.1-64_5       ################################# [ 93%]
      29:python3-libdnf-0.39.1-64_5       ################################# [ 97%]
      30:python3-gpg-1.13.1-64_3          ################################# [100%]

    dnf installation failed.

    If I do it, that I will clean install DNF with rpm version of 4.15.1.2009, that will work, as well dnf will work, but when I update that rpm to 4.18.1.2001 DNF will stop working and gives only when installing new packages:

    Traceback (most recent call last):

      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/main.py", line 65, in main

        return _main(base, args, cli_class, option_parser_class)

      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/main.py", line 98, in _main

        return cli_run(cli, base)

      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/main.py", line 122, in cli_run

        ret = resolving(cli, base)

      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/main.py", line 166, in resolving

        base.do_transaction(display=displays)

      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/cli.py", line 257, in do_transaction

        raise dnf.exceptions.Error(_('Transaction failed'))

    dnf.exceptions.Error: Transaction failed

    2024-01-29T11:49:20Z CRITICAL Error: Transaction failed

    Any idea?

    Thanks,



    ------------------------------
    Martin Boban
    ------------------------------



  • 4.  RE: error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

    Posted Thu February 01, 2024 10:27 AM

    Hi Martin

    I believe this you are trying in 7300-02 with 4.18.1.2001.

    One common pattern for the packages where we are seeing error is that they are all soft link.

    Can you please provide the below output  with any one of the package where we are seeing error ?

    1. /usr/opt/rpm/bin/rpm -Uvvh <pkg name>
    2. truss -t\!lseek,\!_sigaction,\!kioctl,\!kfcntl,\!checkpnt_block,\!getuidx,\!thread_setmymask_fast,\!thread_unlock,\!sigprocmask, -rALL -wALL  -feado /tmp/rpm.debug /usr/opt/rpm/bin/rpm -Uvvh <pkg name>


    ------------------------------
    SANGAMESH
    ------------------------------



  • 5.  RE: error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

    Posted Thu February 01, 2024 10:56 AM

    Hi Sangamesh,

    yes, it is 7300-02-01-2346 with 4.18.1.2001. When I'm on 7300-01-03-2346 with 4.15.1.2009 all works well ....

    Here is the output, same error "cpio: utime failed" for packages I have tried with your commands

    (0) root@nshore-aix-test: /mnt/dnfrepo/AIX_Toolbox/zip# /usr/opt/rpm/bin/rpm -Uvvh zip-3.0-4.aix6.1.ppc.rpm
    D: ============== zip-3.0-4.aix6.1.ppc.rpm
    D: loading keyring from rpmdb
    D: PRAGMA secure_delete = OFF: 0
    D: PRAGMA case_sensitive_like = ON: 0
    D: zip-3.0-4.aix6.1.ppc.rpm: Header SHA1 digest: OK
    D:      added binary package [0]
    D: found 0 source and 1 binary packages
    D: ========== +++ zip-3.0-4 ppc/aix6.1 0x0
    D:  read h#       6
    Header SHA1 digest: OK
    D:  Requires: bzip2 >= 1.0.8-2                              YES (db provides)
    D:  Requires: libbz2.a(libbz2.so.1)                         YES (db provides)
    D:  read h#      79
    Header SHA256 digest: OK
    Header SHA1 digest: OK
    D:  Requires: libc.a(shr.o)                                 YES (db provides)
    D:  Requires: rpmlib(CompressedFileNames) <= 3.0.4-1        YES (rpmlib provides)
    D:  Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1       YES (rpmlib provides)
    D: ========== recording tsort relations
    D: ========== tsorting packages (order, #predecessors, #succesors, depth)
    D:     0    0    0    1   +zip-3.0-4.ppc
    D: installing binary packages
    D: PRAGMA secure_delete = OFF: 0
    D: PRAGMA case_sensitive_like = ON: 0
    D: PRAGMA journal_mode = WAL: 0
    D: PRAGMA wal_autocheckpoint = 10000: 0
    D: CREATE INDEX IF NOT EXISTS 'Name_key_idx' ON 'Name'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Basenames_key_idx' ON 'Basenames'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Basenames_hnum_idx' ON 'Basenames'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Group_key_idx' ON 'Group'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Requirename_key_idx' ON 'Requirename'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Requirename_hnum_idx' ON 'Requirename'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Providename_key_idx' ON 'Providename'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Providename_hnum_idx' ON 'Providename'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Conflictname_key_idx' ON 'Conflictname'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Conflictname_hnum_idx' ON 'Conflictname'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Obsoletename_key_idx' ON 'Obsoletename'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Obsoletename_hnum_idx' ON 'Obsoletename'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Triggername_key_idx' ON 'Triggername'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Triggername_hnum_idx' ON 'Triggername'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Dirnames_key_idx' ON 'Dirnames'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Dirnames_hnum_idx' ON 'Dirnames'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Sha1header_key_idx' ON 'Sha1header'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Filetriggername_key_idx' ON 'Filetriggername'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Filetriggername_hnum_idx' ON 'Filetriggername'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Transfiletriggername_key_idx' ON 'Transfiletriggername'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Transfiletriggername_hnum_idx' ON 'Transfiletriggername'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Recommendname_key_idx' ON 'Recommendname'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Recommendname_hnum_idx' ON 'Recommendname'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Suggestname_key_idx' ON 'Suggestname'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Suggestname_hnum_idx' ON 'Suggestname'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Supplementname_key_idx' ON 'Supplementname'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Supplementname_hnum_idx' ON 'Supplementname'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Enhancename_key_idx' ON 'Enhancename'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Enhancename_hnum_idx' ON 'Enhancename'(hnum ASC): 0
    D: sanity checking 1 elements
    Verifying...                          ################################# [100%]
    D: running pre-transaction scripts
    D: computing 20 file fingerprints
    Preparing...                          D: computing file dispositions
    D: 0x00000009     4096      1969088      1754201 rotational:-1 /opt
    D: 0x00000005     4096      1002726       895710 rotational:-1 /usr
    ################################# [100%]
    D: ========== +++ zip-3.0-4 ppc-aix6.1 0x0
    D: zip-3.0-4.ppc: Header SHA1 digest: OK
    D:   install: zip-3.0-4.ppc has 20 files
    Updating / installing...
       1:zip-3.0-4                        D: create     100755  1 (   0,   0)243733 zip;65bbc0b9
    D: create     100755  1 (   0,   0)115141 zipcloak;65bbc0b9
    D: create     100755  1 (   0,   0)108837 zipnote;65bbc0b9
    D: create     100755  1 (   0,   0)111881 zipsplit;65bbc0b9
    D: create     040755  1 (   0,   0)     0 zip-3.0
    D: create     100644  1 (   0,   0)   356 BUGS;65bbc0b9
    D: create     100644  1 (   0,   0)210354 CHANGES;65bbc0b9
    D: create     100644  1 (   0,   0)  3412 LICENSE;65bbc0b9
    D: create     100644  1 (   0,   0) 12748 README;65bbc0b9
    D: create     100644  1 (   0,   0)  6675 TODO;65bbc0b9
    D: create     100644  1 (   0,   0) 15731 WHATSNEW;65bbc0b9
    D: create     100644  1 (   0,   0) 13167 WHERE;65bbc0b9
    D: create     100644  1 (   0,   0) 85502 zip.1;65bbc0b9
    D: create     100644  1 (   0,   0)  2014 zipcloak.1;65bbc0b9
    D: create     100644  1 (   0,   0)  1705 zipnote.1;65bbc0b9
    D: create     100644  1 (   0,   0)  1146 zipsplit.1;65bbc0b9
    D: create     120777  1 (   0,   0)    26 zip;65bbc0b9
    D: create     120777  1 (   0,   0)    31 zipcloak;65bbc0b9
    D: create     120777  1 (   0,   0)    30 zipnote;65bbc0b9
    D: create     120777  1 (   0,   0)    31 zipsplit;65bbc0b9
    ################################# [100%]
    error: unpacking of archive failed on file /usr/bin/zip;65bbc0b9: cpio: utime failed - A file or directory in the path name does not exist.
    error: zip-3.0-4.ppc: install failed
    D: running post-transaction scripts
    D: syncing all filesystems
    D: PRAGMA synchronous = FULL: 0
    D: PRAGMA optimize: 0
    D: PRAGMA wal_checkpoint = TRUNCATE: 0
    D: Exit status: 1

    (1) root@nshore-aix-test: /mnt/dnfrepo/AIX_Toolbox/zip# ls -l /usr/bin/zip
    ls: 0653-341 The file /usr/bin/zip does not exist.

    (0) root@nshore-aix-test: /mnt/dnfrepo/AIX_Toolbox/zip# hread_setmymask_fast,\!thread_unlock,\!sigprocmask, -rALL -wALL  -feado /tmp/rpm.debug /usr/opt/rpm/bin/rpm -Uvvh zip-3.0-4.aix6.1.ppc.rpm               <
    D: ============== zip-3.0-4.aix6.1.ppc.rpm
    D: loading keyring from rpmdb
    D: PRAGMA secure_delete = OFF: 0
    D: PRAGMA case_sensitive_like = ON: 0
    D: zip-3.0-4.aix6.1.ppc.rpm: Header SHA1 digest: OK
    D:      added binary package [0]
    D: found 0 source and 1 binary packages
    D: ========== +++ zip-3.0-4 ppc/aix6.1 0x0
    D:  read h#       6
    Header SHA1 digest: OK
    D:  Requires: bzip2 >= 1.0.8-2                              YES (db provides)
    D:  Requires: libbz2.a(libbz2.so.1)                         YES (db provides)
    D:  read h#      79
    Header SHA256 digest: OK
    Header SHA1 digest: OK
    D:  Requires: libc.a(shr.o)                                 YES (db provides)
    D:  Requires: rpmlib(CompressedFileNames) <= 3.0.4-1        YES (rpmlib provides)
    D:  Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1       YES (rpmlib provides)
    D: ========== recording tsort relations
    D: ========== tsorting packages (order, #predecessors, #succesors, depth)
    D:     0    0    0    1   +zip-3.0-4.ppc
    D: installing binary packages
    D: PRAGMA secure_delete = OFF: 0
    D: PRAGMA case_sensitive_like = ON: 0
    D: PRAGMA journal_mode = WAL: 0
    D: PRAGMA wal_autocheckpoint = 10000: 0
    D: CREATE INDEX IF NOT EXISTS 'Name_key_idx' ON 'Name'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Basenames_key_idx' ON 'Basenames'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Basenames_hnum_idx' ON 'Basenames'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Group_key_idx' ON 'Group'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Requirename_key_idx' ON 'Requirename'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Requirename_hnum_idx' ON 'Requirename'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Providename_key_idx' ON 'Providename'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Providename_hnum_idx' ON 'Providename'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Conflictname_key_idx' ON 'Conflictname'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Conflictname_hnum_idx' ON 'Conflictname'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Obsoletename_key_idx' ON 'Obsoletename'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Obsoletename_hnum_idx' ON 'Obsoletename'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Triggername_key_idx' ON 'Triggername'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Triggername_hnum_idx' ON 'Triggername'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Dirnames_key_idx' ON 'Dirnames'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Dirnames_hnum_idx' ON 'Dirnames'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Sha1header_key_idx' ON 'Sha1header'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Filetriggername_key_idx' ON 'Filetriggername'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Filetriggername_hnum_idx' ON 'Filetriggername'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Transfiletriggername_key_idx' ON 'Transfiletriggername'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Transfiletriggername_hnum_idx' ON 'Transfiletriggername'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Recommendname_key_idx' ON 'Recommendname'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Recommendname_hnum_idx' ON 'Recommendname'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Suggestname_key_idx' ON 'Suggestname'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Suggestname_hnum_idx' ON 'Suggestname'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Supplementname_key_idx' ON 'Supplementname'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Supplementname_hnum_idx' ON 'Supplementname'(hnum ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Enhancename_key_idx' ON 'Enhancename'(key ASC): 0
    D: CREATE INDEX IF NOT EXISTS 'Enhancename_hnum_idx' ON 'Enhancename'(hnum ASC): 0
    D: sanity checking 1 elements
    Verifying...                          ################################# [100%]
    D: running pre-transaction scripts
    D: computing 20 file fingerprints
    Preparing...                          D: computing file dispositions
    D: 0x00000009     4096      1969088      1754201 rotational:-1 /opt
    D: 0x00000005     4096      1002726       895710 rotational:-1 /usr
    ################################# [100%]
    D: ========== +++ zip-3.0-4 ppc-aix6.1 0x0
    D: zip-3.0-4.ppc: Header SHA1 digest: OK
    D:   install: zip-3.0-4.ppc has 20 files
    Updating / installing...
       1:zip-3.0-4                        D: create     100755  1 (   0,   0)243733 zip;65bbc134
    D: create     100755  1 (   0,   0)115141 zipcloak;65bbc134
    D: create     100755  1 (   0,   0)108837 zipnote;65bbc134
    D: create     100755  1 (   0,   0)111881 zipsplit;65bbc134
    D: create     040755  1 (   0,   0)     0 zip-3.0
    D: create     100644  1 (   0,   0)   356 BUGS;65bbc134
    D: create     100644  1 (   0,   0)210354 CHANGES;65bbc134
    D: create     100644  1 (   0,   0)  3412 LICENSE;65bbc134
    D: create     100644  1 (   0,   0) 12748 README;65bbc134
    D: create     100644  1 (   0,   0)  6675 TODO;65bbc134
    D: create     100644  1 (   0,   0) 15731 WHATSNEW;65bbc134
    D: create     100644  1 (   0,   0) 13167 WHERE;65bbc134
    D: create     100644  1 (   0,   0) 85502 zip.1;65bbc134
    D: create     100644  1 (   0,   0)  2014 zipcloak.1;65bbc134
    D: create     100644  1 (   0,   0)  1705 zipnote.1;65bbc134
    D: create     100644  1 (   0,   0)  1146 zipsplit.1;65bbc134
    D: create     120777  1 (   0,   0)    26 zip;65bbc134
    D: create     120777  1 (   0,   0)    31 zipcloak;65bbc134
    D: create     120777  1 (   0,   0)    30 zipnote;65bbc134
    D: create     120777  1 (   0,   0)    31 zipsplit;65bbc134
    ################################# [100%]
    error: unpacking of archive failed on file /usr/bin/zip;65bbc134: cpio: utime failed - A file or directory in the path name does not exist.
    error: zip-3.0-4.ppc: install failed
    D: running post-transaction scripts
    D: syncing all filesystems
    D: PRAGMA synchronous = FULL: 0
    D: PRAGMA optimize: 0
    D: PRAGMA wal_checkpoint = TRUNCATE: 0
    D: Exit status: 1

    And the same error "cpio: utime failed" I get when I try to do fresh DNF installation on 4.18.1.2001 ...

    Thanks,

    Martin



    ------------------------------
    Martin Boban
    ------------------------------



  • 6.  RE: error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

    Posted Thu February 01, 2024 11:44 AM

    Hi Martin

    Thanks.

    Please attached the truss output which is captured in the file /tmp/rpm.debug



    ------------------------------
    SANGAMESH
    ------------------------------



  • 7.  RE: error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

    Posted Thu February 01, 2024 12:10 PM
      |   view attached

    Hi Sangamesh,

    Uploaded.

    Thanks,

    Martin



    ------------------------------
    Martin Boban
    ------------------------------

    Attachment(s)

    txt
    rpm.debug.txt   11.60 MB 1 version


  • 8.  RE: error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

    Posted Fri February 02, 2024 08:55 AM
    Edited by SANGAMESH MALLAYYA Fri February 02, 2024 08:54 AM

    Hi Martin,

    The fchownat call is failing in your case and also for some of the calls parameter seems wrong.

    9634258: 34341199: 2,0565:        kopenxat(-1, "/", 0100000000, S_IXOTH, 0) = 10
    9634258: 34341199: 2,0568:        fstatx(10, 0x0FFFFFFFFFFFEC10, 176, 0) = 0
    9634258: 34341199: 2,0570:        kopenxat(10, "usr", 0100000000, S_IXOTH, 0) = 12
    9634258: 34341199: 2,0572:        fstatx(12, 0x0FFFFFFFFFFFEC10, 176, 0) = 0
    9634258: 34341199: 2,0574:        close(10) = 0
    9634258: 34341199: 2,0576:        kopenxat(12, "bin", 0100000000, S_IXOTH, 0) = 10
    9634258: 34341199: 2,0578:        fstatx(10, 0x0FFFFFFFFFFFEC10, 176, 0) = 0
    9634258: 34341199: 2,0580:        close(12) = 0
    9634258: 34341199: 2,0582:        symlinkat("../../opt/freeware/bin/zip", 10, "zip;65bbd2d5") = 0
    9634258: 34341199: 2,0588:        fchownat(10, "zip;65bbd2d5", 0, 0, 1) Err#22 EINVAL
    9634258: 34341199: 2,0591:        statxat(10, "zip;65bbd2d5", 0x0FFFFFFFFFFFEC60, 176, 01) = 0
    9634258: 34341199: 2,0593:        utimensat(10, "zip;65bbd2d5", 0x0FFFFFFFFFFFECE8, 1) Err#22 EINVAL
    9634258: 34341199: 2,0595:        close(10) = 0
    We haven't seen any error like this with 4.18.1 in our case.
    Do you have any environment variables set ?



    ------------------------------
    SANGAMESH
    ------------------------------



  • 9.  RE: error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

    Posted Fri February 02, 2024 11:33 AM

    Hi Sangamesh,

    only these:

    (1) root@nshore-aix-test: /home/root# env
    _=/usr/bin/env
    LANG=no_NO
    LOGIN=root
    SSH_TTY=/dev/pts/0
    PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/jre/bin:/usr/java5/bin:/opt/freeware/bin:/opt/freeware/sbin:/usr/local/bin
    LC__FASTMSG=true
    EDITOR=vi
    LOGNAME=root
    MAIL=/usr/spool/mail/root
    HOSTNAME=nshore-aix-test
    LIC_ECHO=echo
    PS1=($?) $LOGIN@$HOSTNAME: $PWD#
    USER=root
    AUTHSTATE=compat
    SHELL=/usr/bin/ksh
    ODMDIR=/etc/objrepos
    HISTSIZE=2000
    HOME=/home/root
    SSH_CONNECTION=removed
    SSH_CLIENT=removed
    TERM=xterm
    MAILMSG=[YOU HAVE NEW MAIL]
    PWD=/home/root
    TZ=removed
    A__z=! LOGNAME

    We have this same issue on 3 devel Lpars. 

    Martin



    ------------------------------
    Martin Boban
    ------------------------------



  • 10.  RE: error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

    Posted Mon February 05, 2024 06:34 AM

    Hi Martin

    Not sure what is special about these lpars.

    Can you please provide the output of these commands ?

    lsfs

    date

    umask

    id

    lsuser root

    lsgroup system



    ------------------------------
    SANGAMESH
    ------------------------------



  • 11.  RE: error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

    Posted Mon February 05, 2024 08:02 AM
    Edited by Martin Boban Mon February 05, 2024 08:03 AM

    Hey,

    nothing special I can think of about these lpars. Only that they are very old. 

    (0) root@nshore-aix-test: /home/root# lsfs
    Name            Nodename   Mount Pt               VFS   Size    Options    Auto Accounting
    /dev/hd4        --         /                      jfs2  3145728 --         yes  no
    /dev/hd1        --         /home                  jfs2  31457280 --         yes  no
    /dev/hd2        --         /usr                   jfs2  21233664 --         yes  no
    /dev/hd9var     --         /var                   jfs2  10485760 --         yes  no
    /dev/hd3        --         /tmp                   jfs2  25165824 --         yes  no
    /dev/hd11admin  --         /admin                 jfs2  262144  --         yes  no
    /proc           --         /proc                  procfs --      --         yes  no
    /dev/hd10opt    --         /opt                   jfs2  20971520 --         yes  no
    /dev/livedump   --         /var/adm/ras/livedump  jfs2  524288  --         yes  no
    /dev/swfslv     --         /swfs                  jfs2  20971520 --         yes  no
    /dev/swlv1      --         /sw                    jfs2  --      rw         yes  no
    /dev/scripts_lv --         /etc/scripts           jfs2  2097152 --         yes  no
    /dev/docs_lv    --         /docs                  jfs2  4194304 --         yes  no
    /dev/local_lv   --         /usr/local             jfs2  4194304 --         yes  no


    (0) root@nshore-aix-test: /home/root# date
     5. februar 2024 14:16:20 CET


    (0) root@nshore-aix-test: /home/root# umask
    022


    (0) root@nshore-aix-test: /home/root# id
    uid=0(root) gid=0(system) groups=2(bin),3(sys),7(security),8(cron),10(audit),11(lp),2000(lsfgroup)


    (0) root@nshore-aix-test: /home/root# lsuser root
    root id=0 pgrp=system groups=system,bin,sys,security,cron,audit,lp,lsfgroup home=/home/root shell=/usr/bin/ksh auditclasses=general login=true su=true rlogin=true daemon=true admin=true sugroups=ALL admgroups=GS-RES_SAS_Linux_ACCESS,isusrg,mfusrg,sasadmg tpath=nosak ttys=ALL expires=0 auth1=SYSTEM auth2=NONE umask=22 registry=files SYSTEM=compat logintimes= loginretries=0 pwdwarntime=0 account_locked=false minage=0 maxage=0 maxexpired=-1 minalpha=0 minother=0 mindiff=0 maxrepeats=8 minlen=0 histexpire=0 histsize=0 pwdchecks= dictionlist= default_roles= datecreated=0 fsize=-1 cpu=-1 data=-1 stack=65536 core=2097151 rss=-1 nofiles=-1 time_last_login=1707138750 time_last_unsuccessful_login=1701433986 tty_last_login=/dev/pts/0 tty_last_unsuccessful_login=ssh host_last_login=xxx host_last_unsuccessful_login=xxx unsuccessful_login_count=0 roles=


    (0) root@nshore-aix-test: /home/root# lsgroup system
    system id=0 admin=true users=esaadmin,nagios,pconsole,root,sassrv,srvproxy registry=files

    Thanks

    Martin



    ------------------------------
    Martin Boban
    ------------------------------



  • 12.  RE: error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

    Posted Mon February 05, 2024 08:14 AM

    Just to mention ... when im on 7300-01-03-2346 with 4.15.1.2009, DNF works, but I can not install any of the python module getting 

    (0) root@nshore-aix-test: /home/root# oslevel -s
    7300-01-03-2346
    (0) root@nshore-aix-test: /home/root# pip3 install JayDeBeApi
    Collecting JayDeBeApi
      Using cached JayDeBeApi-1.2.3-py3-none-any.whl (26 kB)
    Collecting JPype1
      Using cached JPype1-1.5.0.tar.gz (819 kB)
    ERROR: Exception:
    Traceback (most recent call last):
      File "/usr/opt/python3/lib/python3.9/tarfile.py", line 2555, in utime
        os.utime(targetpath, (mtime, mtime))
    OSError: [Errno 22] A system call received a parameter that is not valid.

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper
        status = run_func(*args)
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
        return func(self, options, args)
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 419, in run
        requirement_set = resolver.resolve(
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve
        result = self._result = resolver.resolve(
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve
        state = resolution.resolve(requirements, max_rounds=max_rounds)
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 373, in resolve
        failure_causes = self._attempt_to_pin_criterion(name)
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 213, in _attempt_to_pin_criterion
        criteria = self._get_updated_criteria(candidate)
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 204, in _get_updated_criteria
        self._add_to_criteria(criteria, requirement, parent=candidate)
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria
        if not criterion.candidates:
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_vendor/resolvelib/structs.py", line 151, in __bool__
        return bool(self._sequence)
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__
        return any(self)
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in <genexpr>
        return (c for c in iterator if id(c) not in self._incompatible_ids)
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
        candidate = func()
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 206, in _make_candidate_from_link
        self._link_candidate_cache[link] = LinkCandidate(
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 297, in __init__
        super().__init__(
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 162, in __init__
        self.dist = self._prepare()
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 231, in _prepare
        dist = self._prepare_distribution()
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 308, in _prepare_distribution
        return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 491, in prepare_linked_requirement
        return self._prepare_linked_requirement(req, parallel_builds)
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 536, in _prepare_linked_requirement
        local_file = unpack_url(
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 176, in unpack_url
        unpack_file(file.path, location, file.content_type)
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_internal/utils/unpacking.py", line 246, in unpack_file
        untar_file(filename, location)
      File "/usr/opt/python3/lib/python3.9/site-packages/pip/_internal/utils/unpacking.py", line 221, in untar_file
        tar.utime(member, path)
      File "/usr/opt/python3/lib/python3.9/tarfile.py", line 2557, in utime
        raise ExtractError("could not change modification time")
    tarfile.ExtractError: could not change modification time

    Python modules worked on AIX 7257.

    Maybe you have seen it before ...

    Martin



    ------------------------------
    Martin Boban
    ------------------------------



  • 13.  RE: error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

    Posted Tue February 06, 2024 08:30 AM

    Please check whether /tmp is accessible. From this error, it looks like it is trying to change the timestamp of the extracted files and failed. 



    ------------------------------
    Ayappan P
    ------------------------------



  • 14.  RE: error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

    Posted Tue February 06, 2024 11:32 AM

    /tmp is fine, with correct ownership and permissions :/



    ------------------------------
    Martin Boban
    ------------------------------



  • 15.  RE: error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

    Posted Tue February 06, 2024 02:31 PM

    Have you tried it using an en_US locale? It shouldn't matter, however your errors are around time and path.



    ------------------------------
    Mario
    ------------------------------



  • 16.  RE: error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

    Posted Wed February 07, 2024 01:25 AM

    Probably you can try extracting a tar file with modification time set and check.

    /usr/bin/tar -mxf <file.tar> -C /tmp



    ------------------------------
    Ayappan P
    ------------------------------



  • 17.  RE: error: unpacking of archive failed on file /opt/freeware/bin/dnf;65aec955: cpio: utime failed - No such file or directory

    Posted Wed February 07, 2024 08:23 AM

    Hi, thank you all for help. I have noticed that these lpars have running CA ControlMinder. After disabling it, all works as it should. 

    Martin



    ------------------------------
    Martin Boban
    ------------------------------