Ubuntu20.04安装/卸载SecureCRT以及可能遇到的问题

Ubuntu20.04安装/卸载SecureCRT以及可能遇到的问题

安装

参照

安装教程1

安装教程2

这两个教程都挺不错的

卸载

使用dpkg安装的话,使用以下命令卸载

dpkg -P scrt

可能遇到的问题

  • 安装后打开提示

    Could not find platform independent libraries <prefix>
    Could not find platform dependent libraries <exec_prefix>
    Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
    ImportError: No module named site
    

    这个问题搞了好久,上网搜索ubuntu的资料几乎没有,后面查找资料后怀疑是因为ubuntu20.04 不自带python2引起的错误,因为scrt对python2有相关的依赖,就尝试安装python2,问题完美解决

    ubuntu python2安装教程

  • 安装后打开提示

    ./SecureCRT: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
    
  • 提示libpng12

    因为Ubuntu 14以上就已经不再支持libpng12,然而有些软件又依赖于libpng12(如我要使用的Cisco Packet Tracer)。我们可以采用特定的方法安装低版本的libpng。

    sudo vim /etc/apt/source.list
    

    根据Ubuntu官网的提示,我们在其中加上deb http://cz.archive.ubuntu.com/ubuntu xenial main

    然后保存,并更新package list后即可安装

    sudo apt-get update
    sudo apt-get install libpng12-0
    

    也有小伙伴以上还是失败,可以下面这个方法

    sudo add-apt-repository ppa:linuxuprising/libpng12
    sudo apt update
    sudo apt install libpng12-0
    

猜你喜欢

转载自blog.csdn.net/CZT704265085/article/details/109484700