没有最好的语言,只有最适合的语言。
分类: LINUX
2013-07-11 18:56:12
刚才想安装mysql的时候,输入命令:sudo install apt-get mysql-server,但是一直不成功,试了一下apt-get update但还是不行,于是想到更换源,在网上找了资料。地址:http://blog.oobeta.com/archives/2012/04/26/2355.html
1、首先对源进行备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
2、修改编辑源
sudo gedit /etc/apt/sources.list
我使用的是网易源
#网易源(速度很快)
deb precise main universe restricted multiverse
deb-src precise main universe restricted multiverse
deb precise-security universe main multiverse restricted
deb-src precise-security universe main multiverse restricted
deb precise-updates universe main multiverse restricted
deb precise-proposed universe main multiverse restricted
deb-src precise-proposed universe main multiverse restricted
deb precise-backports universe main multiverse restricted
deb-src precise-backports universe main multiverse restricted
deb-src precise-updates universe main multiverse restricted
把sources.list的内容全部改成这
3、保存后执行一下命令
sudo apt-get update
sudo apt-get upgrade