出现以下错误
InvalidArchiveError(‘Error with archive
/opt/anaconda3/pkgs/libgcc-ng-9.1.0-hdf63c60_0l8stfchr/info-libgcc-ng-9.1.0-hdf63c60_0.tar.zst.
You probably need to delete and re-download or re-create this file.
Message from libarchive was:\n\nCould not unlink’)
解决办法
尝试过删除提示的包,最后还是报错。
1、切到root权限,执行以下命令,这是student1为我的用户名称,/opt/anaconda3/为anaconda的安装路径
sudo chown -R student1 /opt/anaconda3/
2、安装后,把权限改回去
sudo chown -R root /opt/anaconda3/