package fontconfig-config 2.13.1-4.4ubuntu1 failed to install/upgrade: trying to overwrite '/etc/fonts/conf.d/10-sub-pixel-rgb.conf', which is also in package kubuntu-settings-desktop 1:23.04.2

Bug #2005124 reported by Am fermas
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
fontconfig (Debian)
Fix Released
Unknown
fontconfig (Ubuntu)
Fix Released
Undecided
Gunnar Hjalmarsson
kubuntu-settings (Ubuntu)
Fix Released
High
Gunnar Hjalmarsson

Bug Description

 I don't know

ProblemType: Package
DistroRelease: Ubuntu 23.04
Package: fontconfig-config 2.13.1-4.4ubuntu1
ProcVersionSignature: Ubuntu 5.19.0-21.21-generic 5.19.7
Uname: Linux 5.19.0-21-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.24.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
Date: Sat Feb 4 05:59:53 2023
DuplicateSignature:
 package:fontconfig-config:2.13.1-4.4ubuntu1
 Unpacking fontconfig-config (2.14.1-3ubuntu1) over (2.13.1-4.4ubuntu1) ...
 dpkg: error processing archive /tmp/apt-dpkg-install-xn7IM4/015-fontconfig-config_2.14.1-3ubuntu1_amd64.deb (--unpack):
  trying to overwrite '/etc/fonts/conf.d/10-sub-pixel-rgb.conf', which is also in package kubuntu-settings-desktop 1:23.04.2
ErrorMessage: trying to overwrite '/etc/fonts/conf.d/10-sub-pixel-rgb.conf', which is also in package kubuntu-settings-desktop 1:23.04.2
InstallationDate: Installed on 2023-01-31 (3 days ago)
InstallationMedia: Kubuntu 23.04 "Lunar Lobster" - Alpha amd64 (20230130)
PackageArchitecture: all
Python3Details: /usr/bin/python3.11, Python 3.11.1, python3-minimal, 3.11.1-0ubuntu1
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.19ubuntu3
 apt 2.5.5
SourcePackage: fontconfig
Title: package fontconfig-config 2.13.1-4.4ubuntu1 failed to install/upgrade: trying to overwrite '/etc/fonts/conf.d/10-sub-pixel-rgb.conf', which is also in package kubuntu-settings-desktop 1:23.04.2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Am fermas (amfermas) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in fontconfig (Ubuntu):
status: New → Confirmed
Changed in kubuntu-settings (Ubuntu):
status: New → Confirmed
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Upstream enabled 10-sub-pixel-rgb.conf by default.

It should be mentioned that the change resulted in a discussion, and there is a later upstream commit which makes a choice of 10-sub-pixel-*.conf configurable instead. But assuming that we want to keep "rgb" as the default in standard Ubuntu, I won't change fontconfig for now.

Instead I have uploaded a change to kubuntu-desktop which stops installing /etc/fonts/conf.d/10-sub-pixel-rgb.conf.

Btw, Debian's fix of the similar linked fontconfig bug does not apply to us, since we don't provide debconf prompts.

Changed in kubuntu-settings (Ubuntu):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
importance: Undecided → High
status: Confirmed → Fix Committed
Changed in fontconfig (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kubuntu-settings - 1:23.04.3

---------------
kubuntu-settings (1:23.04.3) lunar; urgency=medium

  [ Rik Mills ]
  * Update Kubuntu theme.

  [ Gunnar Hjalmarsson ]
  * debian/kubuntu-settings-desktop.links:
    - Drop etc/fonts/conf.d/10-sub-pixel-rgb.conf, since that link is
      now installed by fontconfig (LP: #2005124).

 -- Gunnar Hjalmarsson <email address hidden> Sat, 04 Feb 2023 18:37:42 +0100

Changed in kubuntu-settings (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

It struck me that this issue motivates a Breaks/Replaces in fontconfig-config to ensure smooth upgrades. I uploaded that change.

Changed in fontconfig (Ubuntu):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
status: Invalid → Fix Committed
Revision history for this message
Andreas Berger (hatbollen) wrote :

Is there any way to work around this until a fix is released?
It appears I cannot use apt to upgrade/remove other things while this is broken.

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

yes in a terminal app..

sudo dpkg -r kubuntu-desktop
sudo dpkg -r kubuntu-settings-desktop
sudo apt --fix-broken install
sudo apt reinstall kubuntu-desktop

will get around the blockage (as kubuntu-settings-desktop gets pulled in by kubuntu-desktop both need to be temporarily removed)

Revision history for this message
Andreas Berger (hatbollen) wrote :

Very cool, thanks for that!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package fontconfig - 2.14.1-3ubuntu3

---------------
fontconfig (2.14.1-3ubuntu3) lunar; urgency=medium

  * Implement the transition of available config files from /etc to
    /usr after a decade of delay (LP: #2007124).

fontconfig (2.14.1-3ubuntu2) lunar; urgency=medium

  * debian/control:
    - Make fontconfig-config break/replace kubuntu-settings-desktop
      << 1:23.04.3 to handle symlink conflict (LP: #2005124).

 -- Gunnar Hjalmarsson <email address hidden> Thu, 23 Feb 2023 15:54:28 +0100

Changed in fontconfig (Ubuntu):
status: Fix Committed → Fix Released
Changed in fontconfig (Debian):
status: Unknown → Fix Released
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.