I'm trying to setting up a Linux build environment for AOSP. I have Ubuntu-12.04.4-desktop-amd64 distributive. I do everything in accordance with the instructions given here. I typed in the terminal command to install the necessary packages:
我正在尝试为AOSP建立一个Linux构建环境。我有Ubuntu-12.04.4-desktop-amd64分配。我按照这里的指示做一切事情。我输入终端命令来安装必要的软件包:
$ sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
then I get an error message:
然后我得到一个错误信息:
The following packages have unmet dependencies:
libgl1-mesa-glx:i386 : Depends: libglapi-mesa:i386 (= 8.0.4-0ubuntu0.7)
Recommends: libgl1-mesa-dri:i386 (>= 7.2)
E: Unable to correct problems, you have held broken packages.
So the logical thing to do is sudo apt-get install libgl1-mesa-dri:i386
, however then get the following message:
因此,要做的合乎逻辑的事情是sudo apt-get安装libgl1-mesa-dri:i386,但是得到以下信息:
The following packages will be REMOVED:
libgl1-mesa-dri-lts-quantal libxatracker1-lts-quantal ubuntu-desktop xorg
xserver-xorg-lts-quantal xserver-xorg-video-all-lts-quantal
xserver-xorg-video-vmware-lts-quantal
The following NEW packages will be installed:
libdrm-intel1:i386 libdrm-nouveau1a:i386 libdrm-radeon1:i386 libdrm2:i386
libexpat1:i386 libffi6:i386 libgl1-mesa-dri:i386 libllvm3.0:i386
libpciaccess0:i386 libstdc++6:i386
My concern is the packages it's going to REMOVED. Seems to me that if I allow the removal I loose my desktop environment.
我关心的是它将要移除的包。在我看来,如果我允许移除我的桌面环境。
Anybody have any thoughts on this?
大家有什么想法吗?
2 个解决方案
#1
10
I solved this problem. Do the following, install all packages except libgl1-mesa-glx:i386
:
我解决了这个问题。执行以下步骤,安装除libgl1-mesa-glx之外的所有包:i386:
$ sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
Install libglapi-mesa-lts-saucy:i386
instead of libgl1-mesa-glx:i386
:
安装libglapi-mesa-lts-saucy:i386而不是libgl1-mesa-glx:i386:
$ sudo apt-get install libglapi-mesa-lts-saucy:i386
Now you have correct AOSP build environment and don't loose desktop environment.
现在,您已经正确地构建了AOSP构建环境,并没有松散的桌面环境。
#2
2
Just leave out the troubling package and install the recommended one afterwards. Important is now to make sure, that your desktop is not missing after reboot. Here is what I did:
请忽略这个麻烦的包,然后安装推荐的包。重要的是现在要确保,在重新启动后您的桌面不会丢失。以下是我所做的:
sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 \ libgl1-mesa-dev g++-multilib mingw32 tofrodos \ python-markdown libxml2-utils xsltproc zlib1g-dev:i386sudo apt-get安装git gnupg flex bison gperf build-essential \ zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \ libx11-dev:i386 libreadline6-dev:i386 \ libgl1-mesa-dev g+ -multilib mingw32 tofrodos \ python-markdown libxml2-utils xsltproc zlib1g-dev:i386。
then:
然后:
sudo apt-get install libgl1-mesa-dri:i386
sudo apt-get安装libgl1-mesa-dri:i386
and then:
然后:
sudo apt-get install ubuntu-desktop xserver-xorg
sudo apt-get安装ubuntu-desktop xserver-xorg。
#1
10
I solved this problem. Do the following, install all packages except libgl1-mesa-glx:i386
:
我解决了这个问题。执行以下步骤,安装除libgl1-mesa-glx之外的所有包:i386:
$ sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
Install libglapi-mesa-lts-saucy:i386
instead of libgl1-mesa-glx:i386
:
安装libglapi-mesa-lts-saucy:i386而不是libgl1-mesa-glx:i386:
$ sudo apt-get install libglapi-mesa-lts-saucy:i386
Now you have correct AOSP build environment and don't loose desktop environment.
现在,您已经正确地构建了AOSP构建环境,并没有松散的桌面环境。
#2
2
Just leave out the troubling package and install the recommended one afterwards. Important is now to make sure, that your desktop is not missing after reboot. Here is what I did:
请忽略这个麻烦的包,然后安装推荐的包。重要的是现在要确保,在重新启动后您的桌面不会丢失。以下是我所做的:
sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 \ libgl1-mesa-dev g++-multilib mingw32 tofrodos \ python-markdown libxml2-utils xsltproc zlib1g-dev:i386sudo apt-get安装git gnupg flex bison gperf build-essential \ zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \ libx11-dev:i386 libreadline6-dev:i386 \ libgl1-mesa-dev g+ -multilib mingw32 tofrodos \ python-markdown libxml2-utils xsltproc zlib1g-dev:i386。
then:
然后:
sudo apt-get install libgl1-mesa-dri:i386
sudo apt-get安装libgl1-mesa-dri:i386
and then:
然后:
sudo apt-get install ubuntu-desktop xserver-xorg
sudo apt-get安装ubuntu-desktop xserver-xorg。