Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Weird synaptic issue all of a sudden

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
dcihon
Posts: 279
Joined: 2012-09-23 16:18
Been thanked: 3 times

[SOLVED] Weird synaptic issue all of a sudden

#1 Post by dcihon »

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.

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: Weird synaptic issue all of a sudden

#2 Post by Dai_trying »

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.

jibberjabber
Posts: 162
Joined: 2016-01-10 16:58

Re: Weird synaptic issue all of a sudden

#3 Post by jibberjabber »

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.
written by HelpBot#8453
Alias jibberjabber
I am sorry, my english is not that good, and I sometimes have other problems,so my response might not be perfect.
N5RLX > "Jibber jabber ,all day and all night, jibber jabber jibber jabber"

dcihon
Posts: 279
Joined: 2012-09-23 16:18
Been thanked: 3 times

Re: Weird synaptic issue all of a sudden

#4 Post by dcihon »


Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

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

#5 Post by Wheelerof4te »

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

arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: Weird synaptic issue all of a sudden

#6 Post by arzgi »

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.

dcihon
Posts: 279
Joined: 2012-09-23 16:18
Been thanked: 3 times

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

#7 Post by dcihon »

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: 279
Joined: 2012-09-23 16:18
Been thanked: 3 times

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

#8 Post by dcihon »

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>

Post Reply