Comment 1 for bug 2054369

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I can reproduce this in an armhf container on an arm64 host.

With python3.11, it works. With python 3.12, it doesn't. We should be able to narrow this down now.

root@n-armhf:~# python3.12 ./wait-for-apt-update-to-finish
lockdata = b'\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Attempting to lock /var/lib/apt/lists/lock to wait for any currently running apt updates to finish... Traceback (most recent call last):
  File "/root/./wait-for-apt-update-to-finish", line 33, in <module>
    rv = fcntl.fcntl(f, fcntl.F_SETLKW, lockdata)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 22] Invalid argument

root@n-armhf:~# python3.11 ./wait-for-apt-update-to-finish
lockdata = b'\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Attempting to lock /var/lib/apt/lists/lock to wait for any currently running apt updates to finish... locked, exiting.

root@n-armhf:~# uname -a
Linux n-armhf 6.5.0-17-generic #17-Ubuntu SMP PREEMPT_DYNAMIC Thu Jan 11 14:20:13 UTC 2024 armv8l armv8l armv8l GNU/Linux

root@n-armhf:~# dpkg --print-architecture
armhf