Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix conda update conda permission error

~$ conda update conda Solving environment: done  ## Package Plan ##    environment location: /home/david/anaconda3    added / updated specs:      - conda   The following packages will be UPDATED:      conda: 4.4.10-py36_0 --> 4.4.11-py36_0  Proceed ([y]/n)? y  Preparing transaction: done Verifying transaction: done Executing transaction: failed ERROR conda.core.link:_execute(481): An error occurred while uninstalling package 'defaults::conda-4.4.10-py36_0'. PermissionError(13, 'Permission denied') Attempting to roll back.  Rolling back transaction: done  PermissionError(13, 'Permission denied') 

I was trying to update conda on virtualbox ubuntu 16.04 and this permission error came up. I tried sudo conda update conda but it returns sudo: conda: command not found. I'm not sure where to go from here.

like image 542
dyubidub Avatar asked Mar 08 '18 20:03

dyubidub


People also ask

How do I update my current Conda environment?

Update Conda Environments Using a YAML File Once you have created a conda environment, you can update it anytime by first activating the environment and then running the conda env update command. The example below updates the earth-analytics-python environment using the environment. yml file.


1 Answers

I got the same error and solved it by this:

sudo env "PATH=$PATH" conda update conda 
like image 196
Kayvan Karim Avatar answered Sep 28 '22 18:09

Kayvan Karim