If you are trying to launch a new application, set up a game server, or install specialized software like Discord, Unity, or Apache, you might run into a frustrating terminal error demanding specific libraries.
After installing, the dynamic linker may not find the libraries if they are in a non‑standard location. Run:
The exact commands depend on your Linux distribution. Below we cover the most common families: , Red Hat/Fedora , Arch Linux , openSUSE , and Alpine Linux .
(adjust path if needed – find actual .so file with find /usr/lib -name "*glib*so*" ) If you are trying to launch a new
Open your terminal and run the following command to install the required dependencies:
Do not panic. This article will explain , why they are missing , and provide step-by-step solutions for every major Linux distribution.
sudo dpkg --add-architecture i386 sudo apt update sudo apt install libapr1:i386 libaprutil1:i386 libasound2:i386 libglib2.0-0:i386 Below we cover the most common families: ,
Most modern software comes in .deb packages that automatically install their dependencies. However, if you are running a standalone binary (like a .sh file or a portable app), the system doesn't always know it needs to go grab these libraries for you.
So you should install:
sudo pacman -S apr apr-util alsa-lib glib2 sudo dpkg --add-architecture i386 sudo apt update sudo
Sometimes, the app looks for a specific version (e.g., libglib200.so.0 ) but you have libglib2.0.so.0 . You can create a symbolic link, though this is a last resort:
: A core library for the GNOME desktop environment and many cross-platform applications. It handles low-level data structure manipulation, event loops, and threads. How to Install the Missing Packages
Sometimes, running sudo apt install libasound2 may produce an error message saying it's a "virtual package" and has no installation candidate: