Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-04-2020, 06:18 PM
|
#1
|
LQ Newbie
Registered: May 2020
Posts: 9
Rep: 
|
Not authorized to perform operation - polkit authority not available and caller is not uid 0
I've a Dell Precision Ultra-Speed Drive Quad x16 card installed in Dell 5820 workstation in which 4 x ADATA 2TB NVMe SSD drives. Besides, 1 x Toshiba 2TB NVMe SSD drive (Ubuntu 18.04 boot) and 2 x SATA 16TB Segate IronWolf 3.5" HDD.
The OS is Ubuntu 18.04. I used GNOME Disks to format any of 4 x ADATA SSD drives, Segate 3.5" HDDs, it pops up the error of
Error formatting volume Not authorized to perform operation (polkit authority not available and caller is not uid 0) (udisks-error-quark,3).
I've no idea on this message. Suggestions are welcome.
|
|
|
05-04-2020, 06:57 PM
|
#2
|
Senior Member
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: KDE Neon
Posts: 1,244
|
Might try another disk formatting tool like gparted. I don't think it depends on polkit, so should work fine.
|
|
|
05-04-2020, 08:57 PM
|
#3
|
LQ Newbie
Registered: May 2020
Posts: 9
Original Poster
Rep: 
|
Quote:
Originally Posted by uteck
Might try another disk formatting tool like gparted. I don't think it depends on polkit, so should work fine.
|
Thank you for the suggestion.
I did "sudo apt-get install gparted" but failed to run and have the following error message.
unit -.mount does not exist, proceeding anyway.
No protocol specified
(gpartedbin:5447): Gtk-WARNING **: 08:49:42.676: cannot open display: :0
|
|
|
05-04-2020, 09:05 PM
|
#4
|
Senior Member
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674
|
Quote:
Originally Posted by nt100
Error formatting volume Not authorized to perform operation (polkit authority not available and caller is not uid 0) (udisks-error-quark,3).
|
Try to do "sudo -i" first, to become uid 0, before running that command.
|
|
|
05-04-2020, 09:56 PM
|
#5
|
LQ Newbie
Registered: May 2020
Posts: 9
Original Poster
Rep: 
|
Quote:
Originally Posted by ehartman
Try to do "sudo -i" first, to become uid 0, before running that command.
|
I did the following steps
sudo -i
sudo apt-get install gparted
sudo gparted
the result is
Unit - .mount does not exist, proceeding anyway.
No protocol specified
(gpartedbin:5272): Gtk-WARNING **: 09:52:48.482: cannot open display: :0
|
|
|
05-04-2020, 10:47 PM
|
#6
|
Senior Member
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: KDE Neon
Posts: 1,244
|
You are running Ubuntu, so no need to switch to root with "sudo -i". Just run the sudo command from your user account.
From your last post, it looks like gparted is trying to run but is blocked from accessing your X session. A quick google of the error shows that opening your Xsession to other users will let it open.
run the above command to allow apps started by root to display on your session, then run "sudo gparted" and the app should open.
|
|
|
05-04-2020, 11:09 PM
|
#7
|
LQ Newbie
Registered: May 2020
Posts: 9
Original Poster
Rep: 
|
Quote:
Originally Posted by uteck
You are running Ubuntu, so no need to switch to root with "sudo -i". Just run the sudo command from your user account.
From your last post, it looks like gparted is trying to run but is blocked from accessing your X session. A quick google of the error shows that opening your Xsession to other users will let it open.
run the above command to allow apps started by root to display on your session, then run "sudo gparted" and the app should open.
|
Do I have to use "xhost +localhost[/code]"? as I'm working in front of the workstation.
Last edited by nt100; 05-04-2020 at 11:22 PM.
|
|
|
05-04-2020, 11:49 PM
|
#8
|
Senior Member
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674
|
Quote:
Originally Posted by nt100
Do I have to use "xhost +localhost[/code]"? as I'm working in front of the workstation.
|
If you're not running as the user which started the X session (so with sudo commands too):
yes!
The X server is authorized to let only processes from THAT user access the server, for security to disable i.e. keyboard listeners.
It is possible to let sudo carry over the authority to access the X server, but I wouldn't know how to do so in ubuntu (I actually don't use sudo hardly at all).
|
|
|
05-05-2020, 03:04 AM
|
#9
|
Senior Member
Registered: Apr 2010
Posts: 2,285
|
Have your tried to use Gparted via USB or Disc?
|
|
|
All times are GMT -5. The time now is 05:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|