Ubuntu16.04 源更改
图形界面更改
- 自行百度
命令行更改
- 打开
sources.list
源配置文件(为防止错误,可以先复制一份作为备份
1|sudo gedit /etc/apt/source.list
- 复制源
(1)东北大学源
deb-src http://mirror.neu.edu.cn/ubuntu/ xenial main restricted #Added by software-properties
deb http://mirror.neu.edu.cn/ubuntu/ xenial main restricted
deb-src http://mirror.neu.edu.cn/ubuntu/ xenial restricted multiverse universe #Added by software-properties
deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates main restricted
deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirror.neu.edu.cn/ubuntu/ xenial universe
deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates universe
deb http://mirror.neu.edu.cn/ubuntu/ xenial multiverse
deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates multiverse
deb http://mirror.neu.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirror.neu.edu.cn/ubuntu/ xenial-security main restricted
deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirror.neu.edu.cn/ubuntu/ xenial-security universe
deb http://mirror.neu.edu.cn/ubuntu/ xenial-security multiverse
(2) 阿里云源
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
(3) 163源
deb https://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb https://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb https://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb https://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb https://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src https://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb-src https://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src https://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src https://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src https://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multivers
- 更新缓存
sudo apt-get update
完成换源
谷歌浏览器安装
- 谷歌浏览器下载,将下载源加入到系统的源列表。如果返回“地址解析错误”等信息,可以百度搜索其他提供 Chrome 下载的源,用其地址替换掉命令中的地址。
sudo wget https://repo.fdzh.org/chrome/google-chrome.list -P /etc/apt/sources.list.d/
- 导入谷歌软件的公钥,如果成功,命令将返回ok
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- 系统列表更新
sudo apt-get update
- 执行对谷歌 Chrome 浏览器(稳定版)的安装
sudo apt-get install google-chrome-stable /usr/bin/google-chrome-stable
/usr/bin/google-chrome-stable
将会启动谷歌 Chrome 浏览器,它的图标将会出现在屏幕左侧的 Launcher 上,在图标上右键——“锁定到启动器”,以后就可以简单地单击启动了。
火狐浏览器卸载
1.首先查看有哪些需要卸载的
dpkg --get-selections |grep firefox
此命令是为了查看已安装的火狐浏览器及其扩展
2. 然后直接卸载这三个文件
sudo apt-get purge firefox unity-scope-firefoxbookmarks firefox-locale-en firefox-locale-zh-hans
完成卸载,下一篇主要介绍下Ubuntu 16.04环境下 Opencv4.01以及新版Clion安装