Ask Your Question

Is there additional privilege beyond root needed to access /usr ?

asked 2018-03-25 10:47:53 -0600

rajarshi gravatar image

I recently attempted to install the Python 3 package scikit-image with conda, USING sudo. However, I was greeted by the report that conda could not access /usr. Here is the output on stderr:

CondaIOError: Missing write permissions in: /usr
# You don't appear to have the necessary permissions to install packages
# into the install area '/usr'.
# However you can clone this environment into your home directory and
# then make changes to it.
# This may be done using the command:
# $ conda create -n my_root --clone="/usr"

(the hashes are part of the output)

Now, I have used Ubuntu for four years, and generally when sudo is used, my computer mellows out and lets me do whatever I want. Hence, I am quite surprised to discover that write privilege in /usr is still denied to conda package manager even after using sudo. Is there some additional security measure on Fedora that I should know about?
Also, here is the command I used to install the package: sudo conda install scikit-image

BTW: I checked to make sure, and discovered that I could, in fact, use sudo touch normally in /usr. It might be a problem with conda itself.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2018-03-25 14:58:16 -0600

sideburns gravatar image

Welcome to ask.fedora. I don't know why conda is failing, but then, I don't know why you're using it. Fedora has a perfectly good package manager named dnf and you should be using that for all of your software installation.

edit flag offensive delete link more


Thank you for this answer. I have managed to download the required packages with a combination of dnf and python -m pip. I also managed to get a more functional version of conda from outside the repositories (in fact, from the Anaconda website).

rajarshi gravatar imagerajarshi ( 2018-03-28 02:49:42 -0600 )edit

answered 2018-03-25 18:48:32 -0600

ssieb gravatar image

Which version of Fedora are you using? Which image did you use to install it? You definitely should have write access to /usr with sudo unless you're using something like atomic host. However, you also should not be using conda to install things system-wide unless you're really sure you know what you're doing. If you're the only user that needs what you're installing, then do a user install instead.

edit flag offensive delete link more


I am using Fedora 27. I used the iSO image for Fedora Workstation available on . BTW I checked and found that I do have write access to /usr. I also managed to install the package in question with a combination of dnf and python -m pip. Nevertheless. thank you for you answer. It would be good for me to remember that I can do the occassional private install as well, everything doesn't need to go into /usr.

rajarshi gravatar imagerajarshi ( 2018-03-28 02:47:59 -0600 )edit

answered 2018-03-28 16:45:56 -0600

hmaarrfk gravatar image

Honestly, I don't think many conda developers are using Fedora. I JUST ran into this problem myself.

As conda is relatively isolated from the rest of the OS, I would suggest the following:

  1. sudo dnf uninstall conda
  2. Install miniconda in your home directory.
  3. Profit.

Happy pythoning!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-03-25 10:47:53 -0600

Seen: 207 times

Last updated: Mar 28 '18