ubuntu14.04安裝AndroidO編譯環境之後系統啟動不不到主介面
在ubuntu14.04桌面環境下安裝AndroidO編譯環境之後系統啟動不不到主介面,主要的問題如下:
sudo apt-get install libglapi-mesa:i386 libgl1-mesa-glx:i386 mingw32 提示如下:
[email protected]:~$ 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
之後斷電重啟即可