Most guides I’ve seen just flat out skip steps with no explanation.
Mostly focused on Ubuntu 24.04 as that is what I run.
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.10 python3.10-venv
python3.10 -m venv venv
source venv/bin/activate
This is how it should look like if the venv is set up correctly
(venv) user@hostname:~/stable-diffusion-webui$

./webui.sh
Now just sit and wait for everything to download