diff -Nru livecd-rootfs-2.765.17/debian/changelog livecd-rootfs-2.765.18/debian/changelog --- livecd-rootfs-2.765.17/debian/changelog 2023-02-20 16:18:37.000000000 +0000 +++ livecd-rootfs-2.765.18/debian/changelog 2023-02-22 22:57:38.000000000 +0000 @@ -1,3 +1,10 @@ +livecd-rootfs (2.765.18) jammy; urgency=medium + + * Terrible hack workaround for clearing out the non-offline apt cache for + desktop related images. + + -- Ɓukasz 'sil2100' Zemczak Wed, 22 Feb 2023 23:57:38 +0100 + livecd-rootfs (2.765.17) jammy; urgency=medium * Do not offer the hwe kernel for RISC-V server-live images (LP: #2007863). diff -Nru livecd-rootfs-2.765.17/live-build/auto/build livecd-rootfs-2.765.18/live-build/auto/build --- livecd-rootfs-2.765.17/live-build/auto/build 2023-02-16 13:23:17.000000000 +0000 +++ livecd-rootfs-2.765.18/live-build/auto/build 2023-02-22 22:57:38.000000000 +0000 @@ -482,6 +482,18 @@ clean_debian_chroot fi + # XXX: Terrible last-minute hack to work-around issue LP: #2008082 ! + # This basically needs to be done better, we simply need to make sure + # that we don't update the cache after lb cleans up. Since identifying + # that might take a moment, for now, for flavors that are generally + # affected by this, we manually clear out the archive-related Packages + # files in the cache. + case $PROJECT in + ubuntu|xubuntu|kubuntu|ubuntu-budgie|ubuntukylin|ubuntu-mate) + rm -f chroot/var/lib/apt/lists/*ubuntu.com*_Packages + ;; + esac + if [ -n "${PASSES}" ]; then PATH="config/:$PATH" lb binary_layered "$@" else