-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to add packages for other architectures #149
Comments
I have just run into this, too. Is there a viable workaround? It seems weird that the documented solution doesn’t actually work! |
Just had another look into this. It looks like a newer version of Is there a reason the other images are not using 14.04 or newer, at this stage? |
That’s great, but that should both be documented somewhere and the instructions that say “just use --add-architecture” need a viable alternative for 12.04. Or they simply need updating to 14.04. :) |
This isn't just because of the Ubuntu 12.04 containers. I just build my own version of the armv7 image, based on Ubuntu 14.04 (and 16.04 later) to see if I could add other packages from the So simply bumping the versions won't resolve this issue. And I'm currently actually not sure how Ubuntu does this in general... |
For Ubuntu the repositories for the ports are located at a different URL (so, not archive.ubuntu.com): http://ports.ubuntu.com/dists/bionic/main/ therefore /etc/apt/sources.list needs to be adapted. |
@PAStheLoD True, I forgot to mention in my original comment that it wasn't just that though. When adding the proper sources I get issues like this which sounds like apt can't have libraries of multiple architectures installed at the same time
When trying to install all the dependencies manually it results in it removing amd64 packages... (I ended up moving to Debian where it works) |
@spacekookie : I'm facing a similar issue. Can you please share the Docker file you used to build a Debian-based image? thanks :) |
I finally managed to make it work as well using Debian Buster as base for the image. Here is my Docker file for reference:
Note the Building this image require my patch from #403. May downside here is we have to create an image from scratch and copy all |
I opened #404 suggesting that we do that in official images to make things easier for users. |
Some packages do indeed just not work with multi-arch on ubuntu. One other problem though, as noted, is that packages for other architectures live in another repo on the version of ubuntu used here. That problem was recently fixed however, using this kind of horrible workaround: |
454: Bump README custom-container cross version to incorporate fixes r=therealprof a=theunkn0wn1 The custom dockerfile example in the README targets cross version 0.1.16, [and is known to not actually work as-is](3b07a08). The fix for this particular issue was released with cross 0.2, thus this PR bumps the cross version. This became an issue in my use case as I wanted to cross-compile to a raspberry Pi, and needed to install some external libraries not included in the base images, and ran into issues such as #149 and #35 while attempting to follow the recommendation in the readme. Bumping the cross version to 0.2.x resolved the above issues for me, and this PR is to help other users that may find themselves running into the same issues when following the readme closely. Co-authored-by: joshua salzedo <joshuasalzedo@gmail.com>
I'll be adding examples of this to the wiki including Note that we internally use debian repositories, so you shouldn't need to rebuild the entire image. See linux-image.sh for how to configure debian repositories to install packages, then restore the old package list. I'll also add this to the Wiki. |
With #727 we've added the |
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:
However this doesn't actually work, because the distribution that is in use doesn't support other architectures:
The text was updated successfully, but these errors were encountered: