[Solved] Gparted starts only from terminal

Report Bugs, Issues and non- package Requests
Message
Author
asinoro
Posts: 152
Joined: Mon Feb 22, 2016 12:26 pm

[Solved] Gparted starts only from terminal

#1 Post by asinoro »

With the last updates I experienced many issues also before I will start with the most easy and later the more complicate until, I will fed up and return to my previous backup and I will wait the new release of MX.

Gparted starts only from terminal with this command:
# gparted
Failed to get D-Bus connection: Unknown error -1
Too few arguments.
======================
libparted : 3.2
Last edited by asinoro on Sat Mar 11, 2017 12:43 pm, edited 1 time in total.
If your case is solved, edit [Solved] to your initial post title to help other users.

Fix your Grub

User avatar
Jerry3904
Administrator
Posts: 21962
Joined: Wed Jul 19, 2006 6:13 am

Re: Gparted starts only from terminal

#2 Post by Jerry3904 »

Well that is weird. I'm certainly not seeing that here. Just to check:

1) in a terminal as regular user (not root), does this still work:

Code: Select all

gparted-pkexec
2) if yes, hit Alt-F3, begin to type gparted in the search box until you see the menu entry, then right-click the gparted menu entry > Edit, and look at the command box: do you see the same code there?
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

asinoro
Posts: 152
Joined: Mon Feb 22, 2016 12:26 pm

Re: Gparted starts only from terminal

#3 Post by asinoro »

1) $ gparted-pkexec
pkexec must be setuid root

2) The same code at command exist.

I have tried until now.
Reinstall of gparted.
Reinstall of systemd.
Reinstall of systemd-shim
If your case is solved, edit [Solved] to your initial post title to help other users.

Fix your Grub

User avatar
Jerry3904
Administrator
Posts: 21962
Joined: Wed Jul 19, 2006 6:13 am

Re: Gparted starts only from terminal

#4 Post by Jerry3904 »

Thanks.
pkexec must be setuid root
I have no idea what has caused that (though I doubt it was an update), so will turn over the topic to people who do.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
asqwerth
Developer
Posts: 7232
Joined: Sun May 27, 2007 5:37 am

Re: Gparted starts only from terminal

#5 Post by asqwerth »

In my antiX installation on laptop, I could only open Gparted without terminal if I used the sudo password. Root wouldn't work.

I have no idea why.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

aus9
Posts: 128
Joined: Sat Jul 02, 2016 1:14 am

Re: Gparted starts only from terminal

#6 Post by aus9 »

on MX16 64 bit gparted run as root complains but still opens OK
from whisker menu and from command line

whisker menu asks for root pw

terminal stuff below

first check dbus

Code: Select all

/etc/init.d/dbus status
sudo su
gparted
Image

User avatar
dolphin_oracle
Developer
Posts: 20032
Joined: Sun Dec 16, 2007 1:17 pm

Re: Gparted starts only from terminal

#7 Post by dolphin_oracle »

asqwerth wrote:In my antiX installation on laptop, I could only open Gparted without terminal if I used the sudo password. Root wouldn't work.

I have no idea why.
antiX defaults to sudo password now for admin tasks (actually since antiX 15)

its configurable in the antix control center.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
dolphin_oracle
Developer
Posts: 20032
Joined: Sun Dec 16, 2007 1:17 pm

Re: Gparted starts only from terminal

#8 Post by dolphin_oracle »

asinoro wrote:1) $ gparted-pkexec
pkexec must be setuid root
can you provide the output of

Code: Select all

ls -l /usr/bin/pkexec
thanks.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

asinoro
Posts: 152
Joined: Mon Feb 22, 2016 12:26 pm

Re: Gparted starts only from terminal

#9 Post by asinoro »

$ ls -l /usr/bin/pkexec
-rwxr-xr-x 1 root root 23184 Sep 6 2016 /usr/bin/pkexec
If your case is solved, edit [Solved] to your initial post title to help other users.

Fix your Grub

User avatar
dolphin_oracle
Developer
Posts: 20032
Joined: Sun Dec 16, 2007 1:17 pm

Re: Gparted starts only from terminal

#10 Post by dolphin_oracle »

Ok, try this from a user terminal

Code: Select all

sudo chmod u+s /usr/bin/pkexec
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

Post Reply

Return to “Bugs and Non-Package Requests Forum”