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在什么时候出现的,头疼。
最新文章
- Java Interview Test
- 为什么要用hibernate 与基于数据库表结构的项目开发
- unity3d插件Daikon Forge GUI 中文教程3-基础控件Button和Sprite的使用
- lua weak table 概念解析
- Hibernate的关联映射——单向1-1关联
- 李洪强iOS开发之多线程编程2-NSOperation
- C#控件背景透明的几种解决方案
- .Net 异步随手记(三)
- render函数(转)
- Lodop打印较大的超出纸张的图片
- bzoj 1103 : [POI2007]大都市meg (树链剖分+线段树)
- Xml的转义字符--约束-xml解析器
- vue路由vue-router的使用
- loadrunner基础学习笔记八-分析场景
- Site.ForProductsOfApple
- TF-IDF原理
- PHP 连接oracle
- Windows下openssl的下载安装和使用
- Prometheus 操作符
- HighChart 体验之旅 (后台传递JSON参数和数据的方法)