(1)错误信息
(base) nki@nku08-PowerEdge-R740:~$ conda update -n base -c defaults conda
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /home/nki/anaconda3
added / updated specs:
- conda
The following packages will be downloaded:
package | build
---------------------------|-----------------
backports.functools_lru_cache-1.6.1| pyhd3eb1b0_0 12 KB defaults
conda-4.9.2 | py38h06a4308_0 2.9 MB defaults
conda-package-handling-1.7.2| py38h03888b9_0 886 KB defaults
------------------------------------------------------------
Total: 3.7 MB
The following packages will be UPDATED:
conda 4.8.3-py38_0 --> 4.9.2-py38h06a4308_0
conda-package-han~ 1.6.1-py38h7b6447c_0 --> 1.7.2-py38h03888b9_0
The following packages will be DOWNGRADED:
backports.functoo~ 1.6.1-py_0 --> 1.6.1-pyhd3eb1b0_0
Proceed ([y]/n)? y
Downloading and Extracting Packages
conda-package-handli | 886 KB | ######################################################################################################################################################################### | 100%
conda-4.9.2 | 2.9 MB | ######################################################################################################################################################################### | 100%
backports.functools_ | 12 KB | ######################################################################################################################################################################### | 100%
Preparing transaction: done
Verifying transaction: failed
EnvironmentNotWritableError: The current user does not have write permissions to the target environment.
environment location: /home/nki/anaconda3
uid: 1001
gid: 1001
(base) nki@nku08-PowerEdge-R740:~$ conda info
active environment : base
active env location : /home/nki/anaconda3
shell level : 1
user config file : /home/nki/.condarc
populated config files : /home/nki/.condarc
conda version : 4.8.3
conda-build version : 3.18.11
python version : 3.8.3.final.0
virtual packages : __cuda=11.0
__glibc=2.27
base environment : /home/nki/anaconda3 (read only)
channel URLs : http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch
http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/linux-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/noarch
https://conda.anaconda.org/conda-forge/linux-64
https://conda.anaconda.org/conda-forge/noarch
package cache : /home/nki/anaconda3/pkgs
/home/nki/.conda/pkgs
envs directories : /home/nki/.conda/envs
/home/nki/anaconda3/envs
platform : linux-64
user-agent : conda/4.8.3 requests/2.24.0 CPython/3.8.3 Linux/5.4.0-52-generic ubuntu/18.04.5 glibc/2.27
UID:GID : 1001:1001
netrc file : None
offline mode : False
(base) nki@nku08-PowerEdge-R740:~$
(2)错误原因
权限问题
(3)解决方法
sudo chmod -R 777 anaconda3/
(4)再次更新conda
(base) nki@nku08-PowerEdge-R740:~$ conda update --all
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /home/nki/anaconda3
The following NEW packages will be INSTALLED:
python_abi anaconda/cloud/conda-forge/linux-64::python_abi-3.8-1_cp38
The following packages will be UPDATED:
backports.weakref pkgs/main/noarch::backports.weakref-1~ --> anaconda/cloud/conda-forge/linux-64::backports.weakref-1.0.post1-py38h32f6830_1002
conda pkgs/main::conda-4.8.3-py38_0 --> anaconda/cloud/conda-forge::conda-4.9.2-py38h578d9bd_0
conda-build pkgs/main::conda-build-3.18.11-py38_0 --> anaconda/cloud/conda-forge::conda-build-3.20.5-py38h924ce5b_0
conda-package-han~ pkgs/main::conda-package-handling-1.6~ --> anaconda/cloud/conda-forge::conda-package-handling-1.7.2-py38h8df0ef7_0
The following packages will be SUPERSEDED by a higher-priority channel:
_libgcc_mutex pkgs/main --> anaconda/cloud/conda-forge
blas pkgs/main --> anaconda/pkgs/free
conda-env pkgs/main::conda-env-2.6.0-1 --> anaconda/pkgs/free::conda-env-2.6.0-0
defusedxml pkgs/main --> anaconda/cloud/conda-forge
heapdict pkgs/main --> anaconda/cloud/conda-forge
partd pkgs/main --> anaconda/cloud/conda-forge
tblib pkgs/main --> anaconda/cloud/conda-forge
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(base) nki@nku08-PowerEdge-R740:~$