簡體   English   中英

Debian Multiarch:無法同時為armhf和amd64安裝python

[英]Debian multiarch: unable to install python for both armhf and amd64

對於一個正在進行的項目,我使用Debian(8)作為基本OS。 我要開發的目標是基於ARM的平台。 因此,為了方便地進行交叉編譯,我使用了debian提供的多體系結構功能。

不幸的是,當我嘗試為主機系統和我要交叉編譯的系統安裝python時,遇到了一個問題。 看來它們不能彼此相鄰安裝。

當我嘗試使用apt-get install( apt-get install python python:armhf )為兩種體系結構apt-get install python python:armhf ,出現以下錯誤:

Reading package lists... Done
Building dependency tree... Done
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:
python : Depends: python2.7 (>= 2.7.9-1~) but it is not going to be installed
      PreDepends: python-minimal (= 2.7.9-1) but it is not going to be installed
      Conflicts: python:armhf but 2.7.9-1 is to be installed
python:armhf : Conflicts: python but 2.7.9-1 is to be installed

如果我先為主機系統安裝python,然后嘗試為armhf安裝python,則apt想要再次刪除第一個python安裝。

有人看過嗎? 任何想法如何解決這個問題?

從Debian Jessie開始,Multiarch不允許並行安裝可執行文件:

  • 軟件包python包含安裝到/ usr / bin的可執行文件(例如pdb,pydoc等)
  • 軟件包python:armhf也包含這些可執行文件,它們也應該安裝到/ usr / bin。
  • 因此,不能同時安裝python和python:armhf,因為一個軟件包的可執行文件將覆蓋另一軟件包的可執行文件。

好消息是,您不需要兩個python解釋器。 在您的情況下,我將只安裝主機體系結構所需的python解釋器(例如python:amd64)。 請注意,使用諸如sudo apt-get build-dep -a armhf PACKAGE-NAME類的命令來安裝構建依賴項有時可能會失敗,並且您必須猜測需要手動安裝哪些軟件包。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM