1. 问题来源
- 系统环境:WINDOWS10 子系统 Ubuntu-18.04 LTS
- Anaconda环境:Anaconda3-2020.07-Linux-x86_64
- 最初的报错及其描述:
(1)创建一个新环境并尝试安装R4.0:
(pytorch) wangyue@LAPTOP-FMOR2BIN:$ conda create -n R_env python=3.6
(pytorch) wangyue@LAPTOP-FMOR2BIN:$ conda activate R_env
(R_env) wangyue@LAPTOP-FMOR2BIN:$ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
(R_env) wangyue@LAPTOP-FMOR2BIN:$ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
(R_env) wangyue@LAPTOP-FMOR2BIN:$ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
(R_env) wangyue@LAPTOP-FMOR2BIN:$ conda config --set show_channel_urls yes
(R_env) wangyue@LAPTOP-FMOR2BIN:$ conda config --show
(R_env) wangyue@LAPTOP-FMOR2BIN:$ conda search R
Loading channels: done
# Name Version Build Channel
r 3.1.2 0 pkgs/r
r 3.1.2 0 pkgs/r
r 3.1.2 1 pkgs/r
r 3.1.2 1 pkgs/r
r 3.1.2 2 pkgs/r
r 3.1.2 2 pkgs/r
r 3.1.2 3 pkgs/r
r 3.1.2 3 pkgs/r
r 3.1.3 0 pkgs/r
r 3.1.3 0 pkgs/r
r 3.2.0 0 pkgs/r
r 3.2.0 0 pkgs/r
r 3.2.1 0 pkgs/r
r 3.2.1 0 pkgs/r
r 3.2.2 0 pkgs/r
r 3.2.2 0 pkgs/r
r 3.3.1 r3.3.1_0 pkgs/r
r 3.3.1 r3.3.1_0 pkgs/r
r 3.3.1 r3.3.1_1 pkgs/r
r 3.3.1 r3.3.1_1 pkgs/r
r 3.3.2 r3.3.2_0 anaconda/cloud/conda-forge
r 3.3.2 r3.3.2_0 pkgs/r
r 3.3.2 r3.3.2_0 pkgs/r
r 3.4.1 r3.4.1_0 anaconda/cloud/conda-forge
r 3.4.1 r3.4.1_0 pkgs/r
r 3.4.1 r3.4.1_0 pkgs/r
r 3.4.2 h65d9972_0 pkgs/r
r 3.4.2 h65d9972_0 pkgs/r
r 3.4.3 mro343_0 pkgs/r
r 3.4.3 mro343_0 pkgs/r
r 3.4.3 r343_0 pkgs/r
r 3.4.3 r343_0 pkgs/r
r 3.5.0 mro350_0 pkgs/r
r 3.5.0 mro350_0 pkgs/r
r 3.5.0 r350_0 pkgs/r
r 3.5.0 r350_0 pkgs/r
r 3.5.1 mro351_0 pkgs/r
r 3.5.1 mro351_0 pkgs/r
r 3.5.1 r351_0 anaconda/cloud/conda-forge
r 3.5.1 r351_0 pkgs/r
r 3.5.1 r351_0 pkgs/r
r 3.5.1 r351_1000 anaconda/cloud/conda-forge
r 3.5.1 r35_1002 anaconda/cloud/conda-forge
r 3.5.1 r35_1003 anaconda/cloud/conda-forge
r 3.6.0 r36_0 pkgs/r
r 3.6.0 r36_0 pkgs/r
r 3.6 r36_1002 anaconda/cloud/conda-forge
r 3.6 r36_1003 anaconda/cloud/conda-forge
r 3.6 r36_1004 anaconda/cloud/conda-forge
r 4.0 r40_1004 anaconda/cloud/conda-forge
使用conda安装R4.0
(R_env) wangyue@LAPTOP-FMOR2BIN:$ conda install R=4.0
Collecting package metadata (current_repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.8.3
latest version: 4.9.2
Please update conda by running
$ conda update -n base -c defaults conda
## Package Plan ##
environment location: /mnt/f/Linux/anaconda/envs/R_env
added / updated specs:
- r=4.0
The following NEW packages will be INSTALLED:
_libgcc_mutex anaconda/cloud/conda-forge/linux-64::_libgcc_mutex-0.1-conda_forge
_openmp_mutex anaconda/cloud/conda-forge/linux-64::_openmp_mutex-4.5-1_gnu
_r-mutex anaconda/cloud/conda-forge/noarch::_r-mutex-1.0.1-anacondar_1
binutils_impl_lin~ anaconda/cloud/conda-forge/linux-64::binutils_impl_linux-64-2.35.1-h17ad2fc_0
binutils_linux-64 anaconda/cloud/conda-forge/linux-64::binutils_linux-64-2.35-hc3fd857_29
bwidget anaconda/cloud/conda-forge/linux-64::bwidget-1.9.14-ha770c72_0
bzip2 anaconda/cloud/conda-forge/linux-64::bzip2-1.0.8-h516909a_3
c-ares anaconda/cloud/bioconda/linux-64::c-ares-1.11.0-h470a237_1
ca-certificates anaconda/cloud/conda-forge/linux-64::ca-certificates-2020.11.8-ha878542_0
cairo anaconda/cloud/conda-forge/linux-64::cairo-1.16.0-h9f066cc_1006
curl anaconda/cloud/conda-forge/linux-64::curl-7.71.1-he644dc0_8
fontconfig anaconda/cloud/conda-forge/linux-64::fontconfig-2.13.1-h7e3eb15_1002
freetype anaconda/cloud/conda-forge/linux-64::freetype-2.10.4-h7ca028e_0
fribidi anaconda/cloud/conda-forge/linux-64::fribidi-1.0.10-h36c2ea0_0
gcc_impl_linux-64 anaconda/cloud/conda-forge/linux-64::gcc_impl_linux-64-9.3.0-h28f5a38_17
gcc_linux-64 anaconda/cloud/conda-forge/linux-64::gcc_linux-64-9.3.0-h7247604_29
gettext anaconda/cloud/conda-forge/linux-64::gettext-0.19.8.1-hf34092f_1004
gfortran_impl_lin~ anaconda/cloud/conda-forge/linux-64::gfortran_impl_linux-64-9.3.0-h2bb4189_17
gfortran_linux-64 anaconda/cloud/conda-forge/linux-64::gfortran_linux-64-9.3.0-ha1c937c_29
graphite2 anaconda/cloud/conda-forge/linux-64::graphite2-1.3.13-h58526e2_1001
gsl anaconda/cloud/conda-forge/linux-64::gsl-2.6-hf94e986_0
gxx_impl_linux-64 anaconda/cloud/conda-forge/linux-64::gxx_impl_linux-64-9.3.0-h53cdd4c_17
gxx_linux-64 anaconda/cloud/conda-forge/linux-64::gxx_linux-64-9.3.0-h0d07fa4_29
harfbuzz anaconda/cloud/conda-forge/linux-64::harfbuzz-2.7.2-ha5b49bf_1
icu anaconda/cloud/conda-forge/linux-64::icu-67.1-he1b5a44_0
jpeg anaconda/cloud/conda-forge/linux-64::jpeg-9d-h36c2ea0_0
kernel-headers_li~ anaconda/cloud/conda-forge/noarch::kernel-headers_linux-64-2.6.32-h77966d4_13
krb5 anaconda/cloud/conda-forge/linux-64::krb5-1.17.2-h926e7f8_0
ld_impl_linux-64 anaconda/cloud/conda-forge/linux-64::ld_impl_linux-64-2.35.1-hed1e6ac_0
libblas anaconda/cloud/conda-forge/linux-64::libblas-3.9.0-2_openblas
libcblas anaconda/cloud/conda-forge/linux-64::libcblas-3.9.0-2_openblas
libcurl anaconda/cloud/conda-forge/linux-64::libcurl-7.71.1-hcdd3856_8
libedit anaconda/cloud/conda-forge/linux-64::libedit-3.1.20191231-he28a2e2_2
libev anaconda/cloud/conda-forge/linux-64::libev-4.33-h516909a_1
libffi anaconda/cloud/conda-forge/linux-64::libffi-3.2.1-he1b5a44_1007
libgcc-devel_linu~ anaconda/cloud/conda-forge/linux-64::libgcc-devel_linux-64-9.3.0-hfd08b2a_17
libgcc-ng anaconda/cloud/conda-forge/linux-64::libgcc-ng-9.3.0-h5dbcf3e_17
libgfortran-ng anaconda/cloud/conda-forge/linux-64::libgfortran-ng-9.3.0-he4bcb1c_17
libgfortran5 anaconda/cloud/conda-forge/linux-64::libgfortran5-9.3.0-he4bcb1c_17
libglib anaconda/cloud/conda-forge/linux-64::libglib-2.66.2-hbe7bbb4_0
libgomp anaconda/cloud/conda-forge/linux-64::libgomp-9.3.0-h5dbcf3e_17
libiconv anaconda/cloud/conda-forge/linux-64::libiconv-1.16-h516909a_0
liblapack anaconda/cloud/conda-forge/linux-64::liblapack-3.9.0-2_openblas
libnghttp2 anaconda/cloud/conda-forge/linux-64::libnghttp2-1.41.0-hab1572f_1
libopenblas anaconda/cloud/conda-forge/linux-64::libopenblas-0.3.12-pthreads_h4812303_1
libpng anaconda/cloud/conda-forge/linux-64::libpng-1.6.37-h21135ba_2
libssh2 anaconda/cloud/conda-forge/linux-64::libssh2-1.9.0-hab1572f_5
libstdcxx-devel_l~ anaconda/cloud/conda-forge/linux-64::libstdcxx-devel_linux-64-9.3.0-h4084dd6_17
libstdcxx-ng anaconda/cloud/conda-forge/linux-64::libstdcxx-ng-9.3.0-h2ae2ef3_17
libtiff anaconda/cloud/conda-forge/linux-64::libtiff-4.1.0-h4f3a223_6
libuuid anaconda/cloud/conda-forge/linux-64::libuuid-2.32.1-h14c3975_1000
libwebp-base anaconda/cloud/conda-forge/linux-64::libwebp-base-1.1.0-h36c2ea0_3
libxcb anaconda/cloud/conda-forge/linux-64::libxcb-1.13-h14c3975_1002
libxml2 anaconda/cloud/conda-forge/linux-64::libxml2-2.9.10-h68273f3_2
lz4-c anaconda/cloud/conda-forge/linux-64::lz4-c-1.9.2-he1b5a44_3
make anaconda/cloud/conda-forge/linux-64::make-4.3-hd18ef5c_1
ncurses anaconda/cloud/conda-forge/linux-64::ncurses-6.2-h58526e2_4
pango anaconda/cloud/conda-forge/linux-64::pango-1.42.4-h80147aa_5
pcre anaconda/cloud/conda-forge/linux-64::pcre-8.44-he1b5a44_0
pcre2 anaconda/cloud/conda-forge/linux-64::pcre2-10.35-h279444b_1
pixman anaconda/cloud/conda-forge/linux-64::pixman-0.40.0-h36c2ea0_0
pthread-stubs anaconda/cloud/conda-forge/linux-64::pthread-stubs-0.4-h14c3975_1001
python_abi anaconda/cloud/conda-forge/linux-64::python_abi-3.6-1_cp36m
r anaconda/cloud/conda-forge/noarch::r-4.0-r40_1004
r-base anaconda/cloud/conda-forge/linux-64::r-base-4.0.3-hc603457_2
r-boot anaconda/cloud/conda-forge/noarch::r-boot-1.3_25-r40h6115d3f_1
r-class anaconda/cloud/conda-forge/linux-64::r-class-7.3_17-r40hcdcec82_1
r-cluster anaconda/cloud/conda-forge/linux-64::r-cluster-2.1.0-r40h580db52_4
r-codetools anaconda/cloud/conda-forge/noarch::r-codetools-0.2_18-r40hc72bb7e_0
r-foreign anaconda/cloud/conda-forge/linux-64::r-foreign-0.8_80-r40hcdcec82_0
r-kernsmooth anaconda/cloud/conda-forge/linux-64::r-kernsmooth-2.23_18-r40h742201e_0
r-lattice anaconda/cloud/conda-forge/linux-64::r-lattice-0.20_41-r40hcdcec82_2
r-mass anaconda/cloud/conda-forge/linux-64::r-mass-7.3_53-r40hcdcec82_0
r-matrix anaconda/cloud/conda-forge/linux-64::r-matrix-1.2_18-r40h7fa42b6_3
r-mgcv anaconda/cloud/conda-forge/linux-64::r-mgcv-1.8_33-r40h7fa42b6_0
r-nlme anaconda/cloud/conda-forge/linux-64::r-nlme-3.1_150-r40h580db52_0
r-nnet anaconda/cloud/conda-forge/linux-64::r-nnet-7.3_14-r40hcdcec82_1
r-recommended anaconda/cloud/conda-forge/noarch::r-recommended-4.0-r40_1004
r-rpart anaconda/cloud/conda-forge/linux-64::r-rpart-4.1_15-r40hcdcec82_2
r-spatial anaconda/cloud/conda-forge/linux-64::r-spatial-7.3_12-r40hcdcec82_1
r-survival anaconda/cloud/conda-forge/linux-64::r-survival-3.2_7-r40hcdcec82_0
sed anaconda/cloud/conda-forge/linux-64::sed-4.8-he412f7d_0
sysroot_linux-64 anaconda/cloud/conda-forge/noarch::sysroot_linux-64-2.12-h77966d4_13
tktable anaconda/cloud/conda-forge/linux-64::tktable-2.10-hb7b940f_3
xorg-kbproto anaconda/cloud/conda-forge/linux-64::xorg-kbproto-1.0.7-h14c3975_1002
xorg-libice anaconda/cloud/conda-forge/linux-64::xorg-libice-1.0.10-h516909a_0
xorg-libsm anaconda/cloud/conda-forge/linux-64::xorg-libsm-1.2.3-h84519dc_1000
xorg-libx11 anaconda/cloud/conda-forge/linux-64::xorg-libx11-1.6.12-h516909a_0
xorg-libxau anaconda/cloud/conda-forge/linux-64::xorg-libxau-1.0.9-h14c3975_0
xorg-libxdmcp anaconda/cloud/conda-forge/linux-64::xorg-libxdmcp-1.1.3-h516909a_0
xorg-libxext anaconda/cloud/conda-forge/linux-64::xorg-libxext-1.3.4-h516909a_0
xorg-libxrender anaconda/cloud/conda-forge/linux-64::xorg-libxrender-0.9.10-h516909a_1002
xorg-renderproto anaconda/cloud/conda-forge/linux-64::xorg-renderproto-0.11.1-h14c3975_1002
xorg-xextproto anaconda/cloud/conda-forge/linux-64::xorg-xextproto-7.3.0-h14c3975_1002
xorg-xproto anaconda/cloud/conda-forge/linux-64::xorg-xproto-7.0.31-h14c3975_1007
zstd anaconda/cloud/conda-forge/linux-64::zstd-1.4.5-h6597ccf_2
The following packages will be UPDATED:
certifi pkgs/free::certifi-2016.2.28-py36_0 --> anaconda/cloud/conda-forge::certifi-2020.11.8-py36h5fab9bb_0
openssl pkgs/free::openssl-1.0.2l-0 --> anaconda/cloud/conda-forge::openssl-1.1.1h-h516909a_0
python pkgs/free::python-3.6.2-0 --> anaconda/cloud/conda-forge::python-3.6.11-h4d41432_2_cpython
readline pkgs/free::readline-6.2-2 --> anaconda/cloud/conda-forge::readline-8.0-he28a2e2_2
sqlite pkgs/free::sqlite-3.13.0-0 --> anaconda/cloud/conda-forge::sqlite-3.33.0-h4cf870e_1
tk pkgs/free::tk-8.5.18-0 --> anaconda/cloud/conda-forge::tk-8.6.10-hed695b0_1
xz pkgs/free::xz-5.2.3-0 --> anaconda/cloud/conda-forge::xz-5.2.5-h516909a_1
Proceed ([y]/n)? y
然后会在Verifying transaction时失败,并出现以下报错。
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: failed
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/mnt/f/Linux/anaconda/lib/python3.8/site-packages/conda/exceptions.py", line 1079, in __call__
return func(*args, **kwargs)
File "/mnt/f/Linux/anaconda/lib/python3.8/site-packages/conda/cli/main.py", line 84, in _main
exit_code = do_call(args, p)
File "/mnt/f/Linux/anaconda/lib/python3.8/site-packages/conda/cli/conda_argparse.py", line 82, in do_call
return getattr(module, func_name)(args, parser)
File "/mnt/f/Linux/anaconda/lib/python3.8/site-packages/conda/cli/main_install.py", line 20, in execute
install(args, parser, 'install')
File "/mnt/f/Linux/anaconda/lib/python3.8/site-packages/conda/cli/install.py", line 317, in install
handle_txn(unlink_link_transaction, prefix, args, newenv)
File "/mnt/f/Linux/anaconda/lib/python3.8/site-packages/conda/cli/install.py", line 346, in handle_txn
unlink_link_transaction.execute()
File "/mnt/f/Linux/anaconda/lib/python3.8/site-packages/conda/core/link.py", line 244, in execute
self.verify()
File "/mnt/f/Linux/anaconda/lib/python3.8/site-packages/conda/common/io.py", line 88, in decorated
return f(*args, **kwds)
File "/mnt/f/Linux/anaconda/lib/python3.8/site-packages/conda/core/link.py", line 231, in verify
exceptions = self._verify(self.prefix_setups, self.prefix_action_groups)
File "/mnt/f/Linux/anaconda/lib/python3.8/site-packages/conda/core/link.py", line 590, in _verify
for exc in self.verify_executor.map(UnlinkLinkTransaction._verify_individual_level,
File "/mnt/f/Linux/anaconda/lib/python3.8/site-packages/conda/common/io.py", line 525, in map
yield func(thing)
File "/mnt/f/Linux/anaconda/lib/python3.8/site-packages/conda/core/link.py", line 411, in _verify_individual_level
error_result = axn.verify()
File "/mnt/f/Linux/anaconda/lib/python3.8/site-packages/conda/core/path_actions.py", line 323, in verify
source_size_in_bytes = getsize(self.source_full_path)
File "/mnt/f/Linux/anaconda/lib/python3.8/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
OSError: [Errno 40] Too many levels of symbolic links: '/mnt/f/Linux/anaconda/pkgs/ncurses-6.2-h58526e2_4/share/terminfo/N/NCR260VT300WPP'
`$ /mnt/f/Linux/anaconda/bin/conda install r=4.0`
environment variables:
CIO_TEST=<not set>
CONDA_BACKUP_ADDR2LINE=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
addr2line
CONDA_BACKUP_AR=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-ar
CONDA_BACKUP_AS=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-as
CONDA_BACKUP_CC=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-cc
CONDA_BACKUP_CFLAGS=-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-
strong -fno-plt -O2 -ffunction-sections -pipe -isystem
/mnt/f/Linux/anaconda/envs/pytorch/include
CONDA_BACKUP_CMAKE_PREFIX_PATH=/mnt/f/Linux/anaconda/envs/pytorch:/mnt/f/Linux/anaconda/envs/pytorch/
x86_64-conda_cos6-linux-gnu/sysroot/usr
CONDA_BACKUP_CONDA_BUILD_SYSROOT=/mnt/f/Linux/anaconda/envs/pytorch/x86_64-conda_cos6-linux-gnu/sysroot
CONDA_BACKUP_CPP=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-cpp
CONDA_BACKUP_CPPFLAGS=-DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem
/mnt/f/Linux/anaconda/envs/pytorch/include
CONDA_BACKUP_CXX=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-c++
CONDA_BACKUP_CXXFILT=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-
gnu-c++filt
CONDA_BACKUP_CXXFLAGS=-fvisibility-inlines-hidden -std=c++17 -fmessage-length=0
-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-
strong -fno-plt -O2 -ffunction-sections -pipe -isystem
/mnt/f/Linux/anaconda/envs/pytorch/include
CONDA_BACKUP_DEBUG_CFLAGS=-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-
all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments
-ffunction-sections -pipe -isystem
/mnt/f/Linux/anaconda/envs/pytorch/include
CONDA_BACKUP_DEBUG_CPPFLAGS=-D_DEBUG -D_FORTIFY_SOURCE=2 -Og -isystem
/mnt/f/Linux/anaconda/envs/pytorch/include
CONDA_BACKUP_DEBUG_CXXFLAGS=-fvisibility-inlines-hidden -std=c++17 -fmessage-length=0
-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-
all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments
-ffunction-sections -pipe -isystem
/mnt/f/Linux/anaconda/envs/pytorch/include
CONDA_BACKUP_DEBUG_FFLAGS=-fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-
protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem
/mnt/f/Linux/anaconda/envs/pytorch/include
CONDA_BACKUP_DEBUG_FORTRANFLAGS=-fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-
protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem
/mnt/f/Linux/anaconda/envs/pytorch/include
CONDA_BACKUP_ELFEDIT=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
elfedit
CONDA_BACKUP_F77=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
gfortran
CONDA_BACKUP_F90=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
gfortran
CONDA_BACKUP_F95=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-f95
CONDA_BACKUP_FC=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
gfortran
CONDA_BACKUP_FFLAGS=-fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-
protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem
/mnt/f/Linux/anaconda/envs/pytorch/include
CONDA_BACKUP_FORTRANFLAGS=-fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-
protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem
/mnt/f/Linux/anaconda/envs/pytorch/include
CONDA_BACKUP_GCC=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-gcc
CONDA_BACKUP_GCC_AR=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
gcc-ar
CONDA_BACKUP_GCC_NM=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
gcc-nm
CONDA_BACKUP_GCC_RANLIB=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
gcc-ranlib
CONDA_BACKUP_GFORTRAN=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
gfortran
CONDA_BACKUP_GPROF=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
gprof
CONDA_BACKUP_GXX=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-g++
CONDA_BACKUP_HOST=x86_64-conda_cos6-linux-gnu
CONDA_BACKUP_LD=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-ld
CONDA_BACKUP_LDFLAGS=-Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,
--disable-new-dtags -Wl,--gc-sections
-Wl,-rpath,/mnt/f/Linux/anaconda/envs/pytorch/lib -Wl,-rpath-
link,/mnt/f/Linux/anaconda/envs/pytorch/lib
-L/mnt/f/Linux/anaconda/envs/pytorch/lib
CONDA_BACKUP_LD_GOLD=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
ld.gold
CONDA_BACKUP_NM=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-nm
CONDA_BACKUP_OBJCOPY=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
objcopy
CONDA_BACKUP_OBJDUMP=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
objdump
CONDA_BACKUP_RANLIB=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
ranlib
CONDA_BACKUP_READELF=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
readelf
CONDA_BACKUP_SIZE=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
size
CONDA_BACKUP_STRINGS=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
strings
CONDA_BACKUP_STRIP=/mnt/f/Linux/anaconda/envs/pytorch/bin/x86_64-conda_cos6-linux-gnu-
strip
CONDA_BACKUP__CONDA_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_x86_64_conda_cos6_linux_gnu
CONDA_DEFAULT_ENV=R_env
CONDA_EXE=/mnt/f/Linux/anaconda/bin/conda
CONDA_PREFIX=/mnt/f/Linux/anaconda/envs/R_env
CONDA_PREFIX_1=/mnt/f/Linux/anaconda
CONDA_PREFIX_2=/mnt/f/Linux/anaconda/envs/pytorch
CONDA_PROMPT_MODIFIER=(R_env)
CONDA_PYTHON_EXE=/mnt/f/Linux/anaconda/bin/python
CONDA_ROOT=/mnt/f/Linux/anaconda
CONDA_SHLVL=3
PATH=/mnt/f/Linux/anaconda/bin:/mnt/f/Linux/anaconda/envs/R_env/bin:/mnt/f/
Linux/anaconda/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/
bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/Window
sApps/CanonicalGroupLimited.Ubuntu18.04onWindows_1804.2020.824.0_x64__
79rhkp1fndgsc:/mnt/c/Program Files/AdoptOpenJDK/jdk-11.0.7.10-hotspot/
bin:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbe
m:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System
32/OpenSSH:/mnt/c/Program Files (x86)/NVIDIA
Corporation/PhysX/Common:/mnt/c/Program Files/NVIDIA
Corporation/NVIDIA NvDLISR:/mnt/d/计算机软件/putty:/mnt/d/software
files/MATLAB2016/runtime/win64:/mnt/d/software
files/MATLAB2016/bin:/mnt/d/software
files/MATLAB2016/polyspace/bin:/mnt/c/Program Files (x86)/Windows
Kits/8.1/Windows Performance Toolkit:/mnt/d/Anaconda3:/mnt/d/Anaconda3
/Library/mingw-w64/bin:/mnt/d/Anaconda3/Library/usr/bin:/mnt/d/Anacond
a3/Library/bin:/mnt/d/Anaconda3/Scripts:/mnt/c/Users/WangYue/AppData/L
ocal/Microsoft/WindowsApps:/snap/bin
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
active environment : R_env
active env location : /mnt/f/Linux/anaconda/envs/R_env
shell level : 3
user config file : /home/wangyue/.condarc
populated config files : /home/wangyue/.condarc
conda version : 4.8.3
conda-build version : 3.18.11
python version : 3.8.3.final.0
virtual packages : __glibc=2.27
base environment : /mnt/f/Linux/anaconda (writable)
channel URLs : https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/linux-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/noarch
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/r/linux-64
https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/r/noarch
https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/pro/linux-64
https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/pro/noarch
https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/msys2/linux-64
https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/msys2/noarch
https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/mro/linux-64
https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/mro/noarch
https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/free/linux-64
https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/free/noarch
https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/main/linux-64
https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/main/noarch
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/linux-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/noarch
https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /mnt/f/Linux/anaconda/pkgs
/home/wangyue/.conda/pkgs
envs directories : /mnt/f/Linux/anaconda/envs
/home/wangyue/.conda/envs
platform : linux-64
user-agent : conda/4.8.3 requests/2.24.0 CPython/3.8.3 Linux/4.4.0-18362-Microsoft ubuntu/18.04.5 glibc/2.27
UID:GID : 1000:1000
netrc file : None
offline mode : False
An unexpected error has occurred. Conda has prepared the above report.
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?
[y/N]: N
判断其中比较关键的提示有:
OSError: [Errno 40] Too many levels of symbolic links: '/mnt/f/Linux/anaconda/pkgs/ncurses-6.2-h58526e2_4/share/terminfo/N/NCR260VT300WPP'
user-agent : conda/4.8.3 requests/2.24.0 CPython/3.8.3 Linux/4.4.0-18362-Microsoft ubuntu/18.04.5 glibc/2.27
2. 问题的后果
此报错会引起非常严重的后果,导致后续在Anaconda的任何虚拟环境中安装指定版本的包(即在安装时使用conda install matplotlib=N的命令)时都会报错,在创建指定python版本的conda环境时也会报错(conda create -n test python=3.6)。更为严重的是,这种错误无法通过卸载Anaconda并重装来解决(sudo rm -rf path/anaconda3),重装后仍然会发生相同的报错。
3. 解决方法
目前尝试的唯一可行的解决方法是重置Linux系统。