10

Running apt update gives me this,

apt: relocation error: /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0:
symbol _ZN9pkgSystem9LockInnerEv, version APTPKG_5.0 not defined in file
libapt-pkg.so.5.0 with link time reference

In an attempt to fix this, I downloaded the apt package from here on packages.ubuntu.com, installed it with dpkg, ran apt upgrade and that told me to fix it with -f. I did that and it brought me back to the original issue. I assume there is a library issue here, but I am not sure what I need to update.

When I asked on reddit I was advised to reinstall; is this the best way to resolve this issue?

Any ideas on where to look or what to do to fix this?

As I cannot do this with apt, I would need to wget and dpkg any packages required to fix this, so please link me to the relevant sources, if applicable.

EDIT, I have contacted the Ubuntu bugtracker questions team and found a temporary fix, https://answers.launchpad.net/ubuntu/+question/675775

6
  • 1
    This has been reported as a bug in 16.04: apt failed to run due to link time reference error.
    – karel
    Oct 28, 2018 at 15:09
  • 1
    Haha! Oh, okay. I've been pulling my hair out over the past few days, trying to work out what's going on. Never occurred to me it was a bug, or to look on the bugtracker. Thanks :-)
    – MrMe01
    Oct 28, 2018 at 15:14
  • Just confirmed the bug, hopefully others will find this and say it affects them too.
    – MrMe01
    Oct 28, 2018 at 15:18
  • 1
    This is the second time this bug was reported on Ask Ubuntu today. Thanks for confirming the bug.
    – karel
    Oct 28, 2018 at 15:21
  • 3
    Try these commands, wget launchpad.net/ubuntu/+archive/primary/+files/… sudo dpkg --install --force-downgrade libapt-pkg5.0_1.2.29_amd64.deb
    – ArUn
    Dec 21, 2018 at 8:04

1 Answer 1

3

Today I had same problem after simple apt update && apt upgrade.

And i fixed it replacing /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0.0 from another Ubuntu 16.04 installation.

1

Not the answer you're looking for? Browse other questions tagged .