我正在尝试在我的笔记本电脑上安装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
Wich outputed:
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的所有依赖项,但是太多了。我还尝试使用lib在网上获取.deb文件并提取数据,但我需要的文件(libluetooth.so)只是存档中的符号链接,所以我想apt正在编译它安装然后更新动态链接。
感谢您的帮助!
答案 0 :(得分:0)
尝试以下操作:
sudo apt install aptitude && sudo aptitude install libbluetooth-dev:armhf