bioconda-recipes: "Solving environment: failed" after conda update conda

Hi I was trying to solve a problem I’ve been having with bioconda. I tried to remove Minoconda2 and reinstall it. Everything seemed to work alright, but now if I run conda update conda, or conda update --all, or conda install -c bioconda behst, I get this error:

$ conda update conda
Solving environment: failed

NotWritableError: The current user does not have write permissions to a required path.
  path: /path/to/custom/dir/pkgs/urls.txt
  uid: 1000
  gid: 1000

If you feel that permissions on this path are set incorrectly, you can manually
change them by executing

  $ sudo chown 1000:1000 /path/to/custom/dir/pkgs/urls.txt

In general, it's not advisable to use 'sudo conda'.

Does anyone know how to solve this problem? Thanks!

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Comments: 37 (22 by maintainers)

Most upvoted comments

This is what helped me: sudo chown -R user anaconda3

Oui moi aussi ça m’a aidé. C’est le code qui donne la permission à l’utilisateur user sur le répertoire anaconda3 il faut remplacer user par le nom d’utilisateur.

sudo chown -R user anaconda3

The same issue with you guys, First time i was used sudo sh .Miniconda....sh, so, this situation was happen to me, and the miniconda3 folder permission is root. Then, i had to uninstall miniconda3, and reinstall miniconda3 with command sh .Miniconda..sh, and it work for me, the miniconda3 folder permission is local user. So, I think change folder permission maybe useful.

NotWritableError: The current user does not have write permissions to a required path.

conda is pointing out that there are files inside the conda installation that you don’t have permission to write. this shouldn’t happen, only your user should be interacting with your conda prefix.

you can use chown to change the permissions back, as the message says.

This is what helped me: sudo chown -R user anaconda3

Thank you! This worked for me: sudo chown -R MY_USER ~/.conda

The traceback is pretty much the same, but I will make one. Edit: I solved it using an answer on StackOverflow, so in case anyone else reads this, please try this. I looked under my /home/ folder to find a hidden file called .condarc. I deleted it and deleted the anaconda3 folder as well. Then I reinstalled conda using the installer on the website.