ubuntu-release-upgrader depends on gksu but it is not installed by default

Bug #1732500 reported by Jean-Baptiste Lallement
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

On a fresh artful installation ubuntu-release-upgrader has this code in DistUpgrade/DistUpgradeFetcher.py:

...
47 def runDistUpgrader(self):
48 # now run it as root
49 if os.getuid() != 0:
50 os.execv("/usr/bin/gksu",
51 ["gksu",
...

But gksu is not installed by default and u-r-u crashes if it is executed as a non root user.

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: ubuntu-release-upgrader-core 1:17.10.8
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.1
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Wed Nov 15 18:01:16 2017
InstallationDate: Installed on 2017-11-14 (1 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
Symptom: ubuntu-release-upgrader
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
summary: - ubuntu-release-upgrader depends on gksu but is is not installed by
+ ubuntu-release-upgrader depends on gksu but it is not installed by
default
Revision history for this message
Brian Murray (brian-murray) wrote :

ubuntu-release-upgrader (1:18.04.5) bionic; urgency=medium

  * DistUpgrade/DistUpgradeFetcher.py,
    check-new-release-gtk,
    do-release-upgrade:
    - Raise privileges in do-release-upgrade using pkexec when GUI is used
    - Drop gksu usage
    - Use os.execv in check-new-release-gtk instead of os.execl
    - Apply the workaround "xhost +si:localuser:root" under Wayland to let
      upgrades finish (LP: #1732185)
  * Skip Python files from other packages in PEP 8 tests

 -- Balint Reczey <email address hidden> Mon, 15 Jan 2018 17:09:44 +0100

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → 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.