Thanks for the details. A couple of things stand out here.
The “permission denied” on ./install_pivariety_pkgs.sh almost always means the script isn’t marked executable, or you’re running it as a user that doesn’t have rights to execute it in that location. Can you check a few things for me?
Where is the script located, and what do the permissions look like?
ls -l install_pivariety_pkgs.sh
What user are you logged in as over SSH?
whoami
Have you tried running it with sudo?
sudo ./install_pivariety_pkgs.sh -p libcamera_dev
Also, the “unable to resolve host address ‘2 driver’” message looks like a typo/quoting problem in your download command rather than a network issue — it’s treating part of your argument as a hostname. Can you paste the exact command you used to download the scripts?
Okay small update. I did chmod +x on it and tried again, but I’m STILL getting permission denied when I run ./install_pivariety_pkgs.sh -p libcamera_dev
Weird because now the file shows as executable:
-rwxr-xr-x 1 pi pi 1034 Nov 8 14:22 install_pivariety_pkgs.sh
Good, that confirms the file itself is fine now. If it’s executable and you still get “permission denied”, that points to the user context rather than the file.
Two possibilities:
The directory the script lives in isn’t accessible/writable by your user, so the script can’t do what it needs (the installer needs to write to system locations).
The script is being invoked in a context that can’t actually run it even though the bit is set — e.g. it’s on a mounted filesystem with noexec, or the surrounding operations all need root.
Let’s test the simplest path first. Run it with sudo and tell me exactly what happens:
sudo ./install_pivariety_pkgs.sh -p libcamera_dev
Also, is the script sitting in your home directory (/home/pi) or somewhere else? And can you run:
Yeah, that’s the key takeaway here — the driver install needs root. Normal user commands are fine for everyday stuff, but anything that writes into the system (libcamera, kernel modules, driver packages) has to run with sudo, otherwise you’ll keep hitting “permission denied” exactly like you did.
So to summarize where we landed:
The “unable to resolve host address ‘2 driver’” and the 404 were from a malformed download command — a stray space in the URL, not a real network/DNS problem. Redownload carefully with the correct single URL.
The “permission denied” on ./install_pivariety_pkgs.sh was a privilege issue, not a broken file. Once the file was executable AND you ran it with sudo, the install proceeded.
Recommended path from here:
Reboot the Pi (sudo reboot).
After it comes back, re-run all the install steps with sudo, e.g. sudo ./install_pivariety_pkgs.sh -p libcamera_dev.
Then do the libcamera/libcamera-apps steps the same way, with sudo.
If anything still fails after the reboot, paste the output here and we’ll dig in further. But the sudo + reboot combo should sort out what you were seeing.