Q:
A: 源出问题,修改源:进入源:源地址 /etc/apt/
sudo vi sources.list
,将下列内容替换sources.list中的内容,并保存
deb http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe
sources.list替换完后,重新执行sudo apt-get update
而出现此问题的原因是因为可能是有另外一个程序正在运行,导致资源被锁不可用。而导致资源被锁的原因,可能是上次 安装时没正常完成,而导致出现此状况。
解决办法:在终端敲入这两句命令:sources
sudo rm /var/lib/apt/lists/lock
再继续安装就好了
============================================
Q:su命令不能切换root,提示su: Authentication failure
sudo passwd root过一次之后,下次再su的时候只要输入密码就可以成功登录了
==============================================================
安装ssh。。。。。。。。。。