[GUIDE][DEV][AOSP/LINARO]Compile SaberMod ROM on Ubuntu 12.04+ 64-bit

sparksco

Inactive Recognized Developer
Feb 27, 2010
10,048
8,861
0
docs.google.com
Hey, I am a beginer on ROM dev.
I was setting up AOSP build enviroment on Ubuntu 12.04 64 bit and I followed google's tutorial, when i was on the step

$ sudo apt-get install git-core 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 openjdk-6-jdk tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386

There is error prompt up,

The following packages have unmet dependencies:
libgl1-mesa-glx:i386 : Depends: libglapi-mesa:i386 (= 9.0-0ubuntu1)
Recommends: libgl1-mesa-dri:i386 (>= 7.2)
E: Unable to correct problems, you have held broken packages.

I can't install libglapi-mesa:i386 or libgl1-mesa-dri:i386, as doing so would remove my xserver component. I am not sure what is the next step.
Just follow one of the other guides on XDA to set up a android build environment. This guide is for a older version of Ubuntu and android so it's outdated.