Fix gdebi-gtk on Debian 11 Bullseye

On Debian 11 Bullseye, when clicking .deb package, gdebi-gtk does not install package. I figured out how to fix it at 2021-08-29:

  1. Change to root user, insert root password

su

  1. Go to directory /usr/bin

cd /usr/bin

  1. Rename gdebi-gtk

mv gdebi-gtk gdebi-gtk-installer

  1. Edit textfile, for example with nano (sudo apt install nano)

nano gdebi-gtk

  1. Add there this one text line only, I found this from https://askubuntu.com/questions/287845/how-to-configure-pkexec

NOTE: to the end of the line, directly after $, add at-sign (the same that is used in email address before domain), I can not add it to here because the it changes to email protection text:



pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gdebi-gtk-installer $

  1. Ctrl-o Enter (saves textfile in nano) Ctrl-x (exits nano)

  2. Change permissions

chmod 755 gdebi-gtk

  1. Then try double click .deb package. It should ask for password and then install package.