Ubuntu 13.10 软件更新源列表

最近在Ubuntu安装SSH服务,运行sudo apt-get install openssh-server时报错提示源列表中无对应的包。经过在网上搜索,需要更新源列表。

  1. 备份Ubuntu 13.10源列表

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

  1. 将以下内容添加到sources.list中

#网易的源(163源,无论是不是教育网,速度都很快)

deb http://mirrors.163.com/ubuntu/ raring main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ raring-security main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ raring-updates main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ raring-proposed main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ raring-backports main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ raring main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ raring-security main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ raring-updates main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ raring-proposed main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ raring-backports main restricted universe multiverse

 

deb http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse

deb-src http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse

deb http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted

deb-src http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted

deb http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted

deb http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted

deb-src http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted

deb http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted

deb-src http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted

deb-src http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted

 

  1. sudo apt-getupdate

    

转载于:https://www.cnblogs.com/guangwei/p/3624414.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值