必威体育Betway必威体育官网
当前位置:首页 > IT技术

Ubuntu学习系列——添加源

时间:2019-11-03 13:14:34来源:IT技术作者:seo实验室小编阅读:62次「手机版」
 

ubuntu 源

操作步骤

1.打开终端使用root用户

sudo su 
  1. 编辑sources.list
sudo vim /etc/apt/sources.list
  1. 添加源

    在sources.list文件末尾添加

deb http://archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse

国内源:

#中科大源
deb 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 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 https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

#阿里云源
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 restricted universe multiverse
deb 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 main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

#清华源
deb 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 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 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

更改完成之后执行以下命令:

sudo apt-get update
sudo apt upgrade

参考:

Ubuntu apt-get install E: 无法定位软件

Ubuntu18.04更换国内源

文章最后发布于: 2019-04-19 09:13:15

相关阅读

淘宝开网店如何寻找淘宝货源?

网上开店,进货是很重要的环节,不管是通过哪些渠道寻找货源,低廉的价格,跟品质,服务都是关键,物美价廉则会让你的网店有成功的基石。实体

【190516】一个VC++下拉字体预览框源代码

源码下载简介 一个VC++下拉字体预览框,像Word的字体选择功能一样,鼠标点击下拉框的时候,下拉框中的字体名称显示的样式就是该字体的

如何在百度百科和搜搜百科添加丰富外链?

推广网站的朋友都知道,外链是网站推广的重重之重。如何获取高质量的外链,我们首先想到的就是百度百科和搜搜百科。这两个百科的权重

直通车添加相关性没有满的词会怎样?如何添加关键词比较

淘宝直通车最重要的就是关键词,添加相关性好、展现高、点击高的关键词,有助于提高推广的效果,直通车添加相关性没有满的词会怎样呢?

电路第五版 邱关源、罗先觉 编|高等教育出版社 大学课

来源:http://www.daanbar.com/book-info/1715.html 答案吧 电路第五版 邱关源、罗先觉 编 高等教育出版社 第1章 电路模型和电路

分享到:

栏目导航

推荐阅读

热门阅读