Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

aptitude no longer running

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
morgon
Posts: 189
Joined: 2010-08-28 03:04

aptitude no longer running

#1 Post by morgon »

Hi,

I've updated quite a bit of packages via aptitude and rebooted.

Now I get this:
/home/mh > sudo aptitude
aptitude: relocation error: aptitude: symbol _ZN3URIcvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEB5cxx11Ev version APTPKG_5.0 not defined in file libapt-pkg.so.5.0 with link time reference

/home/mh > sudo apt-get update aptitude
apt-get: relocation error: /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0: symbol _ZN3URIcvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEB5cxx11Ev version APTPKG_5.0 not defined in file libapt-pkg.so.5.0 with link time reference
So it seems libapt-pkg.so has a problem now.

What can I do?

Many thanks!

morgon
Posts: 189
Joined: 2010-08-28 03:04

Re: aptitude no longer running

#2 Post by morgon »

I went into /var/cache/apt/archives and installed the latest apt I could find via
sudo dpkg -i --auto-deconfigure apt_1.7.0~rc2_amd64.deb
Then I ran
sudo apt --fix-broken install
So now I have a working apt-get back.

However this remains:
/var/cache/apt/archives > sudo aptitude
aptitude: symbol lookup error: aptitude: undefined symbol: _ZN6Xapian4MSetC1EOS0_

EDIT:

For what it is worth:
/home/mh > sudo apt-get install aptitude
Reading package lists... Done
Building dependency tree
Reading state information... Done
aptitude is already the newest version (0.8.11-3).
The following packages were automatically installed and are no longer required:
apt-transport-https libgconfmm-2.6-1v5 libglademm-2.4-1v5
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1614 not upgraded.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: aptitude no longer running

#3 Post by sunrat »

morgon wrote:
... 1614 not upgraded.
:shock:

What kind of system are you running that reports that many upgrades?
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

morgon
Posts: 189
Joined: 2010-08-28 03:04

Re: aptitude no longer running

#4 Post by morgon »

stretch, but I only update if I have a real need for it...

morgon
Posts: 189
Joined: 2010-08-28 03:04

Re: aptitude no longer running

#5 Post by morgon »

I ran
sudo apt-get install libxapian30
And now aptitude is working again. I don't really understand what happend and would be interested if anybody could shed some light on this...

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: aptitude no longer running

#6 Post by debiman »

morgon wrote:I don't really understand what happend and would be interested if anybody could shed some light on this...
maybe:
morgon wrote:stretch, but I only update if I have a real need for it...
i think your system does have a real need for it....

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: aptitude no longer running

#7 Post by sunrat »

debiman wrote:
morgon wrote:I don't really understand what happend and would be interested if anybody could shed some light on this...
maybe:
morgon wrote:stretch, but I only update if I have a real need for it...
i think your system does have a real need for it....
Indeed. I suspect you don't have a pure Stretch system but have other repositories and/or packages. Stretch has had about 426 security updates in its whole lifetime. Not 1614. Of course there may be some non-security upgrades but Debian is very conservative with those.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

CwF
Global Moderator
Global Moderator
Posts: 2638
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: aptitude no longer running

#8 Post by CwF »

I don't get what you guys are talking about? That 1614 means he has 1614 packages total in the system, not 1614 packages that should be, need to, or could be upgraded. The results of the command could have simply read 'nothing to do'.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: aptitude no longer running

#9 Post by Head_on_a_Stick »

@OP: please post the full output of

Code: Select all

apt-get --simulate dist-upgrade
Be sure to use code tags because it will be lengthy.
deadbang

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: aptitude no longer running

#10 Post by sunrat »

CwF wrote:I don't get what you guys are talking about? That 1614 means he has 1614 packages total in the system, not 1614 packages that should be, need to, or could be upgraded. The results of the command could have simply read 'nothing to do'.
We're both right and wrong here. It seems to refer to the number of held packages, of which 1614 would still be a disturbing number. By your reasoning I have a total of 2 packages on my system:

Code: Select all

apt-get -s dist-upgrade
...
The following packages have been kept back:
  libsane-common sane-utils
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
@morgon - please post what Head_on_a_Stick requested.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: aptitude no longer running

#11 Post by stevepusser »

Stretch only has aptitude 0.8.7 in the repo, yet the OP wrote:

Code: Select all

aptitude is already the newest version (0.8.11-3)
Image

Actually, just about every post here with problems similar to yours is a result of mixing incompatible repositories, so it's not hard to make the call.
MX Linux packager and developer

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: aptitude no longer running

#12 Post by stevepusser »

CwF wrote:I don't get what you guys are talking about? That 1614 means he has 1614 packages total in the system, not 1614 packages that should be, need to, or could be upgraded. The results of the command could have simply read 'nothing to do'.
Wrongo bongo, sir or madam. The message means that that there are 1614 possible upgrades left unperformed, clearly because something like the testing and/or Sid repostories are enabled.
MX Linux packager and developer

CwF
Global Moderator
Global Moderator
Posts: 2638
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: aptitude no longer running

#13 Post by CwF »

I learn new, I didn't read it that way, I pay attention better.

MagicPoulp
Posts: 431
Joined: 2018-11-05 21:30

Re: aptitude no longer running

#14 Post by MagicPoulp »

I got the same error.

Here is how anyone can get the error.

Install a fresh debian version stretch.
set up pinning

sudo apt-get install -t testing emacs25 emacs-goodies-el elpa-markdown-mode

now apt is corrupted. Trying to dpkg stable packages for apt and libapt-pkg* does not fix it.

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

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1389
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 66 times

Re: aptitude no longer running

#15 Post by None1975 »

MagicPoulp wrote:sudo apt-get install -t testing emacs25 emacs-goodies-el elpa-markdown-mode
Everyone with their system does what they want. But. Debian Stable should not be combined with other releases. If you're trying to install software that isn't available in the current Debian Stable release, it's not a good idea to add repositories for other Debian releases. The problems might not happen right away, but the next time you install updates.

Image
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: aptitude no longer running

#16 Post by dilberts_left_nut »

MagicPoulp wrote:Here is how anyone can get the error...
And if you hit it with a hammer, or piss in the vents, it won't work properly either -- what's your point?
AdrianTM wrote:There's no hacker in my grandma...

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: aptitude no longer running

#17 Post by debiman »

give people safety belts, they complain about their loss of freedom.
remove the safety belts, they sue you when they hurt their heads.
:roll:
and yes, this remark is on topic: Linux has always been about absolute control of your system. no safety belts - more possibilities, but also more responsibility.

Post Reply