4nd3r / mkosi-intune

Intune for Linux feat. systemd-nspawn
https://learn.microsoft.com/en-us/mem/intune/user-help/enroll-device-linux
18 stars 4 forks source link

Unable to build in Debian #11

Closed rayzorben closed 10 months ago

rayzorben commented 1 year ago

Switched to Debian bookworm, if I specifically need SID let me know. I know this is best guess support as it's not your full time job :P so I appreciate any help.

I tried building mkosi-intune in both Ubuntu and Debian with out of box (apt) installed mkosi and get the following error:

Running hooks in /etc/ca-certificates/update.d...
done.
W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
W: Download is performed unsandboxed as root as file '/home/rayben/source/mkosi-intune/mkosi.workspace/7p_nzrvf/root/var/cache/apt/archives/partial/libsystemd0_249.11-0ubuntu3.9_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
‣     Unmounting API VFS…
‣   Unmounting Package Cache
‣   Mounting Package Cache
‣    Running prepare script…
Failed to map ids for bind mount /home/rayben/source/mkosi-intune/mkosi.workspace/7p_nzrvf/root/root/src: Device or resource busy
‣ Error: Workspace command /root/prepare final returned non-zero exit code 1.

I think tried installing mkosi using the verified knowing good checksum you posted for 7/29 with pipx install ... and I also tried just cloning and checkout the commit, and using the mkosi in bin and both seem like there is a signing issue

N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.ubuntu.com/ubuntu jammy-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
E: The repository 'http://archive.ubuntu.com/ubuntu jammy-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
‣ "apt-get -o APT::Architecture=amd64 -o APT::Architectures=amd64 -o APT::Immediate-Configure=off -o APT::Get::Assume-Yes=true -o APT::Get::AutomaticRemove=true -o APT::Get::Allow-Change-Held-Packages=true -o APT::Get::Allow-Remove-Essential=true -o APT::Sandbox::User=root -o Dir::Cache=/home/rayben/source/mkosi-intune/mkosi.cache/ubuntu~jammy -o Dir::State=/home/rayben/source/mkosi-intune/mkosi.workspace/.mkosi.tmpe332jl_p/pkgmngr/var/lib/apt -o Dir::State::status=/home/rayben/source/mkosi-intune/mkosi.workspace/.mkosi.tmpe332jl_p/root/var/lib/dpkg/status -o Dir::Etc::trusted=/usr/share/keyrings/ubuntu-archive-keyring.gpg -o Dir::Etc::trustedparts=/home/rayben/source/mkosi-intune/mkosi.workspace/.mkosi.tmpe332jl_p/pkgmngr/etc/apt/trusted.gpg.d -o Dir::Log=/home/rayben/source/mkosi-intune/mkosi.workspace/.mkosi.tmpe332jl_p/pkgmngr/var/log/apt -o Dir::Bin::dpkg=/usr/bin/dpkg -o Debug::NoLocking=true -o DPkg::Options::=--root=/home/rayben/source/mkosi-intune/mkosi.workspace/.mkosi.tmpe332jl_p/root -o DPkg::Options::=--log=/home/rayben/source/mkosi-intune/mkosi.workspace/.mkosi.tmpe332jl_p/pkgmngr/var/log/apt/dpkg.log -o DPkg::Options::=--force-unsafe-io -o DPkg::Options::=--force-architecture -o DPkg::Options::=--force-depends -o Dpkg::Use-Pty=false -o DPkg::Install::Recursive::Minimum=1000 -o pkgCacheGen::ForceEssential=, update" returned non-zero exit code 100.
make: *** [Makefile:12: build] Error 100
4nd3r commented 1 year ago

Sorry for late reply.

Yes, I use Sid and it works for me on Sid. I fixed mkosi requirement to v16, which is also available straight from Debian repo. Hopefully this makes life easier.