sources.list
• 1. 首先备份源列表
首先备份源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
• 2. 而后打开sources.list文件修改
sudo vim /etc/apt/sources.list
• 3. 用下面阿里原替换掉文件中所有的内容,保存编辑好的文件
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
• 4. 然后刷新列表,注意一定要执行刷新
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
参考:http://blog.csdn.net/u010053463/article/details/49300625
文章最后发布于: 2018-04-11 19:58:35
相关阅读
以ubuntu14.04为例touch 作用:创建文件语法1:touch 文件路径(路径可以是直接的文件名也可以是路径)使用touch可以同时创建多个文件
新手入驻淘宝,店铺已经审核通过了,接下来就有一大堆事情要做,很多新手卖家,在申请完店铺后,不管三七二十一,就直接去找货源,不管定位跟考
近日,视源股份(CVTE)2019届春季校园招聘正式启动。在2018年的校园招聘中,视源股份(CVTE)踏足了广州、长沙、厦门、武汉、杭州等全国
1.首先得先下载JDK和eclipse jdk下载网址:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.ht
为什么80%的码