Public bug reported: The actual command is not relevant, but I noticed that a "lxc-create" command failed with the error
... W: Failure while configuring base packages. This will be re-attempted up to five times. W: See /var/cache/lxc/noble/partial-amd64/debootstrap/debootstrap.log for details (possibly the package keyboard-configuration is at fault) I: Configuring keyboard-configuration... W: Failure while configuring base packages. This will be re-attempted up to five times. W: See /var/cache/lxc/noble/partial-amd64/debootstrap/debootstrap.log for details (possibly the package keyboard-configuration is at fault) W: Failure while configuring base packages. This will be re-attempted up to five times. W: See /var/cache/lxc/noble/partial-amd64/debootstrap/debootstrap.log for details (possibly the package keyboard-configuration is at fault) W: Failure while configuring base packages. This will be re-attempted up to five times. W: See /var/cache/lxc/noble/partial-amd64/debootstrap/debootstrap.log for details (possibly the package keyboard-configuration is at fault) W: Failure while configuring base packages. This will be re-attempted up to five times. W: See /var/cache/lxc/noble/partial-amd64/debootstrap/debootstrap.log for details (possibly the package keyboard-configuration is at fault) lxc-create: webrproxy-dev: ../src/lxc/lxccontainer.c: create_run_template: 1628 Failed to create container from template lxc-create: webrproxy-dev: ../src/lxc/tools/lxc_create.c: main: 317 Failed to create container webrproxy-dev I checked the package "keyboard-configuration": dpkg -l keyboard-configuration Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-======================-============-============-================================= ii keyboard-configuration 1.226ubuntu1 all system-wide keyboard preferences Nothing seems wrong, however is might be flagged as faulty; so I attempted to re-install it: $ sudo apt-get --reinstall reinstall keyboard-configuration Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: libestr0 libfastjson4 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 209 not upgraded. Need to get 212 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://be.archive.ubuntu.com/ubuntu noble/main amd64 keyboard-configuration all 1.226ubuntu1 [212 kB] Fetched 212 kB in 1s (237 kB/s) Preconfiguring packages ... /var/cache/debconf/tmp.ci/keyboard-configuration.config.n2HdB4: 1: eval: Syntax error: Unterminated quoted string keyboard-configuration failed to preconfigure, with exit status 2 (Reading database ... 178203 files and directories currently installed.) Preparing to unpack .../keyboard-configuration_1.226ubuntu1_all.deb ... Unpacking keyboard-configuration (1.226ubuntu1) over (1.226ubuntu1) ... Setting up keyboard-configuration (1.226ubuntu1) ... /var/lib/dpkg/info/keyboard-configuration.config: 1: eval: Syntax error: Unterminated quoted string dpkg: error processing package keyboard-configuration (--configure): installed keyboard-configuration package post-installation script subprocess returned error exit status 2 Processing triggers for man-db (2.12.0-4build2) ... Errors were encountered while processing: keyboard-configuration needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1) Something wrong with "/var/cache/debconf/tmp.ci/keyboard- configuration.config.n2HdB4" ? I decided to purge this package, and re-install it: $ sudo apt-get purge keyboard-configuration Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: libestr0 libfastjson4 Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: console-setup* console-setup-linux* kbd* keyboard-configuration* 0 upgraded, 0 newly installed, 4 to remove and 5 not upgraded. 4 not fully installed or removed. After this operation, 4,851 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 178782 files and directories currently installed.) Removing console-setup (1.226ubuntu1) ... Removing console-setup-linux (1.226ubuntu1) ... Removing keyboard-configuration (1.226ubuntu1) ... Removing kbd (2.6.4-2ubuntu2) ... Processing triggers for man-db (2.12.0-4build2) ... Processing triggers for initramfs-tools (0.142ubuntu25.4) ... update-initramfs: Generating /boot/initrd.img-6.8.0-52-generic (Reading database ... 178152 files and directories currently installed.) Purging configuration files for console-setup (1.226ubuntu1) ... Purging configuration files for console-setup-linux (1.226ubuntu1) ... dpkg: warning: while removing console-setup-linux, directory '/etc/console-setup' not empty so not removed Purging configuration files for keyboard-configuration (1.226ubuntu1) ... Scanning processes... Scanning candidates... Scanning processor microcode... Scanning linux images... $ sudo apt-get --no-install-recommends install -y kbd Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: libestr0 libfastjson4 Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: console-setup console-setup-linux keyboard-configuration The following NEW packages will be installed: console-setup console-setup-linux kbd keyboard-configuration ... Get:1 http://be.archive.ubuntu.com/ubuntu noble/main amd64 keyboard-configuration all 1.226ubuntu1 [212 kB] Fetched 212 kB in 1s (223 kB/s) Preconfiguring packages ... /var/cache/debconf/tmp.ci/keyboard-configuration.config.nR7ABu: 1: eval: Syntax error: Unterminated quoted string keyboard-configuration failed to preconfigure, with exit status 2 /var/cache/debconf/tmp.ci/console-setup.config.9dpUEU: 1: eval: Syntax error: Unterminated quoted string console-setup failed to preconfigure, with exit status 2 ... Setting up keyboard-configuration (1.226ubuntu1) ... /var/lib/dpkg/info/keyboard-configuration.config: 1: eval: Syntax error: Unterminated quoted string dpkg: error processing package keyboard-configuration (--configure): installed keyboard-configuration package post-installation script subprocess returned error exit status 2 I inspected visually both files "/var/lib/dpkg/info/keyboard- configuration.config" and "/var/lib/dpkg/info/console-setup.config" but could not detect a clear syntax error. But, checking more closely the head of those 2 files with "od -c", I noticed unexpected characters: $ od -c /var/lib/dpkg/info/console-setup.config | head 0000000 # ! / b i n / s h \n \n # 0000020 C o p y r i g h t 302 251 2 0 0000040 0 5 A n t o n Z i n o v i e and $ od -c /var/lib/dpkg/info/keyboard-configuration.config | head 0000000 # ! / b i n / s h \n \n # 0000020 C o p y r i g h t 302 251 2 0 0000040 0 5 A n t o n Z i n o v i e To inspect the original package bundle, I first removed pkg "keyboard- configuration" again with "apt purge". Then downloaded the package bundle with $ sudo apt install --download-only keyboard-configuration Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: libestr0 libfastjson4 Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: keyboard-configuration 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 212 kB of archives. After this operation, 823 kB of additional disk space will be used. Get:1 http://be.archive.ubuntu.com/ubuntu noble/main amd64 keyboard-configuration all 1.226ubuntu1 [212 kB] Fetched 212 kB in 0s (765 kB/s) Download complete and in download only mode podman@napsjaar:/store/pods/ansible/playbooks/lxc_deploy$ sudo ls -l /var/cache/apt/archives/ /var/cache/apt/archives/: total 212 -rw-r--r-- 1 root root 211794 Mar 13 2024 keyboard-configuration_1.226ubuntu1_all.deb-rw-r----- 1 root root 0 Apr 23 2024 lock drwx------ 2 _apt root 4096 Feb 25 21:22 partial I extracted this ".deb" bundle (with "dpkg-deb -x") and checked with "od -c" all of the files if an "od -c" outputs the same suspicious characters ("302 251") but none of the files has those characters. Could it be that the unpacking or the setting up is corrupting that specific file ? ... Setting up keyboard-configuration (1.226ubuntu1) ... /var/lib/dpkg/info/keyboard-configuration.config: 1: eval: Syntax error: Unterminated quoted string ... ** Affects: console-setup (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to console-setup in Ubuntu. https://bugs.launchpad.net/bugs/2100224 Title: package keyboard-configuration seems broken Status in console-setup package in Ubuntu: New Bug description: The actual command is not relevant, but I noticed that a "lxc-create" command failed with the error ... W: Failure while configuring base packages. This will be re-attempted up to five times. W: See /var/cache/lxc/noble/partial-amd64/debootstrap/debootstrap.log for details (possibly the package keyboard-configuration is at fault) I: Configuring keyboard-configuration... W: Failure while configuring base packages. This will be re-attempted up to five times. W: See /var/cache/lxc/noble/partial-amd64/debootstrap/debootstrap.log for details (possibly the package keyboard-configuration is at fault) W: Failure while configuring base packages. This will be re-attempted up to five times. W: See /var/cache/lxc/noble/partial-amd64/debootstrap/debootstrap.log for details (possibly the package keyboard-configuration is at fault) W: Failure while configuring base packages. This will be re-attempted up to five times. W: See /var/cache/lxc/noble/partial-amd64/debootstrap/debootstrap.log for details (possibly the package keyboard-configuration is at fault) W: Failure while configuring base packages. This will be re-attempted up to five times. W: See /var/cache/lxc/noble/partial-amd64/debootstrap/debootstrap.log for details (possibly the package keyboard-configuration is at fault) lxc-create: webrproxy-dev: ../src/lxc/lxccontainer.c: create_run_template: 1628 Failed to create container from template lxc-create: webrproxy-dev: ../src/lxc/tools/lxc_create.c: main: 317 Failed to create container webrproxy-dev I checked the package "keyboard-configuration": dpkg -l keyboard-configuration Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-======================-============-============-================================= ii keyboard-configuration 1.226ubuntu1 all system-wide keyboard preferences Nothing seems wrong, however is might be flagged as faulty; so I attempted to re-install it: $ sudo apt-get --reinstall reinstall keyboard-configuration Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: libestr0 libfastjson4 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 209 not upgraded. Need to get 212 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://be.archive.ubuntu.com/ubuntu noble/main amd64 keyboard-configuration all 1.226ubuntu1 [212 kB] Fetched 212 kB in 1s (237 kB/s) Preconfiguring packages ... /var/cache/debconf/tmp.ci/keyboard-configuration.config.n2HdB4: 1: eval: Syntax error: Unterminated quoted string keyboard-configuration failed to preconfigure, with exit status 2 (Reading database ... 178203 files and directories currently installed.) Preparing to unpack .../keyboard-configuration_1.226ubuntu1_all.deb ... Unpacking keyboard-configuration (1.226ubuntu1) over (1.226ubuntu1) ... Setting up keyboard-configuration (1.226ubuntu1) ... /var/lib/dpkg/info/keyboard-configuration.config: 1: eval: Syntax error: Unterminated quoted string dpkg: error processing package keyboard-configuration (--configure): installed keyboard-configuration package post-installation script subprocess returned error exit status 2 Processing triggers for man-db (2.12.0-4build2) ... Errors were encountered while processing: keyboard-configuration needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1) Something wrong with "/var/cache/debconf/tmp.ci/keyboard- configuration.config.n2HdB4" ? I decided to purge this package, and re-install it: $ sudo apt-get purge keyboard-configuration Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: libestr0 libfastjson4 Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: console-setup* console-setup-linux* kbd* keyboard-configuration* 0 upgraded, 0 newly installed, 4 to remove and 5 not upgraded. 4 not fully installed or removed. After this operation, 4,851 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 178782 files and directories currently installed.) Removing console-setup (1.226ubuntu1) ... Removing console-setup-linux (1.226ubuntu1) ... Removing keyboard-configuration (1.226ubuntu1) ... Removing kbd (2.6.4-2ubuntu2) ... Processing triggers for man-db (2.12.0-4build2) ... Processing triggers for initramfs-tools (0.142ubuntu25.4) ... update-initramfs: Generating /boot/initrd.img-6.8.0-52-generic (Reading database ... 178152 files and directories currently installed.) Purging configuration files for console-setup (1.226ubuntu1) ... Purging configuration files for console-setup-linux (1.226ubuntu1) ... dpkg: warning: while removing console-setup-linux, directory '/etc/console-setup' not empty so not removed Purging configuration files for keyboard-configuration (1.226ubuntu1) ... Scanning processes... Scanning candidates... Scanning processor microcode... Scanning linux images... $ sudo apt-get --no-install-recommends install -y kbd Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: libestr0 libfastjson4 Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: console-setup console-setup-linux keyboard-configuration The following NEW packages will be installed: console-setup console-setup-linux kbd keyboard-configuration ... Get:1 http://be.archive.ubuntu.com/ubuntu noble/main amd64 keyboard-configuration all 1.226ubuntu1 [212 kB] Fetched 212 kB in 1s (223 kB/s) Preconfiguring packages ... /var/cache/debconf/tmp.ci/keyboard-configuration.config.nR7ABu: 1: eval: Syntax error: Unterminated quoted string keyboard-configuration failed to preconfigure, with exit status 2 /var/cache/debconf/tmp.ci/console-setup.config.9dpUEU: 1: eval: Syntax error: Unterminated quoted string console-setup failed to preconfigure, with exit status 2 ... Setting up keyboard-configuration (1.226ubuntu1) ... /var/lib/dpkg/info/keyboard-configuration.config: 1: eval: Syntax error: Unterminated quoted string dpkg: error processing package keyboard-configuration (--configure): installed keyboard-configuration package post-installation script subprocess returned error exit status 2 I inspected visually both files "/var/lib/dpkg/info/keyboard- configuration.config" and "/var/lib/dpkg/info/console-setup.config" but could not detect a clear syntax error. But, checking more closely the head of those 2 files with "od -c", I noticed unexpected characters: $ od -c /var/lib/dpkg/info/console-setup.config | head 0000000 # ! / b i n / s h \n \n # 0000020 C o p y r i g h t 302 251 2 0 0000040 0 5 A n t o n Z i n o v i e and $ od -c /var/lib/dpkg/info/keyboard-configuration.config | head 0000000 # ! / b i n / s h \n \n # 0000020 C o p y r i g h t 302 251 2 0 0000040 0 5 A n t o n Z i n o v i e To inspect the original package bundle, I first removed pkg "keyboard- configuration" again with "apt purge". Then downloaded the package bundle with $ sudo apt install --download-only keyboard-configuration Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: libestr0 libfastjson4 Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: keyboard-configuration 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 212 kB of archives. After this operation, 823 kB of additional disk space will be used. Get:1 http://be.archive.ubuntu.com/ubuntu noble/main amd64 keyboard-configuration all 1.226ubuntu1 [212 kB] Fetched 212 kB in 0s (765 kB/s) Download complete and in download only mode podman@napsjaar:/store/pods/ansible/playbooks/lxc_deploy$ sudo ls -l /var/cache/apt/archives/ /var/cache/apt/archives/: total 212 -rw-r--r-- 1 root root 211794 Mar 13 2024 keyboard-configuration_1.226ubuntu1_all.deb-rw-r----- 1 root root 0 Apr 23 2024 lock drwx------ 2 _apt root 4096 Feb 25 21:22 partial I extracted this ".deb" bundle (with "dpkg-deb -x") and checked with "od -c" all of the files if an "od -c" outputs the same suspicious characters ("302 251") but none of the files has those characters. Could it be that the unpacking or the setting up is corrupting that specific file ? ... Setting up keyboard-configuration (1.226ubuntu1) ... /var/lib/dpkg/info/keyboard-configuration.config: 1: eval: Syntax error: Unterminated quoted string ... To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/console-setup/+bug/2100224/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp