树莓派2、3更换镜像源

树莓派系统安装后默认使用国外的镜像源,因为墙的原因,所以在安装模块的时候速度非常慢,因此需要将镜像源换成国内的。

1、打开配置sources.list文件

sudo nano /etc/apt/sources.list

2、用#注释掉原文件内容,用以下内容取代(Ctrl + O 保存再 Ctrl + X 退出):

deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi

3、打开配置raspi.list文件

sudo nano /etc/apt/sources.list.d/raspi.list

4、用#注释掉原文件内容,用以下内容取代(Ctrl + O 保存再 Ctrl + X 退出):

deb http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui
deb-src http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui

5、编辑镜像站后,请使用命令

sudo apt-get update

原文地址:https://www.cnblogs.com/ZHENGJUNupperclassman/p/9761533.html

时间: 2024-07-30 23:08:33

树莓派2、3更换镜像源的相关文章

ubuntu16.04更换镜像源

1.备份原有 cp /etc/apt/sources.list /etc/apt/sources.list.old 2.打开阿里巴巴镜像源:  https://opsx.alibaba.com/mirror,打开帮助找到 ubuntu 16.04 配置如下 deb http://mirrors.aliyun.com/ubuntu/ xenial main deb-src http://mirrors.aliyun.com/ubuntu/ xenial main deb http://mirror

Python更换镜像源

目录 Windows Mac 这篇文章将解除你使用python的pip install xxx受到的网速限制,如果只是下载较小的第三方库,可以尝试pip --default-timeout=100 install -U xxx. Windows 找到python安装目录下的:\Lib\site-packages\pip\models\index.py文件,将PYPI的值改为你所需要的镜像源即可,例如改为豆瓣镜像源: #PyPI = Index('https://pypi.python.org/'

CentOS 7更换镜像源

1.先安装wget,执行命令:"yum install -y wget". 2.打开阿里镜像:https://developer.aliyun.com/mirror/ 3.下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/ . wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 或者 curl -o /etc/yum.repos.d/

Jenkins基础系统之更换镜像源

清华大学镜像地址:https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json 操作步骤: 进入jenkins系统管理 进入插件管理 点击高级,修改升级站点的地址为清华大学镜像地址 二.更换源配置 1. 关闭对 update-center.json 的安全检查 将下列属性添加到 Jenkins 启动参数 hudson.model.DownloadService.noSignatureCheck=true 例子1 J

CentOS更换镜像源

使用说明 首先备份/etc/yum.repos.d/CentOS-Base.repo 1 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 下载对应版本的repo文件,放入/etc/yum.repos.d/(操作前请做好相应备份) CentOS7 CentOS6 CentOS5 运行以下命令生成缓存 yum clean all yum makecache 原文地址:https://www.c

各种镜像源的更换

各种镜像源的更换 树莓派 本次采用的是一块树莓派3B-PLUS的板子 树莓派的版本信息确定 查看树莓派的版本信息的几种方式: uname -a Linux raspberrypi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l GNU/Linux lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian G

树莓派更新镜像源于镜像源推荐

http://mirrors.cqu.edu.cn/wiki/index.php?title=Raspbian http://mirrors.lifetoy.org/ deb http://mirrors.zju.edu.cn/raspbian/raspbian/ jessie main contrib non-free rpi deb-src http://mirrors.zju.edu.cn/raspbian/raspbian/ jessie main contrib non-free rp

为你的pip更换一个国内的镜像源

为你的pip更换一个国内的镜像源 是否常常为pypi官网被无故和谐掉导致pip不能下载python的各个包而痛心疾首? 是否常常在深夜里看着pip install 下载包的速度慢如乌龟而长吁短叹? 是否常常下载wheel文件到本地手动安装只为了不在自动安装的下载中途断开连接? 是时候更换一个国内的镜像源了!(祝病魔早日战胜方校长) 国内pypi镜像 V2EX:http://pypi.v2ex.com/simple 豆瓣:http://pypi.douban.com/simple 中国科学技术大学

Composer 更换为国内镜像源(Packagist 镜像)

以 laravel 项目的 composer.json 配置文件为例,添加本镜像服务配置信息后如下所示(注意红色代码): { "config": { "preferred-install": "dist", "sort-packages": true, "optimize-autoloader": true, "secure-http": false }, "repositor