[Bug 2051313] Re: font-config confilcts ubuntustudio-default-settings upgrading from 22.04 to 24.04
Daniel Tang
2051313 at bugs.launchpad.net
Fri Jan 26 03:52:13 UTC 2024
Thank you Mr. Eickmeyer for your fix in 23.04.
> notice how the askubuntu question was closed? That's because it was
offtopic/for an unsupported release
AskUbuntu closes questions as off-topic *because* they want those
questions to be *posted here* instead. It says "Bug reports and problems
specific to development version of Ubuntu should be reported on
Launchpad so that developers can see, track and fix these issues."
Anyway, this bug doesn't affect me, and I might as well treat the
Invalid as Fix Committed but not released.
> won't be supported until August 2024 (upon release of 24.04.1)
Interesting! You helped me learn something today after reading
https://ubuntu.com/server/docs/upgrade-introduction . I never noticed
this as I personally upgrade to either latest or dev, never LTS
specifically. I will post a comment on AskUbuntu to relay this
information
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to fontconfig in Ubuntu.
https://bugs.launchpad.net/bugs/2051313
Title:
font-config confilcts ubuntustudio-default-settings upgrading from
22.04 to 24.04
Status in fontconfig package in Ubuntu:
Invalid
Status in ubuntustudio-default-settings package in Ubuntu:
Invalid
Bug description:
This bug was migrated from https://askubuntu.com/q/1501240/1004020 .
A nearly identical bug is
https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/2005124 . It
fixed things for `kubuntu-settings-desktop` but not `ubuntustudio-
default-settings`. Please add an analogous fix.
A similar but potentially unrelated bug is
https://bugs.launchpad.net/ubuntu/+source/ubuntustudio-default-
settings/+bug/2037471 .
1) The release of Ubuntu you are using, via 'lsb_release -rd' or
System -> About Ubuntu
Not my computer.
2) The version of the package you are using, via 'apt-cache policy
pkgname' or by checking in Software Center
Not my computer.
3) What you expected to happen
The AskUbuntu user's upgrade from 22.04 to 24.04 to complete
successfully.
4) What happened instead
The upgrade failed and they posted to AskUbuntu.
# Copy of their question body
After an upgrade to
```
Distributor ID: Ubuntu
Description:Ubuntu Noble Numbat (development branch)
Release: 24.04
Codename:noble
```
apt won't update bcs of unmet dependencies.
```
The following packages have unmet dependencies:
libfontconfig1 : Depends: fontconfig-config (>= 2.14.2-6ubuntu1)
libfontconfig1:i386 : Depends: fontconfig-config:i386 (>= 2.14.2-6ubuntu1)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
```
I've tried:
```
apt --fix-broken install
```
```
dpkg: error processing archive /var/cache/apt/archives/fontconfig-config_2.14.2-6ubuntu1_amd64.deb (--unpack):
trying to overwrite '/etc/fonts/conf.d/10-sub-pixel-rgb.conf', which is also in package ubuntustudio-default-settings 22.04.26.3
dpkg-query: package 'fontconfig-config' is not installed
Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.
dpkg-query: package 'fontconfig-config' is not installed
Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.
dpkg-query: package 'fontconfig-config' is not installed
Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.
Errors were encountered while processing:
/var/cache/apt/archives/fontconfig-config_2.14.2-6ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
```
# Copy of workaround in my answer body
The problem is that 24.04 moved `/etc/fonts/conf.d/10-sub-pixel-
rgb.conf` out of `ubuntustudio-default-settings`
([before](https://packages.ubuntu.com/jammy/all/ubuntustudio-default-
settings/filelist),
[after](https://packages.ubuntu.com/noble/all/ubuntustudio-default-
settings/filelist)) and into [`fontconfig-
config`](https://packages.ubuntu.com/noble/all/fontconfig-
config/filelist). The `ubuntustudio-default-settings` package needs to
be updated first but the maintainers forgot to add an automatic
`Conflicts:` line.
You can retry installing the package in the correct order by running
`sudo apt install --upgrade ubuntustudio-default-settings`. If that
does not work, you need to forcibly reinstall things in the correct
order:
```bash
sudo -i
apt update
apt download ubuntustudio-default-settings
apt download fontconfig-config
# Temporarily force-uninstall only ubuntustudio-default-settings
# so that we DON'T uninstall ubuntustudio-desktop
dpkg --force-all -r ubuntustudio-default-settings
dpkg --force-all -i ./fontconfig-config_*
dpkg --force-all -i ./ubuntustudio-default-settings_*
dpkg --configure -a
apt --fix-broken install
apt upgrade
apt dist-upgrade
```
# Analysis
Please apply an analogous fix. Where I mentioned `Conflicts:` on
AskUbuntu, a `Pre-Depends:` may be necessary instead as I read
somewhere on Launchpad.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/2051313/+subscriptions
More information about the foundations-bugs
mailing list