為什麼這些套件下載不了?

為什麼這些套件下載不了?

我正在遵循這個指南:http://developer.ubuntu.com/en/start/ubuntu-for-devices/porting-new-device/

當我到達這一步時:

然後,透過執行以下命令安裝建置所需的所有其他軟體包:

sudo apt-get install git gnupg flex bison gperf build-essential \
  zip bzr 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 schedtool \
  g++-4.8-multilib

apt說:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgl1-mesa-glx:i386 : Depends: libglapi-mesa:i386 (= 10.1.3-0ubuntu0.4)
                    Recommends: libgl1-mesa-dri:i386 (>= 7.2)
 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.

我怎樣才能解決這個問題?如果需要更多信息,請告訴我。

編輯:

使用 aptitude 解決方案是:

The following actions will resolve these dependencies:

  Keep the following packages at their current version:          
1)      binutils:i386 [Not Installed]                                
2)      cpp:i386 [Not Installed]                                     
3)      cpp-4.8:i386 [Not Installed]                                 
4)      gcc:i386 [Not Installed]                                     
5)      gcc-4.8:i386 [Not Installed]                                 
6)      libgl1-mesa-dri:i386 [Not Installed]                         
7)      libgl1-mesa-glx:i386 [Not Installed]                         
8)      libglapi-mesa:i386 [Not Installed]                           

  Leave the following dependencies unresolved:                   
9)      libc6-dev:i386 recommends gcc:i386 | c-compiler:i386         
10)     libgl1-mesa-glx:i386 recommends libgl1-mesa-dri:i386 (>= 7.2)

該解決方案基本上留下了 1 個未解決的依賴關係,而該依賴關係是一個建議:

 Leave the following dependencies unresolved:                   
4)     libgl1-mesa-glx:i386 recommends libgl1-mesa-dri:i386 (>= 7.2)

答案1

您可以嘗試使用 aptitude。據我所知,它具有更好的依賴性處理。

否則,在使用 apt-get 行之前安裝所需的軟體包。

sudo apt-get install libglapi-mesa libcheese-gtk23 libcheese7 libgl1-mesa-dri

相關內容