Windows10下Linux子系统Ubuntu使用教程(2)——修改软件源
在使用ubuntu系统过程中经常需要在线安装某些软件(apt-get install),由于国内某些原因,部分软件源要么无法使用,要么很慢,所以需要对软件源更换,具体操作如下:
1、用Vim打开软件源配置文件/etc/apt/sources.list
sudo vim /etc/apt/sources.list
2、将其中内容改为以下之一(选择一个离你最近的)
阿里云源:
deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe 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 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
网易源:
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
3、更新
sudo apt-get update
注:
1、如果在安装软件的时候遇到问题,可使用智能判断依赖关系
sudo aptitude install xxxx
2、Vim使用
3、apt常用命令
sudo apt-get update 更新源
sudo apt-get install package 安装包
sudo apt-get remove package 删除包
sudo apt-cache search package 搜索软件包
sudo apt-cache show package 获取包的相关信息,如说明、大小、版本等
sudo apt-get install package --reinstall 重新安装包
sudo apt-get -f install 修复安装
sudo apt-get remove package --purge 删除包,包括配置文件等
sudo apt-get build-dep package 安装相关的编译环境
sudo apt-get upgrade 更新已安装的包
sudo apt-get dist-upgrade 升级系统
sudo apt-cache depends package 了解使用该包依赖那些包
sudo apt-cache rdepends package 查看该包被哪些包依赖
sudo apt-get source package 下载该包的源代码
sudo apt-get clean && sudo apt-get autoclean 清理无用的包
sudo apt-get check 检查是否有损坏的依赖
Windows10下Linux子系统Ubuntu使用教程(2)——修改软件源相关推荐
- Windows10下Linux子系统Ubuntu使用教程(1)——安装
一.环境配置 1.打开开发人员模式 Windows设置->更新和安全->开发者选项->开发人员模式 Step1.Windows设置 Step2.点击"更新和安全" ...
- Windows10下Linux子系统Ubuntu使用教程(3)——安装图形界面
一.准备 在Ubuntu中执行以下操作: 1.安装xorg sudo apt-get install xorg 2.安装xfce4 sudo apt-get install xfce4 3.安装xrd ...
- Windows10安装Linux子系统Ubuntu 20.04LTS,轻松使用生信软件,效率秒杀虚拟机
很多优秀的生物信息学软件,如QIIME.QIIME 2.LEfSe等没有Windows版,而使用VirutalBox虚拟机不仅效率低,而且挂载外部硬盘和使用中也经常遇到各种问题,配置和使用详见 - 扩 ...
- Windows10安装Linux子系统Ubuntu
先看看操作系统版本,之前看网上的安装说明很多都是比较早的系统beta版本和现在安装方法有些不一样,我当前的版本为 Windows10 1709 ,家庭版安装使用也是没有问题的 下面开始安装,首先确认下 ...
- Windows10安装Linux子系统Ubuntu 20.04LTS,轻松使用生信软件,效率秒杀虚拟机(转载)
很多优秀的生物信息学软件,如QIIME.QIIME 2.LEfSe等没有Windows版,而使用VirutalBox虚拟机不仅效率低,而且挂载外部硬盘和使用中也经常遇到各种问题,配置和使用详见 - 扩 ...
- 生信技能树linux虚拟机,科学网—Windows10安装Linux子系统Ubuntu 20.04LTS,轻松使用生信软件,效率秒杀虚拟机 - 刘永鑫的博文...
很多优秀的生物信息学软件,如QIIME.QIIME 2.LEfSe等没有Windows版,而使用VirutalBox虚拟机不仅效率低,而且挂载外部硬盘和使用中也经常遇到各种问题,配置和使用详见 - 扩 ...
- Linux添加win10字体,Windows 10 的 Linux子系统 Ubuntu 窗口默认字体修改
自从 Windows 10 安装了 Ubuntu 巴特,windows自带的管理窗口字体忒难看,因为中文状态下默认字体是宋体,对英文显示很不清晰. 而系统自带的字体修改只能改当前会话的,只要一退出,就 ...
- 在Win10的Linux子系统Ubuntu中使用Qt
在Win10的Linux子系统Ubuntu中使用Qt 陈拓 2021/07/26-2021/07/26 1. 概述 在<Win10的Linux子系统Ubuntu安装图形界面> https: ...
- Windows10开启Linux子系统WSL
文章目录 简介 步骤 1. 开启开发人员模式 2. 开启 Linux 子系统 初试 Ubuntu所在目录 MobaXterm连接 互传文件 直接安装 遇到的坑 参考文献 简介 软件丰富适合日常使用的 ...
最新文章
- shell中判断控制语句 if case
- Cashport助力比特币现金(BCH)进入移动开发时代
- vbs字符串正则_VBscript中的正则表达式
- ASP.NET2.0的multiview和wizard控件
- 【转】正则表达式简介及在C++11中的简单使用教程
- wxWidgets:wxSizer类用法
- VTK:可视化之WindowSize
- mysql抖动可能的原因,12 | 为什么我的MySQL会“抖”一下?
- 像excel一样规律填充(二)
- 关于Adobe软件安装失败的各类错误代码BUG汇总!!
- Android保活实现方案梳理
- 密码编码学与网络安全--原理与实现--(第八版)第5章 ------有限域
- 常见条形码的用法和格式
- 小白转行学IT入职BAT应该怎么做
- Python中的sys.argv是什么含义
- 超说网络NO.4 | 深入了解应用层原理(中科大 郑烇)
- nginx+域名配置
- mysql为什么用B+树
- 【学习笔记】刘晓艳英语语法笔记(2/6)——并列句
- centos7安装mysql5.7.16_Linux学习三Centos7安装mysql5.7.16数据库的详细教程