kxc fails to install because the configuration doesn't exist

Bug #2021527 reported by luca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kxd (Ubuntu)
New
Undecided
Unassigned

Bug Description

Trying to install kxc the installation fails while trying to create the initrd because /etc/kxc doesn't exist, but to create /etc/kxc you normally need to run kxc.

The install command is removing kxd because I mixed up the packages, but it doesn't look like the problem is related to having installed kxd, it is very clear that it is about the missing /etc/kxc:

$ sudo apt install --purge kxd- kxc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  kxd*
The following NEW packages will be installed:
  kxc
0 upgraded, 1 newly installed, 1 to remove and 10 not upgraded.
Need to get 1,652 kB of archives.
After this operation, 1,226 kB disk space will be freed.
Do you want to continue? [Y/n]
Get:1 http://de.archive.ubuntu.com/ubuntu kinetic/universe amd64 kxc amd64 0.15-3 [1,652 kB]
Fetched 1,652 kB in 1s (2,838 kB/s)
(Reading database ... 118609 files and directories currently installed.)
Removing kxd (0.15-3) ...
Selecting previously unselected package kxc.
(Reading database ... 118600 files and directories currently installed.)
Preparing to unpack .../archives/kxc_0.15-3_amd64.deb ...
Unpacking kxc (0.15-3) ...
Setting up kxc (0.15-3) ...
Processing triggers for initramfs-tools (0.140ubuntu17) ...
update-initramfs: Generating /boot/initrd.img-5.19.0-42-generic
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/vg-swap)
I: Set the RESUME variable to override this.
cp: cannot stat '/etc/kxc/': No such file or directory
E: /usr/share/initramfs-tools/hooks/kxc failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.19.0-42-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.10.2-2) ...
Errors were encountered while processing:
 initramfs-tools
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: kxc 0.15-3
ProcVersionSignature: Ubuntu 5.19.0-42.43-generic 5.19.17
Uname: Linux 5.19.0-42-generic x86_64
ApportVersion: 2.23.1-0ubuntu3.2
Architecture: amd64
CasperMD5CheckResult: pass
Date: Mon May 29 22:29:14 2023
InstallationDate: Installed on 2023-03-11 (79 days ago)
InstallationMedia: Ubuntu-Server 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809)
ProcEnviron:
 TERM=screen-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: kxd
UpgradeStatus: Upgraded to kinetic on 2023-03-11 (79 days ago)

Revision history for this message
luca (llucax) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.