gpg: symbol lookup error

今天使用sudo apt-get 安装包的时候,出现gpg错误,如下:

gpg: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: UP

google了一下,看到:

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.

///

 

根据上面的网友回答,问题解决了,apt-get 能够正常工作,看来是因为存在多个版本的libreadline.so导致,但是不知道这个libreadline.so在什么时候出现的,头疼。

转载于:https://www.cnblogs.com/little-ant/p/3668793.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值