gdebi-gtk calls pkexec inappropriately
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdebi (Ubuntu) |
Confirmed
|
Medium
|
Utkarsh Gupta |
Bug Description
Steps to reproduce:
1. Have Ubuntu with gdebi-gtk installed
2. Open Firefox
3. Visit some site with deb-package download link or use direct link like https:/
4. Proceed with file downloading
5. In Firefox select Library → Downloads, click on downloaded deb-file
Expected results:
* gdebi-gtk is opened, the package installs normally after users clicks Install button
Actual results:
* gdebi-gtk is opened, the package is not installed because of vanishing of gdebi-gtk window just after clicking Install button
----
Before anyone says this bug already exists... it doesn't (at least as far as I can see). It's just that a lot of similar bugs do/did exist where people have also experienced the same symptoms (of gdebi-gtk vanishing upon clicking 'Install').
So yes this is the same symptoms, but it must be a different cause as the circumstances are different and doesn't have the same resolution.
The meat of it...
Basically on a fresh install of Ubuntu MATE 18.04.3 amd64... with Firefox (or with Chrome if you installed that) go to any site that offers a .deb package and either...
a) choose to open it directly from the browser (rather than saving it to 'Downloads' folder)
b) or... save the file (e.g. to the 'Downloads' folder), BUT!.. open that file from within the browser itself.
You should find that gdebi-gtk appears but vanishes the moment you click 'Install' without a prompt for a password, an explanation or the package actually getting installed.
This bug has existed since the beginning of Ubuntu 18.04 however it's been largely confused with other similar bugs. I've had it on half a dozen machines and confirmed it exists with IRC users on #ubuntu-mate of freenode.
However with *this* bug (compared to others) gdebi-gtk works perfectly fine if you run it from the terminal or just double click the .deb package from your file manager.
It's the kind of bug which if you're a hardened desktop Linux user, you'd just work around it...
But if you're a novice and you can't get a simple thing like Teamviewer installed (which is a .deb, and a thing I might ask someone to do over the phone to try to help them) you likely get fed up and re-install Windows :S
Any input on this would be brilliant as I can't seem to get any logs/output.
~lantizia
Related branches
- Julian Andres Klode (community): Needs Fixing
- Utkarsh Gupta: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 29 lines (+5/-2)1 file modifiedGDebi/GDebiGtk.py (+5/-2)
tags: | added: bionic |
tags: | added: eoan focal |
Changed in firefox (Ubuntu): | |
importance: | Undecided → Low |
tags: | removed: eoan |
tags: | added: hirsute |
tags: | added: jammy |
tags: | added: rls-jj-incoming |
affects: | gdebi → ubuntu |
no longer affects: | ubuntu |
Changed in gdebi (Ubuntu): | |
importance: | Undecided → Medium |
So a workaround for anyone reading this... (thanks to alkisg on freenode for working with me on this)...
sudo rm /usr/bin/gdebi-gtk gdebi/gdebi- gtk "$@"' | sudo tee -a /usr/bin/gdebi-gtk
echo '#!/bin/sh' | sudo tee /usr/bin/gdebi-gtk
echo '/usr/share/
sudo chmod +x /usr/bin/gdebi-gtk
Don't worry deleting 'gdebi-gtk' on that first line, it's only a symlink.
Basically this wrapper is needed otherwise policy kit complains and states "Refusing to render service to dead parents."