Hi,
Quoting Matthias Geiger (2025-08-07 09:27:16)
I tried to crosscompile the kernel with sbuild and unshare (amd64 build
arch, arm64 host arch). I have sbuild setup the recommended way with unshare;
then cloned the kernel repo and ran:
$ debian/rules orig
$ debian/rules debian/control
$ sbuild --host=arm64 --profiles=cross,nopython,nodoc,pkg.linux.notools
However, this fails to resolve the build dependencies (see attached
log). What am I missing here ? Unfortunately, neither the
crosscompiling/sbuild wiki page nor the kernel handbook were able to help
me.
your problem is this line:
/usr/lib/apt/solvers/apt: error while loading shared libraries: libapt-pkg.so.6.0: cannot open shared object file: No such file or directory
The problem is solved in sbuild commit 299bbfb39f so your second problem is
this:
sbuild (Debian sbuild) 0.85.10ubuntu0.2 (02 May 2025) on ltmgeiger