通过apt-get在X86上安装armhf库

5

我正在尝试在我的笔记本电脑上安装libluetooth-dev,但不是x86版本,而是armhf版本。 我使用的是Ubuntu 16.04操作系统。以下是我的尝试方式:

sudo dpkg --add-architecture armhf

我随后添加了。
deb [arch=amd64,i386] http://uk.archive.ubuntu.com/ubuntu/ xenial main universe 
deb [arch=armel,armhf] http://ports.ubuntu.com/ubuntu-ports xenial main universe

修改 /etc/apt/sources.list 文件之后,我尝试了以下操作:

sudo dpkg --configure -a   
sudo apt-get update
sudo apt-get -f install

最后:

sudo apt-get install libbluetooth-dev:armhf 

输出结果为:

     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:
 libbluetooth-dev:armhf : Depends: libbluetooth3:armhf (= 5.37-0ubuntu5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我尝试安装所有libluetooth3的依赖项,但是太多了。我还尝试在网络上获取一个.deb文件,并提取数据,但我需要的文件(libluetooth.so)只是存档中的符号链接,所以我猜apt在安装时编译它,然后更新动态链接。

谢谢你的帮助!


不,apt在安装时没有编译它。 - Jonathon Reinhart
那好吧,为什么从.deb文件中提取的文件中,有一个指向.so文件的损坏符号链接呢? - Paul F.
因为libbluetooth-dev链接的libbluetooth.so.3.18.10是由libbluetooth3提供的,所以它是一个“依赖项”... - Notlikethat
非常感谢让我明白那个问题。 - Paul F.
我也有同样的问题。你设法在Xenial上安装armhf包了吗? - Boris Brodski
1个回答

0

请尝试以下操作:

sudo apt install aptitude && sudo aptitude install libbluetooth-dev:armhf

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接