Skip to content
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 debootstrap for Ubuntu Jammy with debos docker image #314

Open
RadxaYuntian opened this issue Apr 8, 2022 · 3 comments
Open

Comments

@RadxaYuntian
Copy link

RadxaYuntian commented Apr 8, 2022

Jammy uses zstd to compress their packages, which is not supported by Debian Bullseye's dpkg, which is also used by the docker image. I tried to install some custom deb packages from debug shell, but it appears I cannot write to /usr inside docker so dpkg -i failed.

@obbardc
Copy link
Member

obbardc commented Apr 8, 2022

dpkg zstd support is not in debian unstable yet: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892664

Perhaps a workaround could be to create an Ubuntu-based Docker image ?

@obbardc obbardc added the blocked label Apr 8, 2022
@RadxaYuntian
Copy link
Author

That's the first idea I have. Although I'm not sure if the situation has been changed regarding debos's Ubuntu host support.

@RadxaYuntian
Copy link
Author

Did some testing myself with Ubuntu docker. Ubuntu doesn't have UML package, so that has to be removed from the Dockerfile. However fakemachine doesn't seem to work in docker so I have to pass --disable-fakemachine and run container in privileged mode since debbootstrap expect to run as root. Currently I'm stopped at the following error:

2022/05/05 02:01:01 Debootstrap (stage 2) | I: Base system installed successfully.
2022/05/05 02:01:02 apt clean | Failed to mount cgroup (type cgroup) on /tmp/unifiedkCISL9 (MS_NOSUID|MS_NODEV|MS_NOEXEC "none,name=systemd,xattr"): Operation not permitted
2022/05/05 02:01:02 apt clean | Parent died too early
2022/05/05 02:01:02 apt clean | Attempted to remove disk file system under "/run/systemd/nspawn/propagate/root", and we can't allow that.
2022/05/05 02:01:02 Action `debootstrap` failed at stage Run, error: exit status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants