1、首先打开终端,用root登陆。
2、切换到/etc/apt/目录下,执行:cd /apt/get/,如图:
3、将里面的sources.list复制一下,为了安全。如图:
4、接下来就是用vim 打开 sources.list,将里面的原有的内容删除,然后添加如下内容:
5、最后执行:apt-get update就好了。如图:
首先打开终端,用root登陆。
切换到/etc/apt/目录下,执行:cd /apt/get/,
将里面的sources.list复制一下,为了安全。
接下来就是用vim 打开 sources.list,将里面的原有的内容删除(知道为什么之前要复制了吧),然后添加如下内容:
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
最后执行:apt-get update就好了。