今天使用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在什么时候出现的,头疼。

最新文章

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

热门文章

  1. Android 卡顿优化 1 卡顿解析
  2. shadow 优化
  3. 解决在win系统下使用DOS命令开启TensorBoard的问题及方法步骤
  4. 让网页在ie浏览器下以最高版本解析网页
  5. 可以ping通虚拟机但不能telnet 9000端口
  6. 一般源码安装添加的GD库 是不支持 jpeg 格式的图片的
  7. SQL PL/SQL语法手册
  8. CF无法全屏怎么办
  9. C#秘密武器之委托
  10. Android File类 根据官方文档理解