Additional Base Lib
Solve the common compatible problem of glibc on GNU/Linux, by lightweight container utility bubblewrap. (Support distros based on debian)
Introdution
When running applications, which are not include in system repository, there's sometimes a problem like this, which prevent application to run:
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.xx' not found (required by /path/to/xxx)
That's because the application build with higher glibc then running. Someone choose to manually upgrade glibc, but because of the importance of glibc in GNU/Linux, this method usually make the whole OS distroyed. There's some safer but more complex solution, however, the utility here is much easier using and installing, without troubles to damage your operating system.
License
There's no license restriction with scripts such as ablrun. All the library files are taken from debian 12, their original license should followed.
Notes
- Tested in deepin, but it's also albe to run on other distro based on debian amd64. And It's easy to port to other GNU/Linux platform.
- It use bwrap, as a result, some application may not run, such as ones use there own container or ones need to mount filesystem. But appimages will run, because I designed a special method to support.
- Also include a single libstdc++ library with glibc, because this problem is as often as that with glibc.
- You may use LD_LIBRARY_PATH environment variable with ablrun to search libraries in other directories, which may solve some other library problem.
Usage
Install additional-base-lib debian package first:
sudo apt install "path/to/package_name.deb"
Then you can run command, that contains glibc problem, led by ablrun and a space:
ablrun [command [arguments ...]]
Uninstall:
sudo apt remove additional-base-lib
Resources
Original release page (in Chinese):
https://bbs.deepin.org/post/256555
Common solution for many library problem (in Chinese):
https://bbs.deepin.org/post/256081
A help for someone like to port this script to other GNU/Linux platform (in Chinese):
https://bbs.deepin.org/post/258721