报错如下:
找遍全网也没能解决(换源,改了无数次condarc文件也没用)
(base) luhao2024@mcs-server3:~$ conda update conda
Channels:
- defaults
Platform: linux-64
Collecting package metadata (repodata.json): failed
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/home2/luhao2024/anaconda3/lib/python3.12/site-packages/conda/exception_handler.py", line 18, in __call__
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home2/luhao2024/anaconda3/lib/python3.12/site-packages/conda/cli/main.py", line 84, in main_subshell
exit_code = do_call(args, parser)
^^^^^^^^^^^^^^^^^^^^^
File "/home2/luhao2024/anaconda3/lib/python3.12/site-packages/conda/cli/conda_argparse.py", line 200, in do_call
result = getattr(module, func_name)(args, parser)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home2/luhao2024/anaconda3/lib/python3.12/site-packages/conda/notices/core.py", line 132, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home2/luhao2024/anaconda3/lib/python3.12/site-packages/conda/cli/main_update.py", line 103, in execute
install(args, parser, "update")
File "/home2/luhao2024/anaconda3/lib/python3.12/site-packages/conda/cli/install.py", line 377, in install
unlink_link_transaction = solver.solve_for_transaction(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home2/luhao2024/anaconda3/lib/python3.12/site-packages/conda/core/solve.py", line 153, in solve_for_transaction
unlink_precs, link_precs = self.solve_for_diff(
^^^^^^^^^^^^^^^^^^^^
File "/home2/luhao2024/anaconda3/lib/python3.12/site-packages/conda/core/solve.py", line 222, in solve_for_diff
final_precs = self.solve_final_state(
^^^^^^^^^^^^^^^^^^^^^^^
File "/home2/luhao2024/anaconda3/lib/python3.12/site-packages/conda_libmamba_solver/solver.py", line 207, in solve_final_state
index = IndexHelper(
^^^^^^^^^^^^
File "/home2/luhao2024/anaconda3/lib/python3.12/site-packages/conda_libmamba_solver/index.py", line 136, in __init__
self._index = self._load_channels()
^^^^^^^^^^^^^^^^^^^^^
File "/home2/luhao2024/anaconda3/lib/python3.12/site-packages/conda_libmamba_solver/index.py", line 332, in _load_channels
jsons = {url: str(path) for (url, path) in executor.map(self._fetch_channel, urls)}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home2/luhao2024/anaconda3/lib/python3.12/concurrent/futures/_base.py", line 619, in result_iterator
yield _result_or_cancel(fs.pop())
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home2/luhao2024/anaconda3/lib/python3.12/concurrent/futures/_base.py", line 317, in _result_or_cancel
return fut.result(timeout)
^^^^^^^^^^^^^^^^^^^
File "/home2/luhao2024/anaconda3/lib/python3.12/concurrent/futures/_base.py", line 456, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/home2/luhao2024/anaconda3/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/home2/luhao2024/anaconda3/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home2/luhao2024/anaconda3/lib/python3.12/site-packages/conda_libmamba_solver/index.py", line 254, in _fetch_channel
json_path, _ = subdir_data.repo_fetch.fetch_latest_path()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home2/luhao2024/anaconda3/lib/python3.12/site-packages/conda/gateways/repodata/__init__.py", line 749, in fetch_latest_path
_, state = self.fetch_latest()
^^^^^^^^^^^^^^^^^^^
File "/home2/luhao2024/anaconda3/lib/python3.12/site-packages/conda/gateways/repodata/__init__.py", line 873, in fetch_latest
raw_repodata = self.cache_path_json.read_text()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home2/luhao2024/anaconda3/lib/python3.12/pathlib.py", line 1028, in read_text
return f.read()
^^^^^^^^
File "<frozen codecs>", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc9 in position 465: invalid continuation byte
`$ /home2/luhao2024/anaconda3/bin/conda update conda`
environment variables:
CIO_TEST=<not set>
CONDA_ALLOW_SOFTLINKS=false
CONDA_DEFAULT_ENV=base
CONDA_EXE=/home2/luhao2024/anaconda3/bin/conda
CONDA_PREFIX=/home2/luhao2024/anaconda3
CONDA_PROMPT_MODIFIER=(base)
CONDA_PYTHON_EXE=/home2/luhao2024/anaconda3/bin/python
CONDA_ROOT=/home2/luhao2024/anaconda3
CONDA_SHLVL=1
CURL_CA_BUNDLE=<not set>
LD_PRELOAD=<not set>
PATH=/home2/luhao2024/anaconda3/bin:/home2/luhao2024/anaconda3/condabin:/ho
me2/luhao2024/.vscode-server/cli/servers/Stable-
4849ca9bdf9666755eb463db297b69e5385090e3/server/bin/remote-cli:/usr/lo
cal/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/
local/games:/snap/bin
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=/usr/lib/ssl/certs/ca-certificates.crt
active environment : base
active env location : /home2/luhao2024/anaconda3
shell level : 1
user config file : /home2/luhao2024/.condarc
populated config files : /home2/luhao2024/.condarc
conda version : 24.5.0
conda-build version : 24.5.1
python version : 3.12.4.final.0
solver : libmamba (default)
virtual packages : __archspec=1=cascadelake
__conda=24.5.0=0
__cuda=12.2=0
__glibc=2.35=0
__linux=5.15.0=0
__unix=0=0
base environment : /home2/luhao2024/anaconda3 (writable)
conda av data dir : /home2/luhao2024/anaconda3/etc/conda
conda av metadata url : None
channel URLs : http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch
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/pkgs/r/linux-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/noarch
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro/linux-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro/noarch
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2/linux-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2/noarch
package cache : /home2/luhao2024/anaconda3/pkgs
/home2/luhao2024/.conda/pkgs
envs directories : /home2/luhao2024/anaconda3/envs
/home2/luhao2024/.conda/envs
platform : linux-64
user-agent : conda/24.5.0 requests/2.32.2 CPython/3.12.4 Linux/5.15.0-117-generic ubuntu/22.04.4 glibc/2.35 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8
UID:GID : 1020:1020
netrc file : None
offline mode : False
An unexpected error has occurred. Conda has prepared the above report.
If you suspect this error is being caused by a malfunctioning plugin,
consider using the --no-plugins option to turn off plugins.
Example: conda --no-plugins install <package>
Alternatively, you can set the CONDA_NO_PLUGINS environment variable on
the command line to run the command without plugins enabled.
Example: CONDA_NO_PLUGINS=true conda install <package>
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]: y
Upload did not complete.
Thank you for helping to improve conda.
Opt-in to always sending reports (and not see this message again)
by running
$ conda config --set report_errors true