Ubuntu 更换阿里云软件源

本文介绍了如何解决Ubuntu安装软件时遇到的依赖问题,特别是针对Ubuntu14.04安装openjdk-7-jdk的例子。通过更换为阿里云的软件源,可以有效解决此类问题并提高更新速度。
摘要由CSDN通过智能技术生成

Ubuntu安装软件有很多问题是因为源的问题,比如Ubuntu14.04安装openjdk-7-jdk可能会出现依赖问题,我曾查找了很多办法都没解决,但是换了阿里云的软件源后问题就解决了。 

阿里云的源很快,下面总结一下如何更换Ubuntu的软件源。

一、备份

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

二、修改

sudo gedit /etc/apt/sources.list

在source.list文件添加一下内容

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值