SRU: Default dependency resolution in Focal pulls in full GNOME Desktop

Bug #1930937 reported by Daniel Dadap
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
screen-resolution-extra (Ubuntu)
Triaged
Medium
Alberto Milone
Focal
Confirmed
Medium
Alberto Milone
Groovy
Fix Committed
Medium
Alberto Milone
Hirsute
Won't Fix
Medium
Alberto Milone

Bug Description

In Bionic, screen-resolution-extra has a dependency on policykit-1-gnome | polkit-1-auth-agent. Focal replaces this with a dependency on gnome-shell | policykit-1-gnome | polkit-1-auth-agent. As a result, when install screen-resolution-extra (e.g. as a dependency of nvidia-settings) on a system that doesn't already have GNOME or another polkit auth agent installed, the default dependency resolution pulls in a full GNOME desktop in Focal, while it does not do so under the same circumstances in Bionic. This can be worked around by explicitly installing policykit-1-gnome (or another package which provides the polkit-1-auth-agent virtual package), but it would be nice to not pull in GNOME by default on a system that doesn't already have it.

[Impact]

* Installing the nvidia-settings package causes gnome-shell to be installed. This is less than ideal on servers.

[Fix]

* Moving policykit-1-gnome ahead as the first of the polkit dependencies will solve the problem.

[Test Case]

* Install screen-resolution-extra from proposed on a system where no polkit-1-auth-agent provider is installed, and check that gnome-shell is not installed as a dependency.

[Regression Risk]
Low, as the change will still allow the dependency to be satisfied.

Changed in screen-resolution-extra (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Alberto Milone (albertomilone)
Changed in screen-resolution-extra (Ubuntu Bionic):
status: New → Triaged
Changed in screen-resolution-extra (Ubuntu Focal):
status: New → Triaged
Changed in screen-resolution-extra (Ubuntu Bionic):
importance: Undecided → Medium
Changed in screen-resolution-extra (Ubuntu Focal):
importance: Undecided → Medium
Changed in screen-resolution-extra (Ubuntu Groovy):
importance: Undecided → Medium
Changed in screen-resolution-extra (Ubuntu Hirsute):
importance: Undecided → Medium
Changed in screen-resolution-extra (Ubuntu Groovy):
status: New → Triaged
Changed in screen-resolution-extra (Ubuntu Hirsute):
status: New → Triaged
Changed in screen-resolution-extra (Ubuntu Bionic):
assignee: nobody → Alberto Milone (albertomilone)
Changed in screen-resolution-extra (Ubuntu Focal):
assignee: nobody → Alberto Milone (albertomilone)
Changed in screen-resolution-extra (Ubuntu Groovy):
assignee: nobody → Alberto Milone (albertomilone)
Changed in screen-resolution-extra (Ubuntu Hirsute):
assignee: nobody → Alberto Milone (albertomilone)
no longer affects: screen-resolution-extra (Ubuntu Bionic)
Revision history for this message
Alberto Milone (albertomilone) wrote :

@SRU team: please accept screen-resolution-extra 0.18.0.21.04.1, 0.18.0.20.10.1, and 0.18.0.20.04.1 into -proposed.

description: updated
summary: - Default dependency resolution in Focal pulls in full GNOME Desktop
+ SRU: Default dependency resolution in Focal pulls in full GNOME Desktop
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Daniel, or anyone else affected,

Accepted screen-resolution-extra into hirsute-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/screen-resolution-extra/0.18.0.21.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-hirsute to verification-done-hirsute. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-hirsute. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in screen-resolution-extra (Ubuntu Hirsute):
status: Triaged → Fix Committed
tags: added: verification-needed verification-needed-hirsute
Changed in screen-resolution-extra (Ubuntu Groovy):
status: Triaged → Fix Committed
tags: added: verification-needed-groovy
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Daniel, or anyone else affected,

Accepted screen-resolution-extra into groovy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/screen-resolution-extra/0.18.0.20.10.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-groovy to verification-done-groovy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-groovy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in screen-resolution-extra (Ubuntu Focal):
status: Triaged → Fix Committed
tags: added: verification-needed-focal
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Daniel, or anyone else affected,

Accepted screen-resolution-extra into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/screen-resolution-extra/0.18.0.20.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Daniel Dadap (ddadap) wrote :

Tested in a clean focal chroot. The dependency resolution works as expected, allowing the package to be installed without pulling in all of GNOME, but only if the "universe" repository component is enabled. If I have only "main" enabled, then dependency resolution fails with the following:

# apt install screen-resolution-extra
Reading package lists... Done
Building dependency tree... 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:
 screen-resolution-extra : Depends: policykit-1-gnome but it is not installable or
                                    gnome-shell but it is not going to be installed or
                                    polkit-1-auth-agent
E: Unable to correct problems, you have held broken packages.

I'm not sure if there's a reason apt doesn't just fall back to selecting gnome-shell when policykit-1-gnome isn't available, due to being in a disabled repository. Perhaps this might be expected behavior, but since there is a change in behavior compared to how the dependencies were previously set up, I'm not sure if the change is appropriate for an SRU. At least for default desktop installations, I imagine the difference wouldn't be noticeable, since gnome-shell would already be installed.

Revision history for this message
Alberto Milone (albertomilone) wrote :

That is probably the reason why we picked gnome-shell as the first dependency. Packages in main should not depend on packages in universe.

tags: added: verification-failed verification-failed-focal verification-failed-groovy verification-failed-hirsute
removed: verification-needed verification-needed-focal verification-needed-groovy verification-needed-hirsute
Revision history for this message
Steve Langasek (vorlon) wrote : Proposed package removed from archive

The version of screen-resolution-extra in the proposed pocket of Hirsute that was purported to fix this bug report has been removed because one or more bugs that were to be fixed by the upload have failed verification and been in this state for more than 10 days.

Changed in screen-resolution-extra (Ubuntu Hirsute):
status: Fix Committed → Confirmed
Revision history for this message
Steve Langasek (vorlon) wrote :

The version of screen-resolution-extra in the proposed pocket of Focal that was purported to fix this bug report has been removed because one or more bugs that were to be fixed by the upload have failed verification and been in this state for more than 10 days.

Changed in screen-resolution-extra (Ubuntu Focal):
status: Fix Committed → Confirmed
Revision history for this message
Michael Reed (mreed8855) wrote :

As it stands this is unlikely to be changed. By default universe is enabled. This can be verified or added with the following command:

sudo add-apt-repository universe

Output:
'universe' distribution component is already enabled for all sources.

Revision history for this message
Shivani Lalit Changela (shivani1512) wrote :

I have tried the below steps i.e

1. Install Ubuntu 20.04
2. Enable the universe repository by #sudo add-apt-repository universe (I noticed that this was already
        enabled)
3. Install cuda drivers
4. Reboot

With this, I still see that the GUI is loading.

Revision history for this message
Shivani Lalit Changela (shivani1512) wrote :

Hi,

Can you please tell us what is the recommended fix for the issue?

Revision history for this message
Shivani Lalit Changela (shivani1512) wrote :

Hi,

I have tried the below steps i.e

1. Install Ubuntu 20.04
2. Enable the universe repository by #sudo add-apt-repository universe (I noticed that this was already
        enabled)
3. Install cuda drivers using the --no-install-recommendations options i.e apt install -y --no-install-
   recommends cuda
4. Reboot

With this, I do not see the GUI loading.
Can you please help us with the recommended fix for the same? Any thoughts on the above method tried?

Revision history for this message
Brian Murray (brian-murray) wrote :

The Hirsute Hippo has reached End of Life, so this bug will not be fixed for that release.

Changed in screen-resolution-extra (Ubuntu Hirsute):
status: Confirmed → Won't Fix
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.