【问题标题】:Yocto apt config sources.listYocto apt 配置 source.list
【发布时间】:2015-09-07 13:58:26
【问题描述】:

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

我在 IMAGE_INSTALL 中添加了“apt”,并在 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 包经验,和/或已经尝试过和我一样的尝试,我会很高兴你有一些线索。

谢谢,

【问题讨论】:

    标签: apt deb yocto debian-based openembedded


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-09
      • 2016-01-16
      • 1970-01-01
      • 2015-05-29
      • 2019-09-06
      • 1970-01-01
      相关资源
      最近更新 更多