Skip to content

Instantly share code, notes, and snippets.

@xiaojueguan
Created September 8, 2021 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xiaojueguan/e3570667b5f90bda351b3228c18ad846 to your computer and use it in GitHub Desktop.
Save xiaojueguan/e3570667b5f90bda351b3228c18ad846 to your computer and use it in GitHub Desktop.
apt: symbol lookup error: /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0: undefined symbol: _ZN9pkgSystem9LockInnerEv, version APTPKG_5.0
# refer to: https://forum.zentyal.org/index.php?topic=32403.0
A_VERSION=1.2.35 # see log obove
cd /var/cache/apt/archives
if [ 'x86_64' == "`uname -m`" ]; then
# on 64-Bit System use:
wget http://archive.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg5.0_${A_VERSION}_amd64.deb
dpkg --install --force-all libapt-pkg5.0_${A_VERSION}_amd64.deb
else
# on i386 System use:
wget http://archive.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg5.0_${A_VERSION}_i386.deb
dpkg --install --force-all libapt-pkg5.0_${A_VERSION}_i386.deb
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment