You can try with this command.
"rpm -e dnf-data libcomps librepo --nodeps"
Original Message:
Sent: Tue April 18, 2023 11:55 AM
From: Mi Wang
Subject: DNF Re-installation Failure
Hi SANGAMESH,
I think manually remove the higher versions of those packages would need dnf executable, e.g.: running 'dnf remove ...'. But the dnf executable went missing on our server. Is there any other way to remove those packages?
Thanks
Mi
------------------------------
Mi Wang
Original Message:
Sent: Tue April 18, 2023 05:04 AM
From: SANGAMESH MALLAYYA
Subject: DNF Re-installation Failure
Yes. higher versions of dnf-data, libcomps, librepo is installed but also some of it's version dependencies are removed.
For example. dnf-data higher version is installed
"Skipping dnf-data-4.2.17-32_2 as higher version dnf-data-4.2.17-32_50.ppc is installed."
But
dnf-4.2.17-32_50, dnf-automatic-4.2.17-32_50 and python3-dnf-4.2.17-32_50 are removed.
Hence, the version mismatch and dependency error.
Same issue with libcomps and librepo.
As I mentioned, you can try to manually remove higher versions of dnf-data, libcomps, librepo by force and rerun the dnf script.
------------------------------
SANGAMESH
Original Message:
Sent: Mon April 17, 2023 03:05 PM
From: Mi Wang
Subject: DNF Re-installation Failure
Hi SANGAMESH,
Can you please respond and help?
Thanks
Mi
------------------------------
Mi Wang
Original Message:
Sent: Fri April 14, 2023 02:36 PM
From: Mi Wang
Subject: DNF Re-installation Failure
Hi SANGAMESH,
Based on our implementation situation, I believe most part of the previously installed dnf is still there (we just missed dnf executable) as previously I manually installed pandas / numpy packages after installing dnf / AIX Toolbox. The missing dependency issue for dnf-data, libcomps, librepo is due to the existence of some higher versions of those packages being there. We have previously install local AIX Toolbox repository, which might bring in the higher version packages?
So is there a way to reset the installed package registry (i guess there is such thing), or is there a way I can get a copy of dnf executable and manually put it under /opt/freeware/bin?
Thanks
Mi
------------------------------
Mi Wang
Original Message:
Sent: Fri April 14, 2023 12:47 PM
From: SANGAMESH MALLAYYA
Subject: DNF Re-installation Failure
Hi Mi
In your case some package are removed by force even though they are required.
You can remove the dnf-data, libcomps, librepo rpm package by force manually and then rerun the script.
I don't know why you have included other packages as part of the dnf bundle.
You have removed python3-dateutil and included python3-pandas which isn't part and has a dependency on python3-dateutil.
To resolve last error you need to include original bundle rpm packages python3-dateutil.
------------------------------
SANGAMESH
Original Message:
Sent: Fri April 14, 2023 10:23 AM
From: Mi Wang
Subject: DNF Re-installation Failure
HI SANGAMESH,
Can you please help?
Thanks
Mi
------------------------------
Mi Wang
Original Message:
Sent: Thu April 13, 2023 03:28 PM
From: Mi Wang
Subject: DNF Re-installation Failure
Please find the full installation running output:
./install_dnf.sh -d
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.3 Already installed
Checking whether any of the rpms from dnf_bundle are already installed...
Takes couple of minutes to process.
bzip2-1.0.8-2 is already installed
Skipping ca-certificates-2020.06.01-0 as higher version ca-certificates-2021.2.52-3.ppc is installed.
dnf-4.2.17-32_2 will be installed
dnf-automatic-4.2.17-32_2 will be installed
Skipping dnf-data-4.2.17-32_2 as higher version dnf-data-4.2.17-32_50.ppc is installed.
Skipping expat-2.4.6-1 as higher version expat-2.5.0-1.ppc is installed.
gdbm-1.23-1 is already installed
Skipping gettext-0.21-1 as higher version gettext-0.21-2.ppc is installed.
glib2-2.56.1-3 is already installed
info-6.7-1 is already installed
Skipping libcomps-0.1.11-32_1 as higher version libcomps-0.1.11-100.ppc is installed.
libdnf-0.39.1-32_2 will be installed
libffi-3.4.2-1 is already installed
Skipping libgcc-8-1 as higher version libgcc-10-2.ppc is installed.
Skipping libgcc8-8.3.0-6 as higher version libgcc8-8.3.0-7.ppc is installed.
Skipping libgomp-8-1 as higher version libgomp-10-2.ppc is installed.
libiconv-1.17-1 is already installed
Skipping libmodulemd-1.5.2-32_2 as higher version libmodulemd-1.5.2-100.ppc is installed.
Skipping librepo-1.11.0-32_1 as higher version librepo-1.11.0-100.ppc is installed.
Skipping libsmartcols-2.34-32_1 as higher version libsmartcols-2.34-100.ppc is installed.
Skipping libsolv-0.7.9-32_1 as higher version libsolv-0.7.9-32_51.ppc is installed.
Skipping libstdc++-8-1 as higher version libstdc++-10-2.ppc is installed.
libstdc++8-8.3.0-7 will be installed
Skipping libtextstyle-0.21-1 as higher version libtextstyle-0.21-2.ppc is installed.
libunistring-0.9.10-1 is already installed
libxml2-2.9.14-1 is already installed
Skipping libzstd-1.4.4-32_1 as higher version libzstd-1.5.2-1.ppc is installed.
ncurses-6.3-1 is already installed
Skipping p11-kit-0.23.16-0 as higher version p11-kit-0.23.22-1.ppc is installed.
Skipping p11-kit-tools-0.23.16-0 as higher version p11-kit-tools-0.23.22-1.ppc is installed.
pandas-1.3.3-1 will be installed
python3-dnf-4.2.17-32_2 will be installed
python3-gpgme-1.13.1-32_1 will be installed
python3-hawkey-0.39.1-32_2 will be installed
python3-joblib-1.0.1-1 will be installed
python3-libcomps-0.1.11-32_1 will be installed
python3-libdnf-0.39.1-32_2 will be installed
python3-librepo-1.11.0-32_1 will be installed
python3-numpy-1.21.2-1 will be installed
python3-pandas-1.3.3-1 will be installed
python3-pytz-2019.3-1 will be installed
python3-scikit-learn-0.24.2-1 will be installed
python3-scipy-1.7.1-1 will be installed
python3-threadpoolctl-2.2.0-1 will be installed
python3.9-3.9.6-1 will be installed
readline-8.1-1 is already installed
rpm-python3-4.15.1-32_1 will be installed
Skipping sqlite-3.37.2-1 as higher version sqlite-3.39.3-1.ppc is installed.
xz-libs-5.2.5-1 is already installed
Skipping zchunk-devel-1.1.4-32_1 as higher version zchunk-devel-1.1.4-101.ppc is installed.
Skipping zchunk-libs-1.1.4-32_1 as higher version zchunk-libs-1.1.4-101.ppc is installed.
Skipping zlib-1.2.12-1 as higher version zlib-1.2.13-1.ppc is installed.
Installing the packages...
error: Failed dependencies:
dnf-data = 4.2.17-32_2 is needed by python3-dnf-4.2.17-32_2.noarch
libcomps = 0.1.11-32_1 is needed by python3-libcomps-0.1.11-32_1.ppc
librepo = 1.11.0-32_1 is needed by python3-librepo-1.11.0-32_1.ppc
python3-dateutil >= 2.8.0 is needed by python3-pandas-1.3.3-1.ppc
Updating / installing...
1:pandas-1.3.3-1 ################################# [100%]
error: unpacking of archive failed: cpio: Archive file not in header
error: pandas-1.3.3-1.src.rpm cannot be installed
dnf installation failed.
If the failure was due to a space issue, increase the size of /opt and re-run script again.
Another reason for failure could be mixing of Toolbox packages and packages from other sources.
------------------------------
Mi Wang
Original Message:
Sent: Thu April 13, 2023 05:55 AM
From: SANGAMESH MALLAYYA
Subject: DNF Re-installation Failure
Hi Mi
Can you please paste the complete output ?
------------------------------
SANGAMESH
Original Message:
Sent: Wed April 12, 2023 05:02 PM
From: Mi Wang
Subject: DNF Re-installation Failure
Hello,
We have previously installed dnf successfully. We have also installed local AIX Toolbox repository. But somehow the dnf executable went missing. I have to reinstall it. But the reinstallation is unsuccessfully with the following error messages. Can someone please help?
"error: Failed dependencies:
dnf-data = 4.2.17-32_2 is needed by python3-dnf-4.2.17-32_2.noarch
libcomps = 0.1.11-32_1 is needed by python3-libcomps-0.1.11-32_1.ppc
librepo = 1.11.0-32_1 is needed by python3-librepo-1.11.0-32_1.ppc
python3-dateutil >= 2.8.0 is needed by python3-pandas-1.3.3-1.ppc
Updating / installing...
1:pandas-1.3.3-1 ################################# [100%]
error: unpacking of archive failed: cpio: Archive file not in header
error: pandas-1.3.3-1.src.rpm cannot be installed"
By the way, in the current path where the install_dnf.sh is launched, there are following related files:
-rwx------ 1 root system 11878 Apr 18 2022 install_dnf.sh
-rw------- 1 root system 197205 Apr 18 2022 python3-dnf-4.2.17-32_2.aix7.1.noarch.rpm
-rw------- 1 root system 22549836 Apr 14 2022 python3-libdnf-0.39.1-32_2.aix7.1.ppc.rpm
-rw------- 1 root system 15810655 Apr 14 2022 libdnf-0.39.1-32_2.aix7.1.ppc.rpm
-rw------- 1 root system 8546 Jul 21 2021 python3-dnf-plugin-migrate-4.0.16-32_1.aix7.1.noarch.rpm
-rw------- 1 root system 49763 Jul 21 2021 python3-dnf-plugins-core-4.0.16-32_1.aix7.1.noarch.rpm
-rw------- 1 root system 23516 Apr 18 2022 dnf-data-4.2.17-32_2.aix7.1.noarch.rpm
-rw------- 1 root system 10981 Apr 18 2022 dnf-4.2.17-32_2.aix7.1.noarch.rpm
-rw------- 1 root system 12288 Apr 18 2022 dnf-automatic-4.2.17-32_2.aix7.1.noarch.rpm
-rw------- 1 nobody nobody 175902720 Sep 20 2022 dnf_bundle_aix_71_72.tar
-rw------- 1 nobody nobody 175902720 Sep 20 2022 dnf
------------------------------
Mi Wang
------------------------------