KB Article #177670

zypper / package management not working due to segmentation fault

Problem

The API Portal Appliance ISO fails with segmentation faults while trying to list/apply updates using zypper.

# zypper lu
Retrieving repository 'AP-LATEST-UPDATES' metadata [\]Segmentation fault


Resolution

Case 1: For installations who have removed libcurl4-openssl1 based on previous workaround instructions, below are the steps to fix :


1. zypper install libcurl4-openssl1 (since this rpm is in our update server, this command should execute successfully)
2. ssh to VM/hostmachine
3. sudo su (be root)
4. vi /etc/ld.so.conf
5. find and delete /opt/suse/lib64 (It will be 1st line in the file)
6. put /opt/suse/lib64 at the end of file
7. vi /etc/sysconfig/apache2
8. paste below 2 lines at the end of the file and save
LD_LIBRARY_PATH="/opt/suse/lib64:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
9. issue ldconfig
10. service apache2 restart
11. zypper refresh to test (zypper ref -s)
12. run apiportal testing to validate change


Case 2: For installations who have not removed libcurl4-openssl1 or those who have no information that they can’t upgrade rpms on the machine/VM where api portal is installed
1. ssh to VM/hostmachine
2. sudo su (be root)
3. vi /etc/ld.so.conf
4. find and delete /opt/suse/lib64 (It will be 1st line in the file)
5. put /opt/suse/lib64 at the end of file
6. vi /etc/sysconfig/apache2
7. paste below 2 lines at the end of the file and save
LD_LIBRARY_PATH="/opt/suse/lib64:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
8. issue ldconfig
9. service apache2 restart
10. zypper refresh to test (zypper ref -s)
11. run apiportal testing to validate change