I solved this by configuring dnf. In my case, I did this locally. I mean, I configured dnf locally.
To do so:
1- Download the Toolbox package from ESS (https://www.ibm.com/servers/eserver/ess/landing/landing-page)
- Choose "tgz" format. Unzip and extract fhe files.
- When you extract the files, you'l see like this (the files below are for AIX 7.2 and 7.3, but you have, also, for 7.1, 7.2 and 7.3)
root@server]# ls -la
total 16114168
drwxr-xr-x 11 4000 4000 4096 Mar 14 2024 .
drwxr-xr-x 9 bin bin 4096 Nov 12 10:04 ..
-rw-r--r-- 1 4000 4000 290128 Mar 14 2024 CONTENTS.toolbox
-rw-r----- 1 root system 8250112000 Nov 12 10:06 ESD-Toolbox_for_Linux_Apps_Common_7.2-7.3_062024_LKT010327.tar
drwxrwxr-x 2 4000 4000 4096 Mar 14 2024 LICENSES
-rw-r--r-- 1 4000 4000 36258 Mar 14 2024 README.toolbox
drwxr-xr-x 9 4000 4000 256 Mar 14 2024 RPMS
drwxr-xr-x 4 4000 4000 256 Mar 14 2024 RPMS.bygroup
drwxrwxr-x 2 4000 4000 256 Mar 14 2024 SRPMS
drwxrwxr-x 2 4000 4000 256 Mar 14 2024 contrib
drwxrwxr-x 2 4000 4000 256 Mar 14 2024 docs
drwxr-xr-x 3 4000 4000 256 Mar 14 2024 ezinstall
drwxr-xr-x 4 4000 4000 256 Mar 14 2024 installp
drwxr-xr-x 3 4000 4000 256 Mar 14 2024 usr
2 - Run the dnf installer:
- From the base directory (where you extract the files), run ./ezinstall/ppc/dnf_aixtoolbox_local.sh
- This will install dnf and all pre-reques.
3 - Run dnf update
- From the command line run: dnf update
Now you can install any package from Toolbox that is locally available.
You can try:
[root@server]# dnf list | grep sudo
sudo_noldap.ppc 1.9.14p3-1 @Local_AIX_Toolbox
sudo.ppc 1.9.14p3-1 Local_AIX_Toolbox
sudo_ids.ppc 1.9.14p3-1 Local_AIX_Toolbox
[root@server]#
You see three options for sudo. If you have just local authentication, you can choose sudo_noldap.ppc, for example.
That it is
------------------------------
Adalberto Giaretta
------------------------------
Original Message:
Sent: Tue November 26, 2024 05:33 AM
From: Saif Ali Sabri
Subject: Unable to install SUDO on AIX
My response was crafted with AI assistance, tailored to provide detailed and actionable guidance for your query.
The "Illegal instruction" error when using sudo
on AIX usually indicates that the version of the sudo
package is not compatible with your system or was improperly built for the specific architecture or AIX version.
1. Verify Compatibility
- Ensure the
sudo
package version (1.9.15.5) you downloaded is specifically compatible with AIX 7.2. The .bff
file you mentioned is for AIX 7.1, so it may not fully support AIX 7.2. - Download the correct version of
sudo
for AIX 7.2 from IBM's AIX Toolbox or a trusted source.
2. Check Processor Architecture
- Verify your AIX system's architecture (e.g., POWER7, POWER8, POWER9) and ensure the downloaded package matches the processor type.
- Run
uname -p
or prtconf | grep "Processor Type"
to check your processor.
3. Check Prerequisite Libraries
- Some versions of
sudo
require additional dependencies, such as: - Ensure you have the correct versions of these libraries installed. You can check installed packages with:If missing, download and install dependencies from the AIX Toolbox.
4. Debug Core Dump
- Use
dbx
to analyze the core dump and get more information about the issue: - Look for clues related to missing libraries
------------------------------
Saif Ali Sabri
Original Message:
Sent: Tue October 15, 2024 02:12 AM
From: Anushka Hiray
Subject: Unable to install SUDO on AIX
Hello,
I am trying to install sudo using .bff package on AIX with OS 7.2.
But after installing the package( sudo.1.9.15.5.aix71.bff) I am not able to switch to root using "sudo su -"
Facing below error:
$ sudo su -
Illegal instruction
bash-4.2# visudo
Illegal instruction (core dumped)
It will be great if anyone help me to resolve the issue.
Thank you.
------------------------------
Anushka Hiray
------------------------------