概述
NanoPC T4换源
NanoPC T4预装系统基于ubuntu18.04,百度到的换源地址都不太匹配
apt-get 换源
//备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
//更换源
sudo vim /etc/apt/sources.list
以下为arm ubuntu18.04的阿里云源
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse
ubuntu-ports为arm的源,bionic为ubuntu18.04,其他版本自行更换
保存退出后执行:
//更新源列表
sudo apt-get update
pip换源
//创建配置文件进行编辑
mkdir ~/.pip
vim ~/.pip/pip.conf
这里使用豆瓣源
[global]
timeout =6000
index-url =http://pypi.douban.com/simple/
[install]
use-mirrors =true
mirrors =http://pypi.douban.com/simple/
trusted-host =pypi.douban.com
最后
以上就是轻松秋天为你收集整理的NanoPC T4换源NanoPC T4换源的全部内容,希望文章能够帮你解决NanoPC T4换源NanoPC T4换源所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复