Cannot ~$sudo apt-get update libapt-pkg.so.4.16 error

Asked by b borden

(I saw a similar question for apt-get ... libapt-pkg.so.4.12 and adaptest some steps to my present situation.)

I just processed a ubuntu upgrade from 14.04LTS to 15.10 and the desktop
 will not start. Logging in to the text prompt, I can see SOMETHING is running.. Running apt-get help (less typing than other options) I get a relocation error /usr/lib/x86_64-linux/gnu/libapt-pkg.so.4.16 symbol (****) version GLIBCXX_3.4.21 not defined in file libsted++.so.6 with link time reference. (Other messages are similar)

locate libapt-pkg|grep so
produces four lines:
/usr/lib/x86-linux-gnu/libapt-pkg.so.4.12
and 4.12.0
and 4.16
and 4.16.0

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
b borden
Solved:
Last query:
Last reply:
Revision history for this message
b borden (b-borden) said :
#1

locate *c++* says I have 4 files in /usr/lib/x86_64-linux-gnu
liblua5.2-c++.so.0
liblua5.2-c++.so.0.0.0
libstdc++.so.6
ibstdc++.so.6.0.22

shouldn't there be a 6.0.21?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Why upgrade to 15.10 when 16.04 is out and is LTS. You could have upgraded directly from 14.04 to 16.04 in one jump....

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

For diagnostic purposes please provide the output of the following commands:

uname -a
lsb_release -crid
sudo dpkg --audit

Revision history for this message
b borden (b-borden) said :
#5

I planned on waiting for 16.04-1
(Unfortunately the system will connect to the network (except 127.0.0.1) so if I make a typing error, I apologize)
=================
3.16.0-71-generic #92~14.04.1-Ubunti S<{ Tju <au 12 23"31"46 UTC 2016 x86_64 x86_64 GNU/Linux
=================
dpkg: error: unknown option -u
=================
The ff pkgs 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:---
.....[47 24 line screens in more ]
The following packages are only half configured, probably due to problems configuring the first of them the first time. The configuration should be retried using dpkg --configure <package> or the configure menu option in dselect:
 bluez

The following packages have been triggered, but the trigger processing haqs not yet been done. (more text)
 ca-certificates
 dbus
 dictionsaries-common
 intramfs-tools
 libc-bin
 libgdk=pixbuf2.0.0:amd64
 systemd
 ureadahead

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

Ok. this shows that your package management system is in an inconsistent state.

Try

sudo dpkg --configure -a

and then repeat

sudo dpkg --audit

does the list of error become shorter?

Revision history for this message
b borden (b-borden) said :
#7

I think I've found the answer.

I had been using propriedtary drivers from xorg-edgers. Although I had reverted to the X.Org.X drivvers, I had NOT done the mandatory sudo ppa-purge xorg-edgers.