Unable to install libgtk-4-dev on 22.04 LTS

Bug #1980734 reported by Martin Ammermüller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
New
High
Unassigned

Bug Description

When trying to install libgtk-4-dev, apt throws an error due to dependency problems:

martin@Nike:~$ sudo apt install libgtk-4-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgtk-4-dev : Depends: gir1.2-gtk-4.0 (= 4.6.2+ds-1ubuntu2) but 4.6.3+ds1-0ubuntu1 is to be installed
                Depends: libgtk-4-1 (= 4.6.2+ds-1ubuntu2) but 4.6.3+ds1-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.

There seems to be a versioning problem.

Revision history for this message
Martin Ammermüller (maammer) wrote :

None of my packages seem to be on hold:

martin@Nike:~$ dpkg --get-selections | grep hold
martin@Nike:~$

Revision history for this message
itai (itai0) wrote :

I have a kind of similar problem might be related.
On a fresh ubuntu server install on my workstation I have unmet dependencies when installing ubuntu-desktop-minimal.

libmutter-10-0 : Breaks: libgtk-4-1 (< 4.6.3+ds1-0ubuntu~) but 4.6.2+ds-1ubuntu2 is to be installed

I've also seen that libgtk-4-1 has version 4.6.5 on phased update.

Revision history for this message
itai (itai0) wrote :

setting APT::Get::Always-Include-Phased-Updates to true seems to have solved it for me.

Revision history for this message
Martin Ammermüller (maammer) wrote :

Adding the line

APT::Get::Always-Include-Phased-Updates true;

to a custom config file in /etc/apt/apt.conf.d/ worked for me, too. I'm not sure of the implications of this workaround, though.

affects: gtk4 (Ubuntu) → apt (Ubuntu)
tags: added: rls-jj-incoming
Changed in apt (Ubuntu):
importance: Undecided → High
Revision history for this message
Julian Andres Klode (juliank) 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.