必选项!更换国内源。如果不更换,sudo apt-get update会非常慢
1.163的
#首先是备份原源地址,然后将虚线间的代码加入sources.list,contrl + x, y 退出
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
sudo nano /etc/apt/sources.list
deb http://mirrors.163.com/ubuntu/ artful main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ artful-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ artful-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ artful-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ artful-backports main restricted universe multiverse
东软信息学院开源镜像站
mirrors.neusoft.edu.cn
清华大学开源镜像站
https://mirrors.tuna.tsinghua.edu.cn/
树莓派的pip源应该在`/etc/pip.conf`
[global]
extra-index-url=https://www.piwheels.org/simple
然后我把网址改成`
https://mirrors.aliyun.com/pypi/simple
[global]
index-url=https://mirrors.aliyun.com/pypi/simple
extra-index-url=https://www.piwheels.org/simple
然后pip执行,
sudo pip3 install homeassistant
速度嗖嗖的,基本上在5m/s,很顺利地完成了下载。
Debian 11.2 镜像地址
网易的镜像网站
下载Debian,结果官网没找到我要的文件,换了一个镜像地址:http://mirrors.163.com/debian-cd/10.8.0/amd64/iso-cd/,这是网易的镜像网站,我下载的是10.8.0版的,有其他需求的可以在http://mirrors.163.com/debian-cd/上自己找,下载速度贼快。
https://pypi.org/simple
https://pypi.org/simple/homeassistant/
0