Ubuntu 18.04 软件源修改成国内源(文件或界面形式)
国内有很多Ubuntu的镜像源,包括阿里的、网易的,还有很多教育网的源,比如:清华源、中科大源。
我们这里以清华源为例讲解如何修改Ubuntu 18.04里面默认的源。
1、输入命令修改sources.list文件,当然需要超级权限,所以要加sudo;
sudo gedit /etc/apt/sources.list
编辑/etc/apt/sources.list文件
2、在文件最前面添加以下条目(操作前请做好相应备份):
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
3、修改完成后,保存文件,警告什么的都不理,然后运行下面的命令。
sudo apt-get update
sudo apt-get upgrade
4、到此完成国内源更新。
附加其他源内容,需要的自己添加进sources.list文件里面就ok了。
阿里源
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-proposed main restricted universe multiverse
#deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed 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 https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
163源
deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
Ubuntu 18.04 在系统设置里面是找不到软件源设置界面按钮的(找了好久都没找到T-T),所以需要一些指令帮助启动图形界面以便设置软件源。
1、输入命令
sudo update-manager -c -d
2、会弹出Software Updater提示框,这就好办了,点击左下角Settings…按钮,久违的软件源设置就会出来啦。
3、那就开始愉快地设置软件源吧!
Ubuntu 18.04 软件源修改成国内源(文件或界面形式)相关推荐
- Ubuntu 18.04 软件源修改成国内源
国内有很多Ubuntu的镜像源,包括阿里的.网易的,还有很多教育网的源,比如:清华源.中科大源. 我们这里以清华源为例讲解如何修改Ubuntu 18.04里面默认的源. 备份 sudo cp /etc ...
- Linux终端文件夹管理员,如何在Ubuntu 18.04中以管理员权限打开文件和文件夹
本文向你介绍在Ubuntu 18.04中以管理员权限打开文件和文件夹. 与 Windows 中的资源管理器一样,在 Ubuntu 系统的 Nautilus 文件管理器中,您也可以查看到系统中的所有文件 ...
- linux终端界面美化,Ubuntu 18.04系统美化记录:Grub2\主题\登录界面\终端美化
初装Ubuntu 18.04系统后想美化操作系统,该怎么做?以下为你介绍Ubuntu 18.04美化一体化:Grub2美化.主题美化.登录界面美化.终端美化.以下美化仅是初级介绍,如果需要更多请看Li ...
- Ubuntu 12.04软件源、更新源
首先,备份一下Ubuntu 13.04 原来的源地址列表文件 sudo cp /etc/apt/sources.list /etc/apt/sources.list.old 然后进行修改 sudo g ...
- Ubuntu 18.04 更换源
① Ubuntu版本: 18.04 ② 使用模板:模板:18.04source deb http://cn.archive.ubuntu.com/ubuntu/ boinc main restrict ...
- 西电开源社区Ubuntu 10.04软件源
使用方法: sudo mv /etc/apt/sources.list{,.back} //备份一下原来的配置,可以跳过 sudo gedit /etc/apt/sources.list 把下边的 ...
- OpenLDAP / ubuntu 18.04 下源码编译及安装说明
一.下载安装包 1.OpenLDAP v2.4.49 链接:https://pan.baidu.com/s/1ezZSgCCUxJV7_ou0v58IHQ 提取码:gmie 2.Berkele ...
- Linux Ubuntu 18.04 换源(阿里云源)
文章目录 一.比较好用的源 二.使用步骤 一.比较好用的源 阿里云源 清华源 二.使用步骤 这个可以直接在终端中运行 打开终端,输入以下命令 如下(阿里云源): sudo touch /etc/apt ...
- Ubuntu 18.04及Snap体验——让Linux入门更简单(转))
https://www.linuxidc.com/Linux/2018-06/152993.htm 初次听说过Linux的时候,是大一计算机课时候老师介绍说除了Windows还有Linux.Unix操 ...
最新文章
- 【机器学习入门到精通系列】机器学习系统设计(Precision Recall)
- 25 linux ndk 头文件_正点原子Linux第二十五章RTC实时时钟实验
- lecture notes for investment bank internship
- 双目立体匹配经典算法之Semi-Global Matching(SGM)概述:匹配代价计算之互信息(Mutual Information,MI)...
- vim 插件_你不得不知道的适用于程序员的VIM插件
- 朝鲜不小心泄漏了它的.kp域名DNS数据
- 智慧气象 开源_来自开源的半条命11条智慧
- Kotlin学习笔记22 协程part2 join CoroutineScope 协程vs线程
- centos6.5 nginx1.8 php mysql,CentOS6.5 源码安装Nginx1.8 + PHP7.0.6 + MySQL5.7.12
- adobe blueprint
- 实战CSS:苏宁商城静态实现
- shell脚本命令行参数里的空白符
- 单片机蜂鸣器奏乐代码例子
- 福昕pdf转word免费版下载(附教程)
- python企业微信登录_python 微信企业号
- android 播放器 samba,(发烧屋)教你如何解决蓝光机 KODI无法打开局域网SMB共享的问题/安卓播放器/硬盘播放器...
- javascript 表单提交和验证的方法
- 喜报!字根科技牵手荣之联,提供错别字检测解决方案
- element-ui图片上传组件之限制每次5张上传(或者自定义每次几张上传)
- mysql自增列防止恢复初始_重置mysql的自增列 AUTO_INCREMENT初时值 | 瑕疵学院 – 学习无瑕疵,成就有保障...