Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-14-2017, 10:15 AM   #1
chrisbennington
Junior Member
chrisbennington began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2015
Device: Kobo Glo
Only runs with sudo on Ubuntu

After a recent update (not sure if it was Calibre update or Ubuntu), I can now now longer run calibre without using sudo.

Any guidance on how to fix this?
chrisbennington is offline   Reply With Quote
Old 10-14-2017, 11:15 AM   #2
haertig
Wizard
haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.
 
Posts: 1,738
Karma: 26006874
Join Date: Sep 2017
Device: PW3, Fire HD8 Gen7, Moto G7, Sansa Clip v2, Ruizu X26
What error message are you getting? "Permission denied" on some executable, Calibre can no longer read it's data directory, what?

You can see a log of what software has been installed and what updates were made in Synaptic. Just use File->History. So if you can recall when Calibre last worked, you can look at what's been installed/updated since then and maybe get a clue.

I'm thinking this is more likely a user or script oopsie that got a little too sloppy with the chmod or chown command. But first you have to better describe what you're seeing (specifically) before we can speculate further.
haertig is offline   Reply With Quote
Old 10-14-2017, 11:31 AM   #3
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by chrisbennington View Post
After a recent update (not sure if it was Calibre update or Ubuntu), I can now now longer run calibre without using sudo.

Any guidance on how to fix this?
Open a terminal and run calibre in debug mode and post the results.
Code:
calibre-debug -g
What version of calibre and Ubuntu are you using?

bernie
gbm is offline   Reply With Quote
Old 10-14-2017, 12:19 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,806
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by haertig View Post
I'm thinking this is more likely a user or script oopsie that got a little too sloppy with the chmod or chown command. But first you have to better describe what you're seeing (specifically) before we can speculate further.

Calibre needs FULL rights for the Library folder (and children)

Calibre also need normal User (Full, owner) rights to the hidden configuration folder.
theducks is offline   Reply With Quote
Old 10-15-2017, 08:53 PM   #5
sjfan
Addict
sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.
 
Posts: 281
Karma: 7724454
Join Date: Sep 2017
Location: Bethesda, MD, USA
Device: Kobo Aura H20, Kobo Clara HD
Quote:
Originally Posted by chrisbennington View Post
After a recent update (not sure if it was Calibre update or Ubuntu), I can now now longer run calibre without using sudo.

Any guidance on how to fix this?
Open a terminal window. cd to the top level directory of your calibre library. Make sure that you are in the right directory (there should be a metadata.db file in this directory, as well as subdirectories for all your authors).

To fix the permissions on you library, do this:
Code:
> echo meta*
# make sure that printed "metadata.db"; if it didn't, then stop and don't execute the following
> sudo chown -R $USER .
> sudo chmod -R u+rw .
> find . -t d -print0 |xargs -0 sudo chmod u+x
That should fix the permissions on your library at least enough for calibre to work, though you may want to set the group/other permissions differently depending on what access you want.

If it's still borked, then it's likely the config files that have a permissions problem; go to the ~/.config/calibre directory, double-check that you are actually in that directory, and run the same 3 last commands to fix the permissions there.
sjfan is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibredb cli needs admin rights (sudo) tesep Calibre 12 08-04-2017 03:06 AM
Installing Calibre on AWS - sudo -v requires password, default account doesn't have technicaltitch Calibre 3 06-17-2015 02:44 PM
Ubuntu UbuTab Android/Ubuntu OS device gbm Android Devices 1 01-21-2015 02:23 PM
Calibre runs on what o/s? TdeV Calibre 9 03-09-2014 03:33 AM
Installing calibre 1.26 in linux debian with no sudo Nix Hard Calibre 5 03-02-2014 10:47 PM


All times are GMT -4. The time now is 02:35 PM.


MobileRead.com is a privately owned, operated and funded community.