Ubuntu 21.10安装国内源
为什么要安装国内源?因为默认的软件更新源是国外的,在国内使用下载速度很慢。我们只需要把它默认更新软件的国外网址改成我们国内的镜像网址就行了。
首先将我们的原来的软件源备份:(这样就算改错了也能恢复)
sudo cp -v /etc/apt/sources.list /etc/apt/sources.list.backup
终端执行chmod命令更改文件权限使软件源文件可编辑:
sudo chmod 777 /etc/apt/sources.list
之后通过gedit命令编辑软件源:
sudo gedit /etc/apt/sources.list
然后将里面的国外的网址改为国内的镜像网址就行了。(下面是修改前的样子)
#deb cdrom:[Ubuntu 21.10 _Impish Indri_ - Release amd64 (20211012)]/ impish main restricted# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ impish main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ impish main restricted## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ impish-updates main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ impish-updates main restricted## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ impish universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ impish universe
deb http://cn.archive.ubuntu.com/ubuntu/ impish-updates universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ impish-updates universe## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://cn.archive.ubuntu.com/ubuntu/ impish multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ impish multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ impish-updates multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ impish-updates multiverse## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ impish-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ impish-backports main restricted universe multiverse## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu impish partner
# deb-src http://archive.canonical.com/ubuntu impish partnerdeb http://security.ubuntu.com/ubuntu impish-security main restricted
# deb-src http://security.ubuntu.com/ubuntu impish-security main restricted
deb http://security.ubuntu.com/ubuntu impish-security universe
# deb-src http://security.ubuntu.com/ubuntu impish-security universe
deb http://security.ubuntu.com/ubuntu impish-security multiverse
# deb-src http://security.ubuntu.com/ubuntu impish-security multiverse# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
修改后:(我这里使用的是清华的镜像源)
#deb cdrom:[Ubuntu 21.10 _Impish Indri_ - Release amd64 (20211012)]/ impish main restricted# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ impish main restricted## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish-updates main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ impish-updates main restricted## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ impish universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish-updates universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ impish-updates universe## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ impish multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish-updates multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ impish-updates multiverse## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ impish-backports main restricted universe multiverse## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu impish partner
# deb-src http://archive.canonical.com/ubuntu impish partnerdeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu impish-security main restricted
# deb-src http://security.ubuntu.com/ubuntu impish-security main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu impish-security universe
# deb-src http://security.ubuntu.com/ubuntu impish-security universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu impish-security multiverse
# deb-src http://security.ubuntu.com/ubuntu impish-security multiverse# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
对比发现:只不过是把每个help.ubuntu.com(国外)替换成了mirrors.tuna.tsinghua.edu.cn,(清华镜像网址)。
修改完软件源后,更新软件列表和软件:
sudo apt updatesudo apt upgrade
对于其他版本的Ubuntu也可照着修改,只需改网址就行。
Ubuntu 21.10安装国内源相关推荐
- ubuntu 18.04 LTS 国内源安装docker
ubuntu 18.04 LTS 国内源安装docker 检查系统内核版本 $uname -r 4.15.0-42-generic 修改apt国内源为中科大源 sudo cp /etc/apt/sou ...
- ubuntu 21.04安装教程
ubuntu 21.04安装教程 制作启动U盘*(虚拟机安装此步省略)* U盘刻录工具 balenaEtcher 开始安装 选择语言 选择键盘布局 网络设置 代理设置 源设置 源设置为国内源,这里设置 ...
- 如何现在就用到 Ubuntu 21.10
Ubuntu 21.10 "Impish Indri" 刚刚发布.如果你正在使用 Ubuntu 21.04,你应该有升级到 Ubuntu 21.10 的选项.然而,这种推出将是逐步 ...
- 从 Ubuntu 21.04 升级到 Ubuntu 21.10
Ubuntu 21.10 "Impish Indri" 刚刚发布.如果你正在使用 Ubuntu 21.04,你应该有升级到 Ubuntu 21.10 的选项. 然而,这种推出将是逐 ...
- Ubuntu 21 .1安装wps office 2019并解决字体缺失问题教程
部署环境 系统:Ubuntu 21.10 软件:wps-office_11.1.0.10920_amd64.deb 组件:wps-fonts.zip字体包 1.访问WPS官网下载适用的DEB格式的安装 ...
- Ubuntu 8.10 安装后的详细设置
xmarklet网络书签,收集自己的网络书签,创建自己的网站导航. [url]http://www.kmimagine.com/xmarklet/index.aspx[/url] [b]Ubuntu ...
- linux系统开发版下载,Ubuntu 21.10(Impish Indri)桌面开发版iso下载地址
Ubuntu 21.10(Impish Indri)已经提供开发版iso下载了,用户可下载impish-desktop-amd64.iso.arm64.iso试用,这些iso都是每日构建版本,使用这些 ...
- HomeBrew 安装 国内源
HomeBrew 安装 国内源 安装 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/in ...
- linux gif 编辑软件,Ubuntu 16.10 安装byzanz截取动态效果图工具
Ubuntu 16.10 安装byzanz截取动态效果图工具 1.了解byzanz截取动态效果图工具 byzanz能制作文件小,清晰的GIF动态效果图,不足就是,目前只能通过输入命令方式来录制. by ...
最新文章
- MCSE2003学习之六
- HttpPrinter与YunPrinter区别
- 允许用户把多个作业同时提交给计算机,2005年7月操作系统试题和答案
- python3.x中的生成器generator调用next方法
- 人与自然《食虫猎手-下》
- python中有数组吗_python有数组吗
- 模拟 http connecttimeout_燃烧室数学模型模拟软件NPSS
- jQuery源码06-jQuery = function(){};给JQ对象,添加一些方法和属性,extend : JQ的继承方法,jQuery.extend()...
- Ubuntu 解锁被锁定的账号
- 字符分割函数strtok
- TSNAdb:肿瘤新抗原数据库
- tensorflow-鸢尾花分类(神经网络)
- 壹沓科技签约七匹狼,助力「中国男装领导者」数字化转型
- 走近棒球运动·台湾棒球历程·MLB棒球创造营
- 论文:并行化 Metropolis-Hastings 算法的一般结构
- C 头歌 字符串插入
- MySQL:日期和时间函数
- pytorch1.13启用caffe2
- mysql set password_MySQL修改用户的密码(SET PASSWORD)的例子
- 专访机器学习祖师爷 Tom Mitchell:带着理性拥抱机器学习的热潮
热门文章
- 华为OD机试真题 C++ 实现【开放日活动】【100%通过率】【2022.11 Q4 新题】
- js小案例:实现选项卡功能
- Hibernate之Query接口的uniqueResult 方法
- scrapy 爬网站 显示 Filtered offsite request to 错误.
- 十三周任务四 Csolid CBox CBall CCylinder
- 如何写出漂亮的 JavaScript 代码
- android motionevent 坐标,Android开发中MotionEvent坐标获取方法分析
- makefile/make用法
- 显示阴历如: 2007-7-3 星期二 丁亥年(猪)五月十九亥时 离高考还有340天
- 解析xml格式字符串