博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
2017年BackBox5和Ubuntu16.04.1国内更新源
阅读量:5134 次
发布时间:2019-06-13

本文共 9250 字,大约阅读时间需要 30 分钟。

BackBox是基于Ubuntu的Linux发行版,因此,我们可以使用Ubuntu的更新源作为BackBox的更新源。

1.查看系统版本信息:

输入:

uname -a

显示计算机及操作系统的有关信息,在回显里我们可以看到:

Linux master 4.10.0-38-generic #42~16.04.1-Ubuntu SMP Tue Oct 10 16:30:51 UTC 2017 i686 i686 i686 GNU/Linux

这表明我们现在使用的Linux内核是Ubuntu

另外我们还可以通过输入命令:

cat /proc/version

查看内核版本,运行回显如下:

Linux version 4.10.0-38-generic (buildd@lgw01-amd64-020) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #42~16.04.1-Ubuntu SMP Tue Oct 10 16:30:51 UTC 2017

输入:

cat /etc/issue

可以查看当前使用的发行版的信息,回显如下:

BackBox Linux 5 \n \l

因此,本文的操作环境为:

BackBox 5(基于Ubuntu16.04.1)

当然,在添加更新源时对版本的要求也不是这么绝对,一般情况下,只要更新源本身还在更新并能通过互联网访问,那么更新源就是可以使用的。

2.BackBox 5自带的更新源

BackBox 5自带的更新源均指向Ubuntu的官网地址,自带的更新源如下:

#deb cdrom:[BackBox Linux 5 - Release i386]/ xenial main multiverse restricted universe# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to# newer versions of the distribution.deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted## Major bug fix updates produced after the final release of the## distribution.deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-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/ xenial universe# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial universedeb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-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/ xenial multiverse# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial multiversedeb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-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/ xenial-backports main restricted universe multiverse# deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-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 xenial partner# deb-src http://archive.canonical.com/ubuntu xenial partnerdeb http://security.ubuntu.com/ubuntu xenial-security main restricted# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricteddeb http://security.ubuntu.com/ubuntu xenial-security universe# deb-src http://security.ubuntu.com/ubuntu xenial-security universedeb http://security.ubuntu.com/ubuntu xenial-security multiverse# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse

3.补充BackBox国内更新源:

输入:

sudo leafpad /etc/apt/sources.list

使用leadpad打开更新源配置文件。

也可以输入:

sudo vi /etc/apt/sources.list

使用vi编辑器打开更新源配置文件

:不要忘记加上sudo

将以下更新源复制到原更新源的前面保存即可:

#阿里云源# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricteddeb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-propertiesdeb http://mirrors.aliyun.com/ubuntu/ xenial main restricteddeb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-propertiesdeb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricteddeb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-propertiesdeb http://mirrors.aliyun.com/ubuntu/ xenial universedeb http://mirrors.aliyun.com/ubuntu/ xenial-updates universedeb http://mirrors.aliyun.com/ubuntu/ xenial multiversedeb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiversedeb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-propertiesdeb http://archive.canonical.com/ubuntu xenial partnerdeb-src http://archive.canonical.com/ubuntu xenial partnerdeb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricteddeb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-propertiesdeb http://mirrors.aliyun.com/ubuntu/ xenial-security universedeb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse#网易源deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse#中科大源:deb http://debian.ustc.edu.cn/ubuntu/ trusty main multiverse restricted universedeb http://debian.ustc.edu.cn/ubuntu/ trusty-backports main multiverse restricted universedeb http://debian.ustc.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universedeb http://debian.ustc.edu.cn/ubuntu/ trusty-security main multiverse restricted universedeb http://debian.ustc.edu.cn/ubuntu/ trusty-updates main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ trusty main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ trusty-backports main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ trusty-security main multiverse restricted universedeb-src http://debian.ustc.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe#东北大学源deb-src http://mirror.neu.edu.cn/ubuntu/ xenial main restricted #Added by software-propertiesdeb http://mirror.neu.edu.cn/ubuntu/ xenial main restricteddeb-src http://mirror.neu.edu.cn/ubuntu/ xenial restricted multiverse universe #Added by software-propertiesdeb http://mirror.neu.edu.cn/ubuntu/ xenial-updates main restricteddeb-src http://mirror.neu.edu.cn/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-propertiesdeb http://mirror.neu.edu.cn/ubuntu/ xenial universedeb http://mirror.neu.edu.cn/ubuntu/ xenial-updates universedeb http://mirror.neu.edu.cn/ubuntu/ xenial multiversedeb http://mirror.neu.edu.cn/ubuntu/ xenial-updates multiversedeb http://mirror.neu.edu.cn/ubuntu/ xenial-backports main restricted universe multiversedeb-src http://mirror.neu.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-propertiesdeb http://archive.canonical.com/ubuntu xenial partnerdeb-src http://archive.canonical.com/ubuntu xenial partnerdeb http://mirror.neu.edu.cn/ubuntu/ xenial-security main restricteddeb-src http://mirror.neu.edu.cn/ubuntu/ xenial-security main restricted multiverse universe #Added by software-propertiesdeb http://mirror.neu.edu.cn/ubuntu/ xenial-security universedeb http://mirror.neu.edu.cn/ubuntu/ xenial-security multiverse#清华大学源# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricteddeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricteddeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricteddeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiversedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiversedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiversedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricteddeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse

:更改更新源之前最好先对原有的更新源做一个备份,备份命令:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

end

更多内容请访问我的个人网站

转载于:https://www.cnblogs.com/wildernessdreams/p/9053815.html

你可能感兴趣的文章
python tkinter-单选、多选
查看>>
2014年03月 面试总结
查看>>
Python3安装turtle提示错误:Command "python setup.py egg_info" failed with error code 1
查看>>
欧拉函数---预处理打表
查看>>
题解报告:hdu 1028 Ignatius and the Princess III(母函数or计数DP)
查看>>
【转】vue项目重构技术要点和总结
查看>>
sys.fn_dblog
查看>>
遭遇“HTTP 错误 500.19 无法访问请求的页面,因为该页的相关配置数据无效。”...
查看>>
项目调研的误区和关键点
查看>>
第四十二节,configparser特定格式的ini配置文件模块
查看>>
第四十七节,random 随机数模块
查看>>
SPOJ DQUERY D-query(主席树 区间不同数个数)
查看>>
八 Civil3d常用显示样式的编辑与创建 ----点标签样式2
查看>>
九校联考-DL24凉心模拟Day2T1 锻造(forging)
查看>>
生产阶段Webpack打包【基础打包】
查看>>
Cortex M3/M4 学习摘要(二)
查看>>
C#时间的味道——任时光匆匆我只在乎你
查看>>
腾讯微信技术总监周颢:一亿用户增长背后的架构秘密
查看>>
蓝桥杯 打印十字图
查看>>
抽象方法与虚方法
查看>>