Why do I see the following error when using conda (usually when installing packages or making new envs) and how do I fix it:
Verifying transaction: | WARNING cond
reference: to https://gist.github.com/zoka123/f2b03f19924258d28441fe2d88750145
check if a path is writable:
if [ -w "./.conda" ]; then echo "WRITABLE"; else echo "NOT WRITABLE"; fi
if it is not writable, change writability to anybody:
chmod 775 ./.conda
If you are curious of existing file permission:
ls -lha
outputs the set of access right of current locations, where d
refers to current directory.
Eg: drwxr-xr-x
:
each digit refers to right for User, Group and Global respectively. For the above example,
rwx
means current user can read,write and execute; r-x
for both group and global, which means they can read and execute only.
chmod
is used with a 3-digit commands, each digit refers to one combination of the read, write, execute
access for the above three types of identity.
755
means rwx
for current user, and r-x
for Group and Global.
You may refer to https://www.linode.com/docs/tools-reference/tools/modify-file-permissions-with-chmod/ for reference.