synaptic

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
fwm
Posts: 15
Joined: 2024-03-16 20:06
Been thanked: 1 time

synaptic

#1 Post by fwm »

I recently installed Debian 12 .
The synaptic package manager won't launch.
What is the fix?
Thanks

User avatar
bbbhltz
Posts: 255
Joined: 2024-01-10 14:53
Location: Normandy
XMMP/Jabber: bbbhltz@mailbox.org
Has thanked: 63 times
Been thanked: 59 times

Re: synaptic

#2 Post by bbbhltz »

Hi,

Can you give a little bit more info? You used the installer and chose a DE I'm guessing? Did you choose Gnome or another?

Have you tried launching it from the terminal?

The only time I've encountered this issue was when I managed to remove a policykit package.

But, easy things to try first: restart, update/upgrade, purge synaptic and reinstall.

(Also, can you change the title of the first post to something like "Synaptic won't launch"?)
bbbhltz
longtime desktop Linux user; eternal newbie

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 1087
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 117 times
Been thanked: 189 times

Re: synaptic

#3 Post by wizard10000 »

I'm afraid synaptic doesn't work as it should under Wayland. It'll work fine in an X11 session, though.
we see things not as they are, but as we are.
-- anais nin

fwm
Posts: 15
Joined: 2024-03-16 20:06
Been thanked: 1 time

Re: synaptic

#4 Post by fwm »

I am using XFCE , I also have GNOME installed.

The following is code information:

Code: Select all

fred@debian:~$ loginctl show-session $(loginctl show-user $(whoami) -p Display --value) -p Type --value 
x11
fred@debian:~$ dpkg --status synaptic 
Package: synaptic
Status: install ok installed

fred@debian:~$ synaptic-pkexec 
==== AUTHENTICATING FOR com.ubuntu.pkexec.synaptic ====
Authentication is required to run the Synaptic Package Manager
Authenticating as: root
Password: 
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ====
Error executing command as another user: Not authorized

This incident has been reported.
fred@debian:~$ su -
Password: 
root@debian:~# synaptic-pkexec 
Failed to initialize GTK.

Probably you're running Synaptic on Wayland with root permission.
Please restart your session without Wayland, or run Synaptic without root permission
root@debian:~# 



User avatar
bbbhltz
Posts: 255
Joined: 2024-01-10 14:53
Location: Normandy
XMMP/Jabber: bbbhltz@mailbox.org
Has thanked: 63 times
Been thanked: 59 times

Re: synaptic

#5 Post by bbbhltz »

Are there any root-owned files in your home

Code: Select all

# find ~/ -user root
If there are, you need to change that

Code: Select all

sudo chown -Rc $USER:$USER $HOME
Reboot and reinstall Synaptic and don't launch it with sudo
bbbhltz
longtime desktop Linux user; eternal newbie

peer
Posts: 511
Joined: 2017-03-26 10:14
Has thanked: 10 times
Been thanked: 31 times

Re: synaptic

#6 Post by peer »

I am running debian 12 kde-plasma on wayland and synaptic just works. I do not know if there are extras installed(needed) to make it work.

Dude Guyman
Posts: 29
Joined: 2023-06-30 09:28
Has thanked: 4 times
Been thanked: 2 times

Re: synaptic

#7 Post by Dude Guyman »

I'm running v12.6 with Xfce, no problem.

Created a root password?
Put user in sudoers group?

Add user to sudoers (correct the "YourUserName" part):

Code: Select all

su -
usermod -aG sudo YourUserName

fwm
Posts: 15
Joined: 2024-03-16 20:06
Been thanked: 1 time

Re: synaptic

#8 Post by fwm »

"Are there any root-owned files in your home" No- based on the code below

Code: Select all

fred@debian:~$ # find ~/ -user root
fred@debian:~$

fwm
Posts: 15
Joined: 2024-03-16 20:06
Been thanked: 1 time

Re: synaptic

#9 Post by fwm »

"Created a root password?"
Yes the root password works

Code: Select all

fred@debian:~$ su -
Password: 
root@debian:~#
Synaptic worked without a problem in debian 11.9 bullseye

CwF
Global Moderator
Global Moderator
Posts: 3073
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 63 times
Been thanked: 254 times

Re: synaptic

#10 Post by CwF »

fwm wrote: 2024-08-11 17:52 Synaptic worked without a problem in debian 11.9 bullseye
Since it was working in 11, assuming you were using 'synaptic-pkexec', something in polkit changed in the upgrade to 12. I did post a year or two back about the restructure of polkit and the loss of use after. Do you know what rules and methods were in use to allow the user through polkit? Since the password fails in your post above, polkit's setup is the issue. No setup and incorrect setup yield that result. It could be that the former rules were pkla based - which broke without the additional package 'polkit-pkla'. The newer js based format had been functional prior.

As I remember, listchanges did mention it.

Also on older installs there may have been no default rule to include sudo members in polkit actions. I believe that is now included by default.

You need to re-configure polkit. There are a few discussion to find that may help...
https://forums.debian.net/viewtopic.php ... it#p795066

My ways may or may not line up with your requirements. You can alter the method in many ways to suite. Using the method I used in that link, you could use the sudo group instead if desired.
Mottainai

fwm
Posts: 15
Joined: 2024-03-16 20:06
Been thanked: 1 time

Re: synaptic

#11 Post by fwm »

Thanks for all the input - problem "solved"

Briefly- the problem was that synaptic would not open under the Xfce
platform.
I went around the problem by entering the Gnome classic on Xorg platform
- clicking on the wheel - upper right hand bar- shows platform options.
- synaptic launches from this platform.
Once I downloaded packages, I restarted the computer and logged
into the Xfce platform.

I know it sounds like a lot of work - but I really prefer the Xfce platform
for its simplicity and ease of use.

Bulkley
Posts: 6409
Joined: 2006-02-11 18:35
Has thanked: 5 times
Been thanked: 46 times

Re: synaptic

#12 Post by Bulkley »

fwm wrote: 2024-08-18 22:10 . . . but I really prefer the Xfce platform
for its simplicity and ease of use.
Yes, Xfce is a nice desktop.

As to Synaptic, I haven't used it for many years. When I did have it I just used it as a package browser. There is another package browser that is very handy, Gnome Package Search.

Code: Select all

# apt install package search
I think you can actually use Package Search to install packages but I prefer to use line commands in a terminal.

Post Reply