Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to install conda toolkit dev due to Permission Error #72

Open
santosh9sanjeev opened this issue Jul 2, 2023 · 2 comments
Open

Comments

@santosh9sanjeev
Copy link

Hi
I wanted to install the cuda-toolkit dev, but it tries to remove the file from the tmp folder(cuda-installer.log) during the installation., which fails due to permission error. I am not the super user and cannot access the tmp folder. Is there any other way for this to work without being the super user?

The error:

ERROR conda.core.link:_execute(740): An error occurred while installing package 'conda-forge::cudatoolkit-dev-11.7.0-h1de0b5d_6'.
Rolling back transaction: done

LinkError: post-link script failed for package conda-forge::cudatoolkit-dev-11.7.0-h1de0b5d_6
location of failed script: /home/santosh.sanjeev/miniconda3/envs/unixmini/bin/.cudatoolkit-dev-post-link.sh
==> script messages <==

==> script output <==
stdout: Running Post installation
re-using previously downloaded /home/santosh.sanjeev/miniconda3/envs/unixmini/pkgs/cudatoolkit-dev/cuda_11.7.0_515.43.04_linux.run

stderr: Traceback (most recent call last):
File "/home/santosh.sanjeev/miniconda3/envs/unixmini/bin/cudatoolkit-dev-post-install.py", line 118, in extract
os.remove("/tmp/cuda-installer.log")
PermissionError: [Errno 1] Operation not permitted: '/tmp/cuda-installer.log'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/santosh.sanjeev/miniconda3/envs/unixmini/bin/cudatoolkit-dev-post-install.py", line 311, in
_main()
File "/home/santosh.sanjeev/miniconda3/envs/unixmini/bin/cudatoolkit-dev-post-install.py", line 307, in _main
extractor.extract()
File "/home/santosh.sanjeev/miniconda3/envs/unixmini/bin/cudatoolkit-dev-post-install.py", line 120, in extract
raise RuntimeError(
RuntimeError: Failed to remove /tmp/cuda-installer.log

return code: 1

()

@yit-b
Copy link

yit-b commented Jul 11, 2023

I'm having the same problem. Setting TMPDIR=somewhere/else did not work either. /tmp is hardcoded in the post install script.

@Kaka23333
Copy link

same problem. Is there any solutions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants