Got an error while installing : sh: 0: getcwd() failed: No such file or directory

sudo usr/local/cuda-11.2/bin$ sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub

sh: 0: getcwd() failed: No such file or directory

Executing: /tmp/apt-key-gpghome.8ko2d7qmNc/gpg.1.sh --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub

sh: 0: getcwd() failed: No such file or directory

sh: 0: getcwd() failed: No such file or directory

gpg: requesting key from 'http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub'

gpg: key F60F4B3D7FA2AF80: "cudatools <cudatools@nvidia.com>" not changed

gpg: Total number processed: 1

gpg: unchanged: 1

sh: 0: getcwd() failed: No such file or directory

sh: 0: getcwd() failed: No such file or directory

sh: 0: getcwd() failed: No such file or directory

sh: 0: getcwd() failed: No such file or directory

sh: 0: getcwd() failed: No such file or directory

sh: 0: getcwd() failed: No such file or directory

sh: 0: getcwd() failed: No such file or directory

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store