gpt4 book ai didi

Android,搭建Linux编译环境,libgl1-mesa-glx :i386 package have unmet dependencies

转载 作者:IT王子 更新时间:2023-10-29 00:43:34 24 4
gpt4 key购买 nike

我正在尝试为 AOSP 设置 Linux 构建环境。我有 Ubuntu-12.04.4-desktop-amd64 发行版。我按照给出的说明做所有事情 here .我输入了终端命令来安装必要的包:

$ 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

然后我收到一条错误消息:

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.

所以合乎逻辑的做法是 sudo apt-get install 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

我担心的是它将要删除的包。在我看来,如果我允许删除,我就会失去我的桌面环境。

有人对此有任何想法吗?

最佳答案

我解决了这个问题。执行以下操作,安装除 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

安装 libglapi-mesa-lts-saucy:i386 而不是 libgl1-mesa-glx:i386:

$ sudo apt-get install libglapi-mesa-lts-saucy:i386

现在您拥有了正确的 AOSP 构建环境并且没有丢失桌面环境。

关于Android,搭建Linux编译环境,libgl1-mesa-glx :i386 package have unmet dependencies,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23254439/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com