I have some problems when i build the android compile environment for M3?

1 My os is ubuntu 14.04.5, according to the following steps below

$ sudo apt-get install python-software-properties

$ sudo add-apt-repository ppa:webupd8team/java

$ sudo apt-get update

$ sudo apt-get install openjdk-7-jdk

$ sudo apt-get install libglapi-mesa: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-glx:i386 libgl1-mesa-dev g+±multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386

$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

$ sudo apt-get install uboot-mkimage

$ sudo apt-get install xserver-xorg

when i enter the sudo apt-get install libglapi-mesa:i386,it display

下列软件包有未满足的依赖关系: libcogl15 : 依赖: libegl1-mesa-drivers libglapi-mesa:i386 : 依赖: libc6:i386 (>= 2.3.6-6~) 但是它将不会被安装 E: 错误,pkgProblemResolver::Resolve 发生故障,这可能是有软件包被要求保持现状的缘故。

how ican solve this problem? thank you