【嵌入式硬件Esp32】Ubuntu18.04 更换阿里云软件源

使用Ubuntu 的apt-get来安装软件是总是因为官方源的速度太慢而抓狂。
但是用阿里云的源就很快,下面总结一下如何更换Ubuntu的软件源。

一、备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
 
二、修改
sudo vim /etc/apt/sources.list
 
将source.list文件内容替换成下面的

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
 
三、更新
sudo apt-get update

原文地址:https://www.cnblogs.com/xiaoyehack/p/9820605.html

时间: 2024-11-05 19:02:58

【嵌入式硬件Esp32】Ubuntu18.04 更换阿里云软件源的相关文章

Ubuntu16.04 替换阿里云软件源

一,备份原来的源文件 1,首先,进入源文件 sources.list 所在的目录: cd /etc/apt/ 2,执行sudo cp sources.list sources.list.bak对源文件进行备份,以防万一: 二,修改源文件内容 1,阿里云软件源的文件的内容如下: #deb包 deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb http://mirrors.aliyu

安装丨CentOS7更换阿里云yum源

参考: https://blog.csdn.net/HistoryCreator/article/details/78570711 https://yq.aliyun.com/ziliao/408380 1.备份系统yum源 cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak 2.设置阿里云yum源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://m

Ubuntu 14.04 更换阿里云源

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #备份 sudo vim /etc/apt/sources.list #修改 sudo apt-get update #更新列表 阿里云源 deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trust

最新阿里云软件源Ubuntu 18.04源

阿里云Ubuntu 18.04源 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main rest

centos7更换阿里云yum源后无法安装nginx的问题解决

在centos7上,我将yum源更换为阿里云源,按照配置完成后,想使用yum安装nginx,但是老是提示我找不到nginx,没有可用的安装包,无论我是换为华为云的yum源,还是其他国内源,都无法找到.我的centos版本为7.7 无论我是安装epel-release,还是安装nginx的仓库,都没办法找到nginx包 我的nginx repo配置也没问题 一安装就找不到 但是可以用yum搜索到nginx的其他组件 这不科学 后来我想一个办法,在能够yum安装nginx的同样的机器上,把nginx

更换阿里云YUM源

下载阿里云的repo文件 centos 6: wget http://mirrors.aliyun.com/repo/Centos-6.repo centos 7: wget http://mirrors.aliyun.com/repo/Centos-7.repo cd /etc/yum.repos.d 备份旧的源 cp CentOS-Base.repo CentOS-Base.repo_2015-06-11 覆盖旧的源文件 mv Centos-6.repo CentOS-Base.repo 生

ubuntu 更换阿里云的源

首先备份本地的源 cp /etc/apt/sources.list /etc/apt/sources.list.bak 编辑源文件 vim /etc/apt/sources.list 删除原有内容,添加下面内容 deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-security main rest

Centos7更换阿里云yum源

备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup或mv /etc/yum/repos.d/{,CentOS-Base.repodate -I} centos7 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 或 curl -o /etc/yum.repos.d/

树莓派更换阿里云镜像源

sudo nano /etc/apt/sources.list #将原有内容用#注释掉 deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi deb-src http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi sudo nano /etc/apt/sources.list.d/rasp