0

As of recently, I've been getting this error from apt-get:

sudo apt-get install *something*

output: apt-get: symbol lookup error: apt-get: undefined symbol: _ZN11CommandLine10GetCommandEPKNS_8DispatchEjPKPKc

Also apt-add-repository is getting: sudo: apt-add-repository: command not found

I've been trying to fix this for days and nothing seems to work for me, as most of the solutions I've found require me to use apt-get, which I obviously can't. Also something else I should mention, is that for some reason I don't have a /etc/apt/sources.list file, only a /etc/apt/sources.list.d.

Is there maybe any place I can manually download apt-get without using apt-get and reinstall it?

Using Ubuntu 16.04

edit:

apt-cache policy libapt-pkg5.0 gets the same error as apt-get above.

and dpkg -C gives me:

The following packages have been unpacked but not yet configured. They must be configured using dpkg --configure or the configure menu option in dselect for them to work: apt commandline package manager

edit-2:

sudo dpkg --configure apt gets:

dpkg: dependency problems prevent configuration of apt:
 apt depends on libapt-pkg4.12 (>= 0.9.16); however:
  Version of libapt-pkg4.12:amd64 on system is 0.8.16~exp12ubuntu10.21.
 libapt-pkg5.0:amd64 (1.2.15) breaks apt (<< 1.1~exp14) and is installed.
  Version of apt to be configured is 1.0.1ubuntu2.17.

dpkg: error processing package apt (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 apt
  • Go to System Settings -> Software & Updates and check the boxes on the repos. It will create the sources.list. – Pilot6 Jan 26 '17 at 17:28
  • But something is wrong with your system. – Pilot6 Jan 26 '17 at 17:29
  • @Pilot6 In 'System Settings' I don't have a 'Softare & Updates' button, which is odd because I'm pretty sure I've used that before on this machine. – Chris Hansen Jan 26 '17 at 17:36
  • Please add outputs of apt-cache policy libapt-pkg5.0 and dpkg -C libapt-pkg5.0 – steeldriver Jan 26 '17 at 17:37
  • @steeldriver edited post – Chris Hansen Jan 26 '17 at 17:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.