Repository: stable-diffusion-webui
Issue: [Bug]: WebUI wont launch on a fresh install of Ubuntu 22.04 LTS
Labels: bug-report

### Checklist

- [X] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

WebUI fails to launch and hangs indefinitely at "Launching Web UI with Arguments: ..." 
Issuing a keyboard interrupt results in the kernel repeatedly logging information regarding a blocked python process.

### Steps to reproduce the problem

System Setup:
1. Install Ubuntu 22.04 LTS.
2. Update and upgrade apt packages.
3. Install nvidia drivers from package manager ( Ver. 535 ).
3a. Blacklist nouveau on the kernel.
3b. Reboot and verify drivers installed correctly with nvidia-smi.
![Screenshot from 2024-04-13 13-27-10](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/38335130/8f9bc557-1edb-49cf-9947-4c4956d9035a)
5. Install cuda from package manager.
4a. Verify cuda installed correctly with nvcc --version.
![Screenshot from 2024-04-13 13-27-43](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/38335130/670894e8-b802-43c7-a53d-df68011e8c61)
4b. Verify cuda is functional by compiling and running sample project provided through the package manager.
6. Install cudnn from the package manager.
7. Install pyenv.
6a. Add exports to .bashrc for CLI operations.
8. Install python 3.10.6 through pyenv.
7a. Install libs as needed until python 3.10.6 can compile with a full feature set.
9. Reboot.

WebUI Setup:
1. Git clone WebUI repo.
2. Cd to repo.
3. Setup python virtual environment.
3a. Run pyenv local 3.10.6
3b. run python -m venv venv
3c. Run . ./venv/bin/activate
3d. Verify python is version 3.10.6 with python --version.
4. Run ./webui.sh while virtual environment is active.
4a. Installation runs until torch.cuda.is_available() is hit, at which point the installation hangs indefinitely.
4b. CTRL+C interrupt to kill the process.
![Screenshot from 2024-04-13 14-02-42](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/38335130/1d356f22-548e-4609-8ede-4cdc1df754b5)
4c. Add --skip-torch-cuda-test as an additional command line arg.
5. Run ./webui.sh while virtual environment is active.
5a. Installation runs until "Launching Web UI with arguments: ..." is hit, at which point the installation hangs indefinitely.
5b. Attempt a CTRL+C interrupt but get no response.
5c. Occasionally at this point the kernel will log that a python process is currently blocked.
![Screenshot from 2024-04-13 14-14-38](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/38335130/3a73c634-b593-4abf-959d-aac61550561c)


### What should have happened?

WebUI should launch and provide the user with output displaying a URL where the WebUI frontend may be reached.

### What browsers do you use to access the UI ?

Mozilla Firefox

### Sysinfo

I Cannot reach WebUI to obtain the Sysinfo and running ./webui.sh --dump-sysinfo results in a crash. 
![Screenshot from 2024-04-13 15-31-59](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/38335130/62ba9a54-3009-4e0f-8ada-c570a12fdea0)


### Console logs

```Shell
Please see "Steps to reproduce the problem" section attachments.
```


### Additional information

_No response_