在ubuntu14.04桌面环境下安装AndroidO编译环境之后系统启动不不到主界面,主要的问题如下:
sudo apt-get install libglapi-mesa:i386 libgl1-mesa-glx:i386 mingw32 提示如下:
zhaojr@zhaojingrong-S2600CP:~$ sudo apt-get install libglapi-mesa:i386 libgl1-mesa-glx:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using theunstable
distribution that some required packages have not yetbeen created
or been moved out of Incoming.
The following information may help to resolve thesituation:
The following packages have unmet dependencies:
unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed
Depends: libcheese7 (>= 3.0.1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks,this may be caused by held packages.
解决办法:出现这个问题是,你之前已经安装了libcheese-gtk23和libcheese7所使用的源可能不一样导致现在更新源会报错,
把之前的卸载了
sudo apt-get autoremove libcheese-gtk23 libcheese7
最后在:sudo apt-get install sudo apt-get install libglapi-mesa:i386 libgl1-mesa-glx:i386
之后ubuntu14.04系统重启,发现进不了主界面,主要的原因是在上面安装的过程中将启动桌面出现异常,解决的办法如下:
查看当前的ubuntu14.04使用的桌面系统
$ls /usr/share/xsessions
ubuntu.desktop
$sudo vi /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
[SeatDefaults]
user-session=ubuntu
重新安装ubuntu.desktop
sudo apt-get install ubuntu.desktop
之后断电重启即可