Troubleshooting a Fatal library error: lookups self during Pacstrap Arch Linux Installation
During the Arch Linux installation process, you might encounter a fatal library error when running the pacstrap command with the -K flag and specifying the kernel and additional packages. This error usually occurs when there is a missing or outdated library required for the installation process. This article will guide you through troubleshooting this issue and provide a solution to continue with the installation.
Understanding the Error
The error message you received might look like this:
(4/5) Checking user [**************************] 100%
error: could not load library 'libcrypto.so.1.1'
error: could not load library 'libssl.so.1.1'
error: could not load library 'libcrypto.so.1.1'
error: could not load library 'libssl.so.1.1'
error: lookups self: undefined symbol: X509_STORE_CTX_get0_last_error
This error indicates that the installation process could not find or load the required libraries for the operation. The libraries in question are part of the OpenSSL package, which is a critical component of the Linux system.
Solution: Manually Installing the Required Libraries
To resolve this issue, you can manually install the required libraries from the Arch Linux installation media. Follow these steps:
- Mount the Arch Linux installation media to the
/mntdirectory:
mount /dev/sdX /mnt
- Chroot into the installation environment:
arch-chroot /mnt
- Update the package database:
pacman -Sy
- Install the required libraries:
pacman -S openssl libarchive
- Exit the chroot environment:
exit
- Unmount the installation media:
umount -R /mnt
Continuing the Installation
Now that you have manually installed the required libraries, you can proceed with the Arch Linux installation by running the pacstrap command again:
pacstrap -K /mnt baselinux linux linux-firmware
The installation process should now continue without encountering the fatal library error.
In this article, we have discussed troubleshooting a fatal library error during the Arch Linux installation process. By manually installing the required libraries, you can resolve this issue and continue with the installation. The key concepts covered in this article include:
- Understanding the error message
- Manually installing the required libraries
- Continuing the Arch Linux installation