[SOLVED] rpmdrake not starting

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] rpmdrake not starting

Postby pnbalaji » Sep 20th, '20, 15:52

Hi,

Since yesterday onwards, the "Install & Remove Software" is not working. It is asking for the root password. However, after entring the root password, nothing happens. I tried to launch rpmdrake from the mate-terminal and I am seeing the below output in the terminal.

Code: Select all
[bala@Bala-iMac ~]$ rpmdrake
Ignore the following Glib::Object::Introspection & Gtk3 warnings
No protocol specified
Unable to init server: Could not connect: Connection refused
Cannot be run in console mode.


Can someone help?

FYI, I made few changes yesterday. Though I am using Mate desktop, the installation had several KDE related apps like KOrganizer, KWallet and other KDE related libs. I removed most of them. I also installed the latest version Brisk-menu and replaced net-applet with Network Manager.

Thanks,
Balaji.
Last edited by pnbalaji on Sep 22nd, '20, 00:20, edited 1 time in total.
pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34

Re: rpmdrake not starting

Postby doktor5000 » Sep 20th, '20, 20:16

What Mageia release is that ?

please provide the output of the following commands, run as your regular user in a terminal:
Code: Select all
loginctl show-session $XDG_SESSION_ID
ps -ef|grep -v grep|grep -iE "polkit|policykit"
pkexec whoami     # you need to enter your root password when asked by the authentication dialog
echo $DISPLAY
xauth list
cat /etc/hostname

and as root from:
Code: Select all
systemctl status polkit.service -a
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: rpmdrake not starting

Postby pnbalaji » Sep 20th, '20, 21:42

My mageia release is 7.1 Mate. Output of uname -a is below.

Code: Select all
[bala@balas-iMac ~]$ uname -a
Linux balas-iMac 5.7.19-desktop-1.mga7 #1 SMP Thu Aug 27 20:27:55 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux


Output of the commands are below.

Code: Select all
[bala@balas-iMac ~]$ loginctl show-session $XDG_SESSION_ID
Id=1
User=1000
Name=bala
Timestamp=Sat 2020-09-19 19:58:09 CDT
TimestampMonotonic=53677496
VTNr=1
Seat=seat0
Display=:0
Remote=no
Service=lightdm-autologin
Desktop=mate
Scope=session-1.scope
Leader=5180
Audit=1
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=1600629161785974
IdleSinceHintMonotonic=65726002832
LockedHint=no

[bala@balas-iMac ~]$ ps -ef|grep -v grep|grep -iE "polkit|policykit"
polkitd    982     1  0 Sep19 ?        00:00:00 /usr/lib/polkit-1/polkitd --no-debug
bala+  5422  5205  0 Sep19 ?        00:00:00 /usr/libexec/polkit-mate-authentication-agent-1

[bala@balas-iMac ~]$ pkexec whoami
root

[bala@balas-iMac ~]$ echo $DISPLAY
:0

[bala@balas-iMac ~]$ xauth list
localhost.localdomain/unix:0  MIT-MAGIC-COOKIE-1  abb27d217823f7482ef71c573cbcea30

[bala@balas-iMac ~]$ cat /etc/hostname
localhost.localdomain[bala@balas-iMac ~]$ systemctl status polkit.service -a
● polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static; vendor preset: enabled)
   Active: active (running) since Sat 2020-09-19 19:57:41 CDT; 18h ago
     Docs: man:polkit(8)
 Main PID: 982 (polkitd)
    Tasks: 12 (limit: 4915)
   Memory: 18.8M
   CGroup: /system.slice/polkit.service
           └─982 /usr/lib/polkit-1/polkitd --no-debug

Sep 19 19:57:41 localhost.localdomain polkitd[982]: Started polkitd version 0.116
Sep 19 19:57:41 localhost.localdomain polkitd[982]: Loading rules from directory /etc/polkit-1/rules.d
Sep 19 19:57:41 localhost.localdomain polkitd[982]: Loading rules from directory /usr/share/polkit-1/rules.d
Sep 19 19:57:41 localhost.localdomain polkitd[982]: Finished loading, compiling and executing 7 rules
Sep 19 19:57:41 localhost.localdomain systemd[1]: Started Authorization Manager.
Sep 19 19:57:41 localhost.localdomain polkitd[982]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Sep 19 19:58:11 localhost.localdomain polkitd[982]: Registered Authentication Agent for unix-session:1 (system bus name :1.169 [/usr/libexec/polkit-mate-authentication-agent-1], object path /org>
Sep 20 08:42:14 balas-iMac polkitd[982]: Operator of unix-session:1 successfully authenticated as unix-user:bala to gain TEMPORARY authorization for action org.mageia.drakrpm.pkexec.run >
Sep 20 08:45:39 balas-iMac polkitd[982]: Operator of unix-session:1 successfully authenticated as unix-user:bala to gain TEMPORARY authorization for action org.mageia.drakrpm.pkexec.run >
Sep 20 14:36:28 balas-iMac polkitd[982]: Operator of unix-session:1 successfully authenticated as unix-user:bala to gain ONE-SHOT authorization for action org.freedesktop.policykit.exec >
pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34

Re: rpmdrake not starting

Postby doktor5000 » Sep 21st, '20, 10:00

In the logs you can see the issue. You haven't set a proper hostname, Sep 19 it's the default localhost.localdomain but Sep 20 it has changed to balas-iMac.
Set a proper static hostname once e.g. with hostnamectl set-hostname and then reboot, it should be fine then.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: rpmdrake not starting

Postby pnbalaji » Sep 21st, '20, 16:20

Thanks for your response. I did set the hostname to localhost.localdomain with the hostnamectl command. However, I am still having the same issue. When I run rpmdrake from command line, I get this.

Code: Select all
[bala@balas-iMac ~]$ rpmdrake
Ignore the following Glib::Object::Introspection & Gtk3 warnings
No protocol specified
Unable to init server: Could not connect: Connection refused
Cannot be run in console mode.


What else could be the issue?

Output of the same commands are below.

Code: Select all
[bala@balas-iMac ~]$ ps -ef|grep -v grep|grep -iE "polkit|policykit"
polkitd   1010     1  0 09:16 ?        00:00:00 /usr/lib/polkit-1/polkitd --no-debug
bala+  5820  5627  0 09:17 ?        00:00:00 /usr/libexec/polkit-mate-authentication-agent-1

[bala@balas-iMac ~]$ pkexec whoami
root

[bala@balas-iMac ~]$ echo $DISPLAY
:0

[bala@balas-iMac ~]$ xauth list
localhost.localdomain/unix:0  MIT-MAGIC-COOKIE-1  25943720bc61fca8c184701198d8b49d

[bala@balas-iMac ~]$ cat /etc/hostname
localhost.localdomain

[bala@balas-iMac ~]$ sudo systemctl status polkit.service -a
[sudo] password for bala:
● polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static; vendor preset: enabled)
   Active: active (running) since Mon 2020-09-21 09:16:38 CDT; 5min ago
     Docs: man:polkit(8)
 Main PID: 1010 (polkitd)
    Tasks: 12 (limit: 4915)
   Memory: 21.3M
   CGroup: /system.slice/polkit.service
           └─1010 /usr/lib/polkit-1/polkitd --no-debug

Sep 21 09:16:38 localhost.localdomain polkitd[1010]: Loading rules from directory /etc/polkit-1/rul>
Sep 21 09:16:38 localhost.localdomain polkitd[1010]: Loading rules from directory /usr/share/polkit>
Sep 21 09:16:38 localhost.localdomain polkitd[1010]: Finished loading, compiling and executing 6 ru>
Sep 21 09:16:38 localhost.localdomain systemd[1]: Started Authorization Manager.
Sep 21 09:16:38 localhost.localdomain polkitd[1010]: Acquired the name org.freedesktop.PolicyKit1 o>
Sep 21 09:17:07 localhost.localdomain polkitd[1010]: Registered Authentication Agent for unix-sessi>
Sep 21 09:17:21 balas-iMac polkitd[1010]: Operator of unix-session:1 successfully authenticated >
Sep 21 09:18:00 balas-iMac polkitd[1010]: Operator of unix-session:1 successfully authenticated >
Sep 21 09:19:26 balas-iMac polkitd[1010]: Operator of unix-session:1 successfully authenticated >
Sep 21 09:21:19 balas-iMac polkitd[1010]: Operator of unix-session:1 successfully authenticated >
lines 1-20/20 (END)...skipping...
● polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static; vendor preset: enabled)
   Active: active (running) since Mon 2020-09-21 09:16:38 CDT; 5min ago
     Docs: man:polkit(8)
 Main PID: 1010 (polkitd)
    Tasks: 12 (limit: 4915)
   Memory: 21.3M
   CGroup: /system.slice/polkit.service
           └─1010 /usr/lib/polkit-1/polkitd --no-debug

Sep 21 09:16:38 localhost.localdomain polkitd[1010]: Loading rules from directory /etc/polkit-1/rules.d
Sep 21 09:16:38 localhost.localdomain polkitd[1010]: Loading rules from directory /usr/share/polkit-1/rules.d
Sep 21 09:16:38 localhost.localdomain polkitd[1010]: Finished loading, compiling and executing 6 rules
Sep 21 09:16:38 localhost.localdomain systemd[1]: Started Authorization Manager.
Sep 21 09:16:38 localhost.localdomain polkitd[1010]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Sep 21 09:17:07 localhost.localdomain polkitd[1010]: Registered Authentication Agent for unix-session:1 (system bus name :1.169 [/usr/libexec/polkit-mate-authentication-agent-1], object path /or>
Sep 21 09:17:21 balas-iMac polkitd[1010]: Operator of unix-session:1 successfully authenticated as unix-user:bala to gain TEMPORARY authorization for action org.mageia.drakrpm.pkexec.run>
Sep 21 09:18:00 balas-iMac polkitd[1010]: Operator of unix-session:1 successfully authenticated as unix-user:bala to gain TEMPORARY authorization for action org.mageia.drakrpm.pkexec.run>
Sep 21 09:19:26 balas-iMac polkitd[1010]: Operator of unix-session:1 successfully authenticated as unix-user:bala to gain TEMPORARY authorization for action org.mageia.drakrpm.pkexec.run>
Sep 21 09:21:19 balas-iMac polkitd[1010]: Operator of unix-session:1 successfully authenticated as unix-user:bala to gain ONE-SHOT authorization for action org.freedesktop.policykit.exec>
~

pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34

Re: rpmdrake not starting

Postby doktor5000 » Sep 21st, '20, 16:53

pnbalaji wrote:I did set the hostname to localhost.localdomain with the hostnamectl command. However, I am still having the same issue.

Did you reboot after changing the hostname? Apart from that, seems something still changes your hostname to balas-iMac according to your logs, probably via DHCP.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: rpmdrake not starting

Postby pnbalaji » Sep 21st, '20, 17:49

Yes, I did reboot. both /etc/hosts and /etc/hostname shows localhost.localdomain as the hostname.

my PS1 shows this.

Code: Select all
[bala@balas-iMac ~]$ echo $PS1
[\u@\h \W]\$


I am not sure from where it is picking up the hostname.

Also, I just noticed that I am not able to launch Mageia Control Conter. Running mcc from the command line throws the same error message as the rpmdrake.
pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34

Re: rpmdrake not starting

Postby doktor5000 » Sep 21st, '20, 18:15

Please show the output of

Code: Select all
uname -n
hostname -f
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: rpmdrake not starting

Postby pnbalaji » Sep 21st, '20, 19:08

both uname -n and hostname -f are showing the same output.

Code: Select all
Balas-iMac
pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34

Re: rpmdrake not starting

Postby doktor5000 » Sep 21st, '20, 23:17

Which is not what you set with hostnamectl, as mentioned I'd guess this comes from your router via DHCP.
Either set that as your hostname or configure your router to not provide a hostname. Or manually configure your network interface to not obtain a hostname via DHCP.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: rpmdrake not starting

Postby pnbalaji » Sep 22nd, '20, 00:20

Thanks for your help. I tried to launch the Mageia Control Center so that I can change the settings "Get DNS servers from DHCP". However, I was not able to launch MCC. So, now I did set the hostname to Balas-iMac and now everything is working fine.
pnbalaji
 
Posts: 123
Joined: Nov 13th, '13, 18:34


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest