[SOLVED] Weird synaptic issue all of a sudden

Kernels & Hardware, configuring network, installing services

[SOLVED] Weird synaptic issue all of a sudden

Postby dcihon » 2018-04-13 10:42

First as all of you know I am running testing. Well maybe not everyone knows that.
I did some google searching and nothing has turned up about this so far.
I went to launch synaptic from my menu and nothing happened. I thought this is weird.
So I opened up a terminal and launched it and it said command not found.
Well I know it is there.
So I ran su synaptic and it launched.
Ok so what is wrong. Not sure.
So I looked at the launcher and it had this as the command : synaptic-pkexec
so I ran that and this is what I got:
Code: Select all
cihonm@cihonm:~$ synaptic-pkexec
==== AUTHENTICATING FOR com.ubuntu.pkexec.synaptic ===
Authentication is required to run the Synaptic Package Manager
Authenticating as: cihonm,,, (cihonm)
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.

The weird thing to me is why is ubuntu involved? I don't have any ubuntu anything on this system that I am aware of.
This is a pure debian testing machine.
Any ideas?
Last edited by dcihon on 2018-04-19 10:28, edited 1 time in total.
dcihon
 
Posts: 226
Joined: 2012-09-23 16:18

Re: Weird synaptic issue all of a sudden

Postby Dai_trying » 2018-04-13 12:50

It's only a guess, but are you in the sudo group? or do you even have sudo installed?
I'm not at all sure this would make a difference, but I would imagine pkexec has to get it's authorization from somewhere and sudo is the "normal" way a user gets authorized to run root commands.
I'm not saying you "should" install sudo, but if you want to run commands as user but gain privilege escalation then you would need some structure to do it.
There is likely a better way to do this with some policykit configuration but I will have to leave that for someone more knowledgeable.
Dai_trying
 
Posts: 471
Joined: 2016-01-07 12:25

Re: Weird synaptic issue all of a sudden

Postby jibberjabber » 2018-04-13 17:43

The weird thing to me is why is ubuntu involved?

Well sudo is a Ubuntu thing, I have never tried using it on a Debian system,
Synaptic Package Manager, must be run as root, or if you like the Ubuntu style, you can install and use sudo,...

by dcihon »So I ran su synaptic and it launched.


So, what is the problem ? As far as I know it has all ways been that way, when I wanted to use synaptic, that is how I started it:
Code: Select all
$su
$pasword:*********
#synaptic 

And it starts,...

With out the "Ubuntu" sudo thing installed, that is normal to get that kind of error message if you try to start synaptic package manager from a DE menu, as a normal user.
N5RLX > "Jibber jabber jibber jabber,all day and all night, jibber jabber jibber jabber"

Then there is Papa Parrot
jibberjabber
 
Posts: 93
Joined: 2016-01-10 16:58

Re: Weird synaptic issue all of a sudden

Postby dcihon » 2018-04-19 10:28

dcihon
 
Posts: 226
Joined: 2012-09-23 16:18

Re: [SOLVED] Weird synaptic issue all of a sudden

Postby Wheelerof4te » 2018-04-19 13:09

Just a guess, but if you are on GNOME Wayland, which is default in Testing, then Synaptic can't start without some hacky workaround.
As I have advised before, learn to use apt, it has search command too.

Or, log off, click on the wheel and choose "GNOME on X server". Login, then try launching Synaptic again
User avatar
Wheelerof4te
 
Posts: 1035
Joined: 2015-08-30 20:14

Re: Weird synaptic issue all of a sudden

Postby arzgi » 2018-04-20 06:31

jibberjabber wrote:
Well sudo is a Ubuntu thing,


I've heard this before, but I was using sudo on Debian before Ubuntu even existed.

Ubuntu makes you use sudo, Debian lets you choose.
arzgi
 
Posts: 182
Joined: 2008-02-21 17:03
Location: Finland

Re: [SOLVED] Weird synaptic issue all of a sudden

Postby dcihon » 2018-04-20 10:15

I am using MATE.
If I su or sudo from the CLI it will work.
So no big deal.
Thanks for the input.
Gotta love testing.
dcihon
 
Posts: 226
Joined: 2012-09-23 16:18

Re: [SOLVED] Weird synaptic issue all of a sudden

Postby dcihon » 2018-04-23 10:40

I found this post on another forum.
This hack fixed my issue:
Code: Select all
you can hack /usr/share/polkit-1/actions/com.ubuntu.pkexec.synaptic.policy and change the active session to 'yes'.

Code: Select all

    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
dcihon
 
Posts: 226
Joined: 2012-09-23 16:18


Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable