Can't update or use package manager -- gpg error
Code:
W: GPG error: http://archive.canonical.com karmic Release: Unknown error executing gpgv
W: GPG error: http://us.archive.ubuntu.com karmic Release: Unknown error executing gpgv
W: GPG error: http://us.archive.ubuntu.com karmic-updates Release: Unknown error executing gpgv
W: GPG error: http://us.archive.ubuntu.com karmic-security Release: Unknown error executing gpgv
W: GPG error: http://us.archive.ubuntu.com karmic-proposed Release: Unknown error executing gpgv
Along with the standard messages, apt-get displayed
Code:
gpg: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: PC
This occurs on using the update manager, package manager, apt-get update, etc. Any ideas? I've tried deleting the cached files, changing my server, checking that my date & time are correct (signing can be time sensitive), updating gpg (it was already at the latest), and maybe some other things I've forgotten.
System: Ubuntu Lucid
Re: Can't update or use package manager -- gpg error
someone said there is something wrong with the libreadline6.
any other solutions?
Re: Can't update or use package manager -- gpg error
I have the same problem. I found the following:
The problem wasn't gpg after all, but libreadline6. Updating it didn't help, but building it manually (md5: a3a5bf025a1b8df869f45f34098ffc6a rather than 2569b5ed629a3e573b0a8f9ec23a37ff) and copying my version to /usr/local/lib/libreadline.so.6 worked!
I would hope a better solution than this exists.
Re: Can't update or use package manager -- gpg error
I also found a page that talked about the problem of libreadline.so.6 causing the error:
'readline-6.0' causes "undefined symbol: PC" errors
The web page is located at:
http://trac.sagemath.org/sage_trac/ticket/7610
I downloaded the readline-6.0.p1.spkg which I believe is a patch file that is supposed to fix this problem.
I am not familiar with .spkg files, so I will leave it to somebody else who is to figure out how to use it.
Please post your results.
Re: Can't update or use package manager -- gpg error
I fought this problem from synaptic on down to gpg, only to find it was readline all along. My solution was somewhat simpler than building or patching.
in terminal:
ls /usr/local/lib
there was a bunch of readline libs in there (libreadline.so.BLAH-BLAH) so i:
su
mkdir temp
mv /usr/local/lib/libreadline* temp
ldconfig
apt-get update
and voila. went without a hitch. then i deleted my temporary directory (rm -rf /usr/local/lib/temp), exited su.
~2 hours fighting to no avail, and for it work with a few seconds of commands...
I'm not complaining, but it does seem somewhat of a cruel irony.
Re: Can't update or use package manager -- gpg error
Oh my God! it worked, I can't believe this. Me and most likely many others can't thank you enough!
But don't you need the libreadline files because of dependencies or in any other way (before I delete them)?
Re: Can't update or use package manager -- gpg error
:O Great!! I had the same error when upgrading from Jaunty, now it seems working :D
Re: Can't update or use package manager -- gpg error
Wow, it really was THAT simple!. Nice work Semicom.
Re: Can't update or use package manager -- gpg error
Hey can we move this to solved?
Thank you SO much for the answer!
Re: Can't update or use package manager -- gpg error
Many thanks for this, worked for me too!