Upgrading from SLES 9 gives error while loading shared libraries
This document (7007267) is provided subject to the disclaimer at the end of this document.
SUSE Linux Enterprise Server 10
SUSE Linux Enterprise Server 11
dircolors: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
You are not able to run most of the commands, therefore the system is completely unmanageable.
First of all, you need to unset it in order to have access to the system for that shell. Overwrite the LD_ASSUME_KERNEL variable setting with command:
Then, you need to persistent remove that variable from the file which exports it. Open the file where you specified it and delete the line containing the export of the variable LD_ASSUME_KERNEL=*
If you don't know which file sets the variable a good place to start is the /etc/profile.local
Other files which could contain the variable are indicated in the bash man pages.
If you do not know where it was set you might search for it grepping recursive into the /etc and /home directory with the following command:
# grep -r LD_ASSUME_KERNEL /etc /home
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7007267
- Creation Date: 29-Nov-2010
- Modified Date:03-Mar-2020
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: firstname.lastname@example.org