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
Failing to fetch dependencies when cross compiling focal #71
Comments
Having the same problem trying to crossbuild |
I am using Fedora Rawhide (branched f37). |
Can any of you please provide some additional information:
|
I can ideed build both repowerd as well as lomiri-system-settings (with https://gitlab.com/ubports/development/core/lomiri-system-settings/-/merge_requests/346 applied) just fine on Ubuntu 22.04 by running the crossbuilder@9f452fe using |
https://github.com/JamiKettunen/crossbuilder/tree/void-linux @ 06470ec
No wrapper, storage setup without ZFS.
That gave |
OK, now the problem is clear, from your
… Note the comment on top, the file is create by cloud-init which is why it's missing |
According to the logs you're using |
|
Yep, but the name is configurable hence my question. But as I see you're using the default
so something else (configuration?) must explain why cloud-init overwrites the |
@gber |
cloud-init runs on boot when the container is first started, To me it rather looks like |
@amartinz What was the fix? I can test this soon again but I don't believe this got fixed? |
It didn't,
crossbuilder 59592bd
|
The code here is responsible for setting up Lines 429 to 442 in 59592bd
My feeling is that |
Hmm,
so that looks fine since it would be mapped to |
I can confirm this still seems to be a problem:
Running this script in the container seems to mitigate this problem: #!/bin/bash
sed -i 's/deb http/deb [arch=amd64\,i386] http/g' /etc/apt/sources.list
sed -e 's/amd64\,i386/arm64/g' -e 's/archive\.ubuntu/ports\.ubuntu/g' -e 's/security\.ubuntu/ports\.ubuntu/g' -e 's/\.com\/ubuntu/\.com\/ubuntu-ports/g' /etc/apt/sources.list | tee /etc/apt/sources.list.d/arm64.list |
New version of Ubuntu LXD images seem to have a slightly different sources line. Account for those by making the trailing slash optional. Fixes: #71
Could you please test if #78 fixes the issue? |
Still seems to be broken even with that PR for me; will look into it as well at some point, but I have some other projects as well |
I have tried to build
repowerd
andlomiri-system-settings
using crossbuilder.However it fails everytime when fetching dependencies:
My current workaround is to manually enter the created lxc container and edit
/etc/apt/sources.list
, replacing all instances ofdeb
withdeb [arch=amd64,i386]
.The text was updated successfully, but these errors were encountered: