【问题标题】:Install armhf lib on X86 via apt-get通过 apt-get 在 X86 上安装 armhf lib
【发布时间】:2017-01-26 07:08:48
【问题描述】:

我正在尝试在我的笔记本电脑上安装 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的所有依赖项,但是太多了。我还尝试使用lib在网上获取一个.deb文件并提取数据,但我需要的文件(libluetooth.so)只是存档中的一个符号链接,所以我猜apt正在编译它安装然后更新动态链接。

感谢您的帮助!

【问题讨论】:

  • 不,apt 在安装时不会编译它。
  • 好的,那为什么在从.deb提取的文件中,有一个断开的.so文件的符号链接?
  • 呃,因为libbluetooth-dev链接的libbluetooth.so.3.18.10是libbluetooth3提供的?这就是为什么它是一个依赖...
  • 非常感谢您让我明白这一点。
  • 我也有同样的问题。您是否设法在 xenial 上安装了 armhf 软件包?

标签: ubuntu arm cross-compiling apt-get apt


【解决方案1】:

尝试以下方法:

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

【讨论】:

    猜你喜欢
    • 2016-07-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-04
    • 2011-07-31
    • 2023-01-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多