OSInside / kiwi

KIWI - Appliance Builder Next Generation
https://osinside.github.io/kiwi
GNU General Public License v3.0
301 stars 152 forks source link

Can't build Debian 11, Ubuntu 22.04, Ubuntu 20.04 (realpath No such file or directory) #2660

Open yaroslav-gwit opened 2 weeks ago

yaroslav-gwit commented 2 weeks ago

Problem description

Today I tried building/refreshing my older VM images (which built fine in the past), but the build process has ended unexpectedly with the following error:

Ubuntu 22.04 build logs

[ DEBUG   ]: 17:53:55 | EXEC: [rm -f /root/OS_builds/gwit-ubuntu-20-04/build/image-root/etc/resolv.conf.kiwi /root/OS_builds/gwit-ubuntu-20-04/build/image-root/etc/resolv.conf.sha /root/OS_builds/gwit-ubuntu-20-04/build/image-root/etc/hosts.kiwi /root/OS_builds/gwit-ubuntu-20-04/build/image-root/etc/hosts.sha]
[ ERROR   ]: 17:53:55 | KiwiDebianBootstrapError: KiwiCommandError: apt-get: stderr: W: GPG error: http://gb.archive.ubuntu.com/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32 NO_PUBKEY 871920D1991BC93C
E: flAbsPath on /var/lib/dpkg/status.kiwi failed - realpath (2: No such file or directory)
E: Could not open file  - open (2: No such file or directory)
E: Problem opening 
E: The package lists or status file could not be parsed or opened.
, stdout: Get:1 http://gb.archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Ign:1 http://gb.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://gb.archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
Get:3 http://gb.archive.ubuntu.com/ubuntu focal/main Translation-en [506 kB]
Get:4 http://gb.archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [144 kB]
Get:5 http://gb.archive.ubuntu.com/ubuntu focal/multiverse Translation-en [104 kB]
Get:6 http://gb.archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [22.0 kB]
Get:7 http://gb.archive.ubuntu.com/ubuntu focal/restricted Translation-en [6212 B]
Get:8 http://gb.archive.ubuntu.com/ubuntu focal/universe amd64 Packages [8628 kB]
Get:9 http://gb.archive.ubuntu.com/ubuntu focal/universe Translation-en [5124 kB]
Fetched 15.8 MB in 3s (5305 kB/s)
Reading package lists..

Debian 11 build logs

[ DEBUG   ]: 17:53:51 | EXEC: [apt-get -q -c /root/OS_builds/gwit-ubuntu-20-04/build/image-root/kiwi_apt.conf -y --no-install-recommends update]
[ DEBUG   ]: 17:53:55 | EXEC: Failed with stderr: W: GPG error: http://gb.archive.ubuntu.com/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32 NO_PUBKEY 871920D1991BC93C
E: flAbsPath on /var/lib/dpkg/status.kiwi failed - realpath (2: No such file or directory)
E: Could not open file  - open (2: No such file or directory)
E: Problem opening 
E: The package lists or status file could not be parsed or opened.
, stdout: Get:1 http://gb.archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Ign:1 http://gb.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://gb.archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
Get:3 http://gb.archive.ubuntu.com/ubuntu focal/main Translation-en [506 kB]
Get:4 http://gb.archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [144 kB]
Get:5 http://gb.archive.ubuntu.com/ubuntu focal/multiverse Translation-en [104 kB]
Get:6 http://gb.archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [22.0 kB]
Get:7 http://gb.archive.ubuntu.com/ubuntu focal/restricted Translation-en [6212 B]
Get:8 http://gb.archive.ubuntu.com/ubuntu focal/universe amd64 Packages [8628 kB]
Get:9 http://gb.archive.ubuntu.com/ubuntu focal/universe Translation-en [5124 kB]
Fetched 15.8 MB in 3s (5305 kB/s)
Reading package lists...

Expected behaviour

Image build process should end with a success. The fun fact, is that I am able to build debian12 and ubuntu24.04, but not the older releases.

I tried building under 3 different systems: AlmaLinux8, Debian11 and Debian12, all with the same outcome. I've also applied the fix described here, but it didn't help:

https://github.com/OSInside/kiwi/issues/2193#issuecomment-1280771269

OS and Software information

schaefi commented 2 weeks ago

We are discussing this... stay tuned. It will be aligned with the current PR #2659

yaroslav-gwit commented 2 weeks ago

Thank you very much for the heads-up. I'll wait for the patch then :sweat_smile:

yaroslav-gwit commented 1 week ago

Build still fails, unfortunately. Has the patch been pushed to the upstream (aka https://pypi.org/project/kiwi/) yet? If not, which version should I roll back to, in order to get the build process working?

schaefi commented 1 day ago

@yaroslav-gwit sorry late response, we were all out on a workshop in Portland

The changes were pushed out to pypi for version 10.1.14, this version should have fixed the issue. If not can you please provide a full build log from an attempt with 10.1.14 ? Thanks