To fix broken gksu

If gdebi or ”open as administrator” dies itself after writing the password, the reason might be that gksu uses su instead of sudo.

Open Terminal and run commands

apt policy gksu

gksu-properties

Choose sudo