下载apt-get二进制(deb)和目标体系结构的所有依赖项:armhf

时间:2018-09-20 16:41:08

标签: architecture installation dependencies apt deb

我需要ppp用于我正在从事的项目,但是对于设备上无法访问Internet的其他体系结构。实际问题从标题上可以很好地解释。我已经完成的事情:

  • 我已取消注释sources.list文件中的deb-src镜像
  • 我已经在sources.list文件中的“ [i386,armhf]”之后添加了选项apt-get update(当然还有deb版)。
  • sudo dpkg --add-architecture armhf
  • 我运行sudo apt-get build-dep --download-only ppp:armhf,但是在当前工作目录中没有任何结果,而我得到了:

    Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done The following packages automatically installed and are no longer required: ...(无错误)

为什么什么都没有下载?我很难提供完整的输出消息,因为我正在VM中运行它,并且无法使用复制/粘贴功能。

预先感谢您的帮助

1 个答案:

答案 0 :(得分:0)

我针对相同问题的解决方案如下(将THE_PACKAGE_YOU_WANT替换为ppp):

dpkg --add-architecture armhf
apt update
apt download $(apt-cache depends --recurse --no-recommends --no-suggests \
                                 --no-conflicts --no-breaks --no-replaces --no-enhances \
                                 --no-pre-depends {{ THE_PACKAGE_YOU_WANT }}:armhf | grep "^\w");

这个问题已有2年历史了,但我希望它对将来的Google员工有用! :-)

相关问题