~$ 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.
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.
I got the same error and solved it by this:
sudo env "PATH=$PATH" conda update conda
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With