Skip to content

Unable to add packages for other architectures #149

@xobs

Description

@xobs

The documentation states that it's possible to create derivative images that include additional packages required for building. For example, libasound2-dev is required to build the asound-dev package. README.md states that it is possible to do this:

FROM japaric/aarch64-unknown-linux-gnu:v0.1.4

RUN dpkg --add-architecture arm64 && \
    apt-get update && \
    apt-get install libfoo:arm64

However this doesn't actually work, because the distribution that is in use doesn't support other architectures:

xobs@nas /d/x/d/cross-build> docker run --rm -it japaric/aarch64-unknown-linux-gnu:v0.1.4 bash
root@a2a1fcfefc05:/# dpkg --add-architecture arm64 && \
>     apt-get update
Ign http://archive.ubuntu.com trusty InRelease
Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
...
Err http://archive.ubuntu.com trusty-updates/restricted arm64 Packages
  404  Not Found [IP: 91.189.88.149 80]
Err http://archive.ubuntu.com trusty-updates/universe arm64 Packages
  404  Not Found [IP: 91.189.88.149 80]
...
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/restricted/binary-arm64/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/universe/binary-arm64/Packages  404  Not Found [IP: 91.189.88.149 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
root@a2a1fcfefc05:/#

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions