# Command ‘nvidia-smi’ not found after Lambda Stack reinstall

## post by peterr on Jan 6, 2023

I followed the steps to remove and reinstall Lambda Stack in Ubuntu on a Tensorbook, but I get an error command ‘nvidia-smi’ not found followed by a number of suggestions for packages to install. Also, `torch.cuda.is_available()` returns False. I would copy the error here but the laptop keeps freezing and is very slow to reboot. I looked at other related issues but haven’t found a fix.

## post by peterr on Jan 7, 2023

Now I’m getting a similar warning as one of the earlier posts: NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

```bash
sudo apt update &> nvidia-smi-troubleshooting.txt
```

I can’t post the whole output since as a new user, I am limited in the number of urls I can post. But I’m seeing this error:

```
Err:9 https://apt.retorque.re/file/zotero-apt ./ InRelease
Could not resolve ‘apt.retorque.re’
```

## post by peterr on Jan 7, 2023

And the following:

```
Fetched 6,849 kB in 2s (3,375 kB/s)
Reading package lists…
Building dependency tree…
Reading state information…
All packages are up to date.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:57 and /etc/apt/sources.list.d/lambda-repository.list:1
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:57 and /etc/apt/sources.list.d/lambda-repository.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:57 and /etc/apt/sources.list.d/lambda-repository.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:57 and /etc/apt/sources.list.d/lambda-repository.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:57 and /etc/apt/sources.list.d/lambda-repository.list:1
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:57 and /etc/apt/sources.list.d/lambda-repository.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:57 and /etc/apt/sources.list.d/lambda-repository.list:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:57 and /etc/apt/sources.list.d/lambda-repository.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:57 and /etc/apt/sources.list.d/lambda-repository.list:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list:57 and /etc/apt/sources.list.d/lambda-repository.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:57 and /etc/apt/sources.list.d/lambda-repository.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:57 and /etc/apt/sources.list.d/lambda-repository.list:1
```

## post by cody_b on Jan 12, 2023

Are you able to upload the output, instead of copy ‘n’ pasting?

NB: The error about not being able to resolve `apt.retorque.re` isn’t breaking Lambda Stack.
