TK1遇到的坑

在Ubuntu TK1上进行软件安装时遇到了一系列问题,包括源失效、依赖问题、SSL证书错误、库版本冲突等。通过更换旧版本源、使用aptitude解决依赖、时间同步、软链接库文件等方法逐一解决。对于pip安装问题,使用国内源提高速度并解决了模块导入错误。
摘要由CSDN通过智能技术生成

由于tk1是arm架构的,很多库的安装依赖都很奇怪,由此导致下面一系列坑:

1 源的问题:

默认的源不知道为何无法apt-get了,然尝试用USTC 还有163的源,在apt-get update的时候都报错 关于armhf的

解决方案:使用下面的源

SOLVED!
It could be useful for others (that's strange i'm the only that faced this issue!):
since Ubuntu raring has reached EOL and packages removed, i tried to find packages on other sites. I found that when a release is at EOL packages are moved in old-releases.ubuntu.com!

So, it's enough you edit the /etc/apt/sources.list file, cancel the previous line and insert the following new lines:

deb http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse

deb http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse

deb http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse

deb http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse

then save, close and in terminal sudo apt-get update.



2. 使用sudo apt-get install python-pip时

各种提示缺少包,按照提示下载包时 又说版本不对

解决方案:

sudo apt-get purge python-pkg-resources

Once completed successfully, first run

  sudo apt-get -f install

then

   sudo apt-get install python-pip
3. pip install时显示缺少证书(使用如下的方法均未解决问题,解决第4个坑时,重装了pip ,选择了第一y,然后再安装build-essensial,不过似乎没安装上,anyway,解决了)

Could not fetch URL https://pypi.python.org/simple/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed>


解决方案:

方案1.

pip install --index-url=http://pypi.python.org/simple/ --trusted-host pypi.python.org pythonPacka

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值