Not sure if the right area to post but I have a solution to GDebi not working when opened via .deb file association:

Report Bugs, Issues and non- package Requests
Message
Author
0x6A7232
Posts: 41
Joined: Sat Aug 20, 2022 12:42 am

Not sure if the right area to post but I have a solution to GDebi not working when opened via .deb file association:

#1 Post by 0x6A7232 »

If I open GDebi, then manually open the .deb file I want to install, it will prompt me for my password for sudo and work correctly.
If I open the .deb from the browser download list or the file manager, GDebi will open, but when hitting install it will instantly close.

To fix, edit

Code: Select all

/usr/share/applications/gdebi.desktop
Find the line

Code: Select all

Exec=gdebi-gtk %f
change it to add gksudo:

Code: Select all

Exec=gksudo gdebi-gtk %f
Save the file You might need sudo to save it, if this is a problem (your text editor doesn't prompt you for sudo but instead fails), precede your text editor with sudo in terminal, example:

Code: Select all

sudo featherpad /usr/share/applications/gdebi.desktop
Hopefully this can be patched in the future but in the meantime, changing that line will fix the problem, at least it did perfectly for me.

0x6A7232
Posts: 41
Joined: Sat Aug 20, 2022 12:42 am

Re: Not sure if the right area to post but I have a solution to GDebi not working when opened via .deb file association:

#2 Post by 0x6A7232 »

Figured out how to report bugs to Debian (installed the

Code: Select all

reportbug
package). Reported there, hopefully it gets resolved one way or another.

User avatar
AVLinux
Posts: 2998
Joined: Wed Jul 15, 2020 1:15 am

Re: Not sure if the right area to post but I have a solution to GDebi not working when opened via .deb file association:

#3 Post by AVLinux »

Hi,

This solution will only work until there is an update to Gdebi then the package manager will overwrite your edits with a new file and break it again..

Gdebi has been broken ever since Debian changed how 'su' worked quite some time ago and since it's been broken that long nobody upstream appears very interested in fixing it... MX Linux provides two other methods (a) a right-click Thunar Custom Action in the MX XFCE4 version and their own native 'Deb-Installer' which does what Gdebi does and more.. Are both of these options not preferable to an installer that has been broken for at least 2 major Debian releases?

User avatar
Stevo
Developer
Posts: 14560
Joined: Fri Dec 15, 2006 7:07 pm

Re: Not sure if the right area to post but I have a solution to GDebi not working when opened via .deb file association:

#4 Post by Stevo »

sudo featherpad /usr/share/applications/gdebi.desktop
Featherpad also has a feature where one can edit a system file, and then only ask for the password if the changes are saved.
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

FraterLinux
Posts: 272
Joined: Sun Jun 07, 2020 10:45 am

Re: Not sure if the right area to post but I have a solution to GDebi not working when opened via .deb file association:

#5 Post by FraterLinux »

0x6A7232 wrote: Sat Mar 02, 2024 9:04 pm To fix, edit

Code: Select all

/usr/share/applications/gdebi.desktop
Find the line

Code: Select all

Exec=gdebi-gtk %f
A simpler solution:

Code: Select all

Exec=sh -c "gdebi-gtk %f"

Post Reply

Return to “Bugs and Non-Package Requests Forum”