How to Fix: Error with libc.so.6: version `GLIBC_2.32' not found when using it with wkhtmltopdf
Error with libc.so.6: version GLIBC_2.32 not found when using wkhtmltopdf on Ubuntu Server 20.4.
📋 Table of Contents
Error with libc.so.6: version `GLIBC_2.32' not found when using it with wkhtmltopdf
This error affects users of Python, Django, and wkhtmltopdf on Ubuntu Server 20.4, causing issues when converting HTML to PDF.
⚠️ Common Causes
- The primary reason for this error is that the required version `GLIBC_2.34' of the libc library is not available in the system.
- An alternative cause could be that the `CXXABI_1.3.13` and `CXXABI_1.3.14` versions are missing, which are also required by wkhtmltopdf.
✅ Best Solutions to Fix It
Update the libc library to a compatible version
- Step 1: Open the Ubuntu Server 20.4 terminal and run the following command: `sudo apt-get update && sudo apt-get install libgcc1 libglib2.0-0 libgthread-2.0-0`
- Step 2: This will ensure that the required versions of the libc library are installed.
- Step 3: After installation, restart the system or reload the wkhtmltopdf service by running `sudo systemctl reload wkhtmltopdf`
Use an alternative wkhtmltopdf version with a compatible libc library
- Step 1: Install an alternative version of wkhtmltopdf that is compatible with the available libc library versions.
- Step 2: Run the following command: `sudo apt-get install wkhtmltopdf-dev`
🎯 Final Words
To resolve this issue, you can either update the libc library to a compatible version or use an alternative wkhtmltopdf version. By following these steps, you should be able to successfully convert HTML to PDF using Python, Django, and wkhtmltopdf on Ubuntu Server 20.4.
❓ Frequently Asked Questions
🛠️ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Fix Pc crashes shortly after launching game (rainbow six siege). Compl
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: New PC build- no signal and no clue
Fix New PC build- no signal and no clue. Complete troubleshooting guid