2

我最近一直在尝试从我的主机上为在主机上的 qemu 上运行的 yocto 发行版设置包提要。

我按照告知的“apt”添加到 IMAGE_INSTALL 并在 EXTRA_FEATURE 中添加了包管理

然后我使用以下配置设置了一个 Apache 2 http 服务器:

Alias /deb ~/yocto/build-qemuarm/tmp-glibc/deploy/deb
<Directory "~/yocto/build-qemuarm/tmp-glibc/deploy/deb">
Options +Indexes
</Directory>

然后我尝试在目标(qemu)上设置sources.list但没有成功

我查看了 Internet,但没有找到 apt 设置的具体示例,仅适用于 ipk/rpm。我看不到如何设置强制套件选项和组件。

这是没有所有 *.dev 包的 deploy/deb 目录的列表:

tree -I *.deb
.
--- all
   | Packages
   | Packages.gz
   | Release
--- armv5te
   | Packages
   | Packages.gz
   | Release
--- qemuarm
   | Packages
   | Packages.gz
   | Release

这是我的sources.list 到现在:

deb http://192.168.7.1:8000/all all all

这是 apt-get update 的日志:

root@qemuarm:/etc/apt/sources.list.d# apt-get update 
Ign http://192.168.7.1:8000 all InRelease
Ign http://192.168.7.1:8000 all Release.gpg
Ign http://192.168.7.1:8000 all Release
Err http://192.168.7.1:8000 all/all armel Packages
  404  File not found
Ign http://192.168.7.1:8000 all/all Translation-en
W: Failed to fetch http://192.168.7.1:8000/all/dists/all/all/binary-armel/Packages  404  File not found



E: Some index files failed to download. They have been ignored, or old ones used instead.
root@qemuarm:/etc/apt/sources.list.d# apt-get update
Err http://192.168.7.1:8000 all InRelease

Err http://192.168.7.1:8000 all Release.gpg
  Unable to connect to 192.168.7.1:8000:
Reading package lists... Done
W: Failed to fetch http://192.168.7.1:8000/all/dists/all/InRelease  

W: Failed to fetch http://192.168.7.1:8000/all/dists/all/Release.gpg  Unable to connect to 192.168.7.1:8000:

W: Some index files failed to download. They have been ignored, or old ones used instead.

我尝试了我的sources.list:

deb http://192.168.7.1:8000 all

但得到:

E: Malformed line 1 in source list /etc/apt/sources.list.d/oe.list (dist parse)
E: The list of sources could not be read.

因此,如果有人比我有更多的 debian 包经验,和/或已经尝试过和我一样,我会很高兴你有一些线索。

谢谢,

4

1 回答 1

0

默认情况下,apt 需要一个更复杂的目录结构,但在套件名称中添加一个“/”应该告诉它我们所拥有的只是一个简单的目录:

deb http://192.168.7.1:8000/ all/
deb http://192.168.7.1:8000/ armv5te/
于 2015-09-09T12:32:13.380 回答