kxc fails to install because the configuration doesn't exist
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://
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/
Unpacking kxc (0.15-3) ...
Setting up kxc (0.15-3) ...
Processing triggers for initramfs-tools (0.140ubuntu17) ...
update-initramfs: Generating /boot/initrd.
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/
I: Set the RESUME variable to override this.
cp: cannot stat '/etc/kxc/': No such file or directory
E: /usr/share/
update-initramfs: failed for /boot/initrd.
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
ProcVersionSign
Uname: Linux 5.19.0-42-generic x86_64
ApportVersion: 2.23.1-0ubuntu3.2
Architecture: amd64
CasperMD5CheckR
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-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: kxd
UpgradeStatus: Upgraded to kinetic on 2023-03-11 (79 days ago)