zoukankan      html  css  js  c++  java
  • 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在什么时候出现的,头疼。

  • 相关阅读:
    ZOJ3513_Human or Pig
    ZOJ2083_Win the Game
    ZOJ2725_Digital Deletions
    ZOJ2686_Cycle Gameu
    UVALive
    ZOJ2290_Game
    ZOJ3067_Nim
    P3159 [CQOI2012]交换棋子(费用流)
    P3153 [CQOI2009]跳舞(最大流多重匹配)
    P3121 [USACO15FEB]审查(黄金)Censoring (Gold)(ac自动机)
  • 原文地址:https://www.cnblogs.com/little-ant/p/3668793.html
Copyright © 2011-2022 走看看