Closed TheStaticTurtle closed 3 years ago
Didn't see it, scrolls way too fast out of the terminal 😓 Personally I skipped the vscode install after the error because I don't really need it, but it would be nice to add a condition to download the x64 version
pico_setup.sh
was only written to run on Raspberry Pi OS on a Raspberry Pi. There's so many other distros out there with different package names, different sets of pre-installed packages, different packaging formats / tools, etc. etc. that trying to be "more generic" could easily turn into a bit of a nightmare. IMHO.
For anything that isn't Raspberry Pi OS on a Raspberry Pi, you really ought to be following the steps in https://datasheets.raspberrypi.org/pico/getting-started-with-pico.pdf , adapting them as necessary for the particular distro you're running on.
Just for the sake of documentation, in case someone sees this issue, pico_setup.sh
does work (albeit partially) on Ubuntu, and it's a good way to grab all the relevant repos and set up the env vars needed. Here's what I did:
sudo apt install libusb-1.0-0-dev pkg-config
mkdir -p pico
curl https://raw.githubusercontent.com/raspberrypi/pico-setup/master/pico_setup.sh -o pico/pico_setup.sh
SKIP_OPENOCD=1 SKIP_VSCODE=1 SKIP_UART=1 ./pico/pico_setup.sh
pico_setup.sh
does work (albeit partially) on Ubuntu... Here's what I did:
Thanks, that's not something we've tested ourselves :+1:
One of the things on my todo list is to modify pico_setup.sh
to install code
from the APT repos instead of downloading the .deb
file with wget; which I believe would also help with the problem you mentioned in the first post.
Yup I used almost the same commands except that libusb was installed fine by the script and I didn't need to skip openocd
The command
sudo apt install -y ./vscode.deb
in pico_setup fails under ubuntu 20.04 x64 because it downloads the armhf version