Ubuntu18.04换源
引用:https://blog.csdn.net/u012308586/article/details/102953882
第一步、sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 备份
文件里内容大概是这样:
第二步、修改源文件source.list
- 终端执行命令:sudo chmod 777 /etc/apt/sources.list更改文件权限使其可编辑;
- 执行命令:sudo gedit /etc/apt/sources.list打开文件进行编辑;
- 删除原来的文件内容,复制下面的任意一个到其中并保存(常用的是阿里源和清华源,推荐阿里源);
阿里源:
1 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
2
3 deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
4
5 deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
6
7 deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
8
9 deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
10
11 deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
12
13 deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
14
15 deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
16
17 deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
18
19 deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
清华源:
1 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
2
3 deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
4
5 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
6
7 deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
8
9 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
10
11 deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
12
13 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
14
15 deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
16
17 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
18
19 deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
163源:
1 deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
2
3 deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
4
5 deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
6
7 deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
8
9 deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
10
11 deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
12
13 deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
14
15 deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
16
17 deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
18
19 deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
第三步、更新源
终端执行命令:sudo apt update更新软件列表,换源完成。
Ubuntu18.04换源的更多相关文章
- Ubuntu18.04 更换源
在虚拟机新建一个Ubuntu18.04.1-live-server-amd64当做服务器 在安装软件时报错: slave@slave:~$ sudo -s[sudo] password for sla ...
- Ubuntu16.04换源(转)
乌班图换源(ubuntu 16.04换阿里云源为例) 换成国内最快的阿里云源 第一步:备份原来的源文件 cd /etc/apt/ 1 2 然后会显示下面的源文件sources.list 输入命令 su ...
- Linux18.04换源等等等配置
root用户 sudo passwd root 安装Tools 文件→其他位置→Vmware Tools→打开终端. 管理员权限→copy→tar -zxvf 文件名解压→打开vmware-tools ...
- Ubuntu16.04换源
换成国内最快的阿里云源 第一步:备份原来的源文件 cd /etc/apt/ 然后会显示下面的源文件sources.list 输入命令 sudo cp sources.list sources.list ...
- Ubuntu16.04 换源(或者404 Not Found问题)
当执行sudo apt-get update或者sudo apt-get install命令时,出现以下两个问题: “apt-get 404 Not Found Package Repository ...
- ubuntu 16.04换源 网易、搜狐、阿里云
如何更改源可以在软件更新中选择源 使用如下命令更改(修改前先备份): [html] view plain copy print?sudo cp /etc/apt/source.list /etc/ap ...
- ubuntu 16.04 换源
第一步:备份原来的源文件 cd /etc/apt/ 命令 cp sources.list sources.list.bak 将sources.list备份到sources.list.bak 第二步:替 ...
- Ubuntu18.04更新源
一.备份/etc/apt/sources.list文件 cd /etc/apt sudo cp sources.list sources.list.old 二.选择国内常用的源 #阿里源 deb ht ...
- Ubuntu14.04 换源 阿里云
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup sudo vim /etc/apt/sources.list sudo apt-g ...
随机推荐
- PyQt学习随笔:QTableWidget的信号signal简介
老猿Python博文目录 专栏:使用PyQt开发图形界面Python应用 老猿Python博客地址 QTableWidget非继承自父类的信号如下: cellActivated(int row, in ...
- PyQt(Python+Qt)学习随笔:gridLayout的layoutRowMinimumHeight和layoutColumnMinimumWidth属性
Qt Designer中网格布局(gridLayout)中,layoutRowMinimumHeight和layoutColumnMinimumWidth两个属性分别设置网格布局中各行的最小高度和各列 ...
- PHP代码审计分段讲解(6)
14 intval函数四舍五入 <?php if($_GET[id]) { mysql_connect(SAE_MYSQL_HOST_M . ':' . SAE_MYSQL_PORT,SAE_M ...
- Docker 简介-基本概念(一)
1.前提知识 1.1 linux相关的基础知识 1.2 git相关的知识 2. Docker三要素 Docker主要包含3要素:镜像(image).容器(container).仓库(repositor ...
- 半夜删你代码队 Day3冲刺
一.每日站立式会议 1.站立式会议 成员 昨日完成工作 今日计划工作 遇到的困难 陈惠霖 了解相关网页设计 了解相关网页设计 无 侯晓龙 写了第一个例子 尝试写第一个实例子 无 周楚池 学习 与余金龙 ...
- javascript编写原则
1.不要在同一行声明多个变量2.使用===或!==来比较3.使用字面量的方式来创建对象.数组,替代new Array这种形式4.switch语句必须要带default分支5.fon-in循环中的变量, ...
- vue项目中增加打印功能
export default function printFile(html) { let userAgent = navigator.userAgent; if ( (userAgent.index ...
- 【题解】「AT4303」[ABC119D] Lazy Faith
AT4303 [ABC119D] Lazy Faith[题解][二分] AT4303 translation 有 \(a\) 个点 \(s\),有 \(b\) 个点 \(t\),问从点 \(x\) 出 ...
- AcWing 406. 放置机器人
大型补档计划 题目链接 预处理每个列.行连续块. 每个每个列行只能在一个位置匹配,否则冲突. 符合二分图性质,跑匈牙利即可. 点数最坏情况 \(N * M\) (墙空地相间分布),边数最坏情况 \(N ...
- Java IO流 FileOutputStream、FileInputStream的用法
FileOutputStream.FileInputStream的使用 FileOutputStream是OutputStream的继承类,它的主要功能就是向磁盘上写文件.FileOutputStre ...