## start time: Wed Apr 5 11:31:32 EDT 2023 ## linux-purge version: 1.0.161-3976ce0 ## options: -d '' -s -c -- ## OS: Ubuntu Lunar Lobster (development branch) ## awk executable: /usr/bin/gawk ## awk version: GNU Awk 5.2.1, API 3.2, PMA Avon 8-g1, (GNU MPFR 4.2.0, GNU MP 6.2.1) Copyright (C) 1989, 1991-2022 Free Software Foundation. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. ## linux packages: ii linux-base ii linux-compiler-gcc-11-x86 ii linux-firmware un linux-firmware-raspi2 un linux-firmware-snapdragon un linux-headers ii linux-headers-6.1.3 ii linux-headers-6.2.1 ii linux-headers-6.2.3 ii linux-headers-6.2.5 ii linux-headers-6.2.7 ii linux-headers-6.2.9 un linux-headers-686-pae un linux-headers-amd64 un linux-headers-generic ii linux-image-6.1.3 ii linux-image-6.2.1 ii linux-image-6.2.3 ii linux-image-6.2.5 ii linux-image-6.2.7 ii linux-image-6.2.9 un linux-initramfs-tool un linux-kernel-headers un linux-kernel-headers-mips-cross un linux-kernel-log-daemon ii linux-libc-dev ii linux-libc-dev-mips-cross un linux-libc-dev-mips-dcv1 un linux-restricted-common ii linux-sound-base ii linux-tools-common ## trace and output: + debug() 147: operate ++ debug() 147: tee -ia -- /dev/shm/linux-purge.debug_rYD + operate() 961: [[ -n '' ]] + operate() 962: [[ -n '' ]] + operate() 965: purge_normally + purge_normally() 795: local Pkgs Releases ReleasesToKeep LatestReleases HoldReleases ManualReleases release Items ReleasesToPurge KeepRegex version PkgsToPurge locked version minus_flavour + purge_normally() 798: (( no_booted )) ++ purge_normally() 801: dpkg-query -W '-f=${Package} ${db:Status-Abbrev}\n' ++ debug() 147: tee -ia -- /dev/shm/linux-purge.debug_rYD +++ purge_normally() 801: literalize 6.2.9 +++ literalize() 264: sed -e 's/[^^]/[&]/g' -e 's/\^/\\^/g' +++ literalize() 264: printf %s 6.2.9 ++ purge_normally() 801: grep -qE '^linux-image-(unsigned-)?[6][.][2][.][9] [ih]i $' ++ purge_normally() 811: dpkg-query -W '-f=${Package} ${Status}\n' 'linux-*' ++ purge_normally() 812: awk '$3!="ok" || ($4!="installed" && $4!="not-installed" && $4!="config-files") ' + purge_normally() 811: Pkgs= + purge_normally() 812: [[ -n '' ]] ++ purge_normally() 826: dpkg-query -W '-f=${db:Status-Abbrev} ${Package}\n' ++ purge_normally() 826: sed -nr 's/^[ih]i linux-image-(unsigned-)?([0-9]+\..+)/\2/p' ++ purge_normally() 826: linux-version sort + purge_normally() 826: Releases='6.1.3 6.2.1 6.2.3 6.2.5 6.2.7 6.2.9' + purge_normally() 828: [[ -z '' ]] + purge_normally() 829: [[ -n '' ]] + purge_normally() 838: ReleasesToKeep='6.1.3 6.2.1 6.2.3 6.2.5 6.2.7 6.2.9' + purge_normally() 860: [[ -n 1 ]] ++ purge_normally() 865: get_latest_available_releases ++ get_latest_available_releases() 302: local meta_kernels +++ get_latest_available_releases() 302: get_meta_kernels +++ get_meta_kernels() 282: dpkg-query -W -f '${db:Status-Abbrev} ${Package}\n' +++ get_meta_kernels() 283: awk '/^[ih].. linux-(.+-)?image-/{print $2}' +++ get_meta_kernels() 284: grep -Ev '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' ++ get_latest_available_releases() 302: meta_kernels= + purge_normally() 865: LatestAvailableReleases= + debug() 1: finish + finish() 97: err=1 + finish() 98: trap - EXIT + finish() 99: [[ -n '' ]] + finish() 100: rm -- /dev/shm/linux-purge.error_mNX + finish() 101: restore_update_grub + restore_update_grub() 89: [[ -n '' ]] + finish() 102: [[ -n /dev/shm/linux-purge.debug_rYD ]] + finish() 103: [[ -f /dev/shm/linux-purge.debug_rYD ]] + finish() 103: [[ ! -s /dev/shm/linux-purge.debug_rYD ]] + finish() 107: [[ -n '' ]] + finish() 109: [[ -n 1 ]] + finish() 111: note 'The debug information is saved in /dev/shm/linux-purge.debug_rYD' + note() 85: printf '[%s] NOTE: %s\n' linux-purge 'The debug information is saved in /dev/shm/linux-purge.debug_rYD' + note() 85: fold -s + finish() 115: [[ null == INT ]] + finish() 116: (( err != 0 && err != 141 )) + finish() 117: error 'Aborting due to an unknown error (1).' 3 . + error() 75: printf '[%s] ERROR: %s\n' linux-purge 'Aborting due to an unknown error (1).' + error() 75: fold -s + error() 76: [[ -n x ]] + error() 77: exit 3