Originally posted by: sailaway
I upgraded my sudo-1.8.15-1 to sudo-1.8.20p2-4 but getting error in the installation.
root@serverl:/tmp>rpm -Uvh sudo-1.8.20p2-4.aix6.1.ppc.rpm
Preparing... ################################# [100%]
Updating / installing...
1:sudo-1.8.20p2-4 ################################# [ 50%]
Cleaning up / removing...
2:sudo-1.8.15-1 warning: directory /var: remove failed: The requested resource is busy.
warning: directory /opt: remove failed: The requested resource is busy.
################################# [100%]
I thought my current sudo session is locking up some sudo files installed in /var and /opt, so I log off all sudo session and login as root directly to re-run the sudo upgrade, same error.
Then when I try to start a new sudo session I get the following error:
$ sudo su -
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: unable to load /opt/freeware/libexec/sudo/sudoers.so: 0509-130 Symbol resolution failed for /opt/freeware/lib/liblber.a(liblber-2.4.so.2) because:
0509-136 Symbol _GLOBAL__AIXI_shr_o (number 2) is not exported from
dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
0509-136 Symbol _GLOBAL__AIXD_shr_o (number 3) is not exported from
dependent module /opt/freeware/lib/libgcc_s.a(shr.o).
0509-022 Cannot load module /opt/freeware/libexec/sudo/sudoers.so.
0509-026 System error: Cannot run a file that does not have a valid format.
0509-192 Examine .loader section symbols with the
'dump -Tv' command.
sudo: fatal error, unable to load plugins
I checked that all library files above exists except for the /etc/sudo.conf which I never use before.
root@server:/tmp>ls -l /opt/freeware/libexec/sudo/sudoers.so
-rw-r--r-- 1 root system 1958669 Nov 15 2017 /opt/freeware/libexec/sudo/sudoers.so
root@server:/tmp>ls -l /opt/freeware/lib/liblber.a
lrwxrwxrwx 1 root system 13 Jun 20 12:22 /opt/freeware/lib/liblber.a -> liblber-2.4.a
root@server:/tmp>ls -l /opt/freeware/lib/liblber-2.4.a
-rwxr-xr-x 1 root system 205746 Nov 07 2017 /opt/freeware/lib/liblber-2.4.a
root@server:/tmp>ls -l /etc/sudo.conf
ls: 0653-341 The file /etc/sudo.conf does not exist.
Appreciate if someone can help.