Ubuntu 18.04 更换阿里源

1.备份

sudo cp /etc/apt/source.list /etc/apa/source.list.bak

2.编辑

sudo vim /etc/apt/source.list

3.修改内容

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

4.软件更新

sudo apt-get update 

5.更新软件包

sudo apt-get upgrade 

原文地址:https://www.cnblogs.com/dyanbk/p/11518436.html

时间: 2024-10-06 11:10:45

Ubuntu 18.04 更换阿里源的相关文章

Ubuntu 18.04 更换apt源

1.备份apt源 cp /etc/apt/sources.list /etc/apt/sources.list.bak 2.修改apt源 sudo gedit /etc/apt/sources.list 3.删除所有,添加阿里源 #添加阿里源 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-se

Ubuntu 18.04修改默认源

安装Ubuntu 18.04后,使用国外源太慢了,修改为国内源会快很多. 修改阿里源为Ubuntu 18.04默认的源 备份/etc/apt/sources.list #备份 cp /etc/apt/sources.list /etc/apt/sources.list.bak 在/etc/apt/sources.list文件前面添加如下条目 #添加阿里源 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe m

Ubuntu 18.04修改默认源为国内源

安装Ubuntu 18.04后,使用国外源太慢了,修改为国内源会快很多. 修改阿里源为Ubuntu 18.04默认的源 备份/etc/apt/sources.list#备份cp /etc/apt/sources.list /etc/apt/sources.list.bak 在/etc/apt/sources.list文件前面添加如下条目#添加阿里源deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multi

win10 linux Ubuntu 18.04更换国内源

安装了win10的linux bash 版本为ubuntu 18.04 首先查询自己的linux版本信息 cat /etc/issue   然后对系统的镜像源文件进行备份,再修改镜像源文件/etc/apt/sources.list sudo cp /etc/apt/sources.list /etc/apt/sources.list_b 在镜像源文件的最前面添加国内镜像源地址即可 中科大镜像 deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main

给Ubuntu 16.04更换更新源

给自家的Ubuntu下载软件速度有点慢,毕竟是从国外下载软件,就想更换到国内比较好的更新源(就是这些软件所在的服务器),一般直接百度Ubuntu更新源就能出来一大堆,这时候最好是找和自己Ubuntu版本一致的更新源,我的Ubuntu版本是16.04,下面是我找到的一个比较好的更新源 http://www.cnblogs.com/bovenson/p/5752213.html 下面是更换步骤: 1  备份原来的更新源 cp /etc/apt/sources.list /etc/apt/source

Ubuntu17.04更换阿里源

命令:sudo vim /etc/apt/sources.list 阿里源: deb http://mirrors.aliyun.com/ubuntu/ zesty main multiverse restricted universe deb http://mirrors.aliyun.com/ubuntu/ zesty-backports main multiverse restricted universe deb http://mirrors.aliyun.com/ubuntu/ zes

Ubuntu 18.04 修改默认源为国内源

1.备份/etc/apt/sources.list #备份 cp /etc/apt/sources.list /etc/apt/sources.list.bak 2.在/etc/apt/sources.list文件前面添加如下条目 #添加阿里源 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-s

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配置OpenCV 4.2.0

目录 Step 1: 安装OpenCV的依赖包 Step 2: 下载OpenCV 4.2.0和OpenCV Contrib 4.2.0 Step 3: 使用cmake构建库 Step 4: 使用make构建库 Step 5: 修改opencv4.pc文件 Step 6: 在.bashrc文件中添加PKG_CONFIG_PATH Step 7: 使用C++代码进行验证 本文主要介绍在Ubuntu 18.04中从源码安装配置OpenCV,并使用一个简单的例子验证是否安装成功: 具体安装配置步骤,参考