Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VScode install fails on ubuntu 20.04 #16

Closed
TheStaticTurtle opened this issue Mar 3, 2021 · 6 comments · May be fixed by #20
Closed

VScode install fails on ubuntu 20.04 #16

TheStaticTurtle opened this issue Mar 3, 2021 · 6 comments · May be fixed by #20

Comments

@TheStaticTurtle
Copy link

The command sudo apt install -y ./vscode.deb in pico_setup fails under ubuntu 20.04 x64 because it downloads the armhf version

@lurch
Copy link
Contributor

lurch commented Mar 3, 2021

@TheStaticTurtle
Copy link
Author

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

@lurch
Copy link
Contributor

lurch commented Mar 3, 2021

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.

@aallan aallan closed this as completed Mar 3, 2021
@ndabas
Copy link

ndabas commented Mar 4, 2021

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

@lurch
Copy link
Contributor

lurch commented Mar 4, 2021

pico_setup.sh does work (albeit partially) on Ubuntu... Here's what I did:

Thanks, that's not something we've tested ourselves 👍
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.

@TheStaticTurtle
Copy link
Author

Yup I used almost the same commands except that libusb was installed fine by the script and I didn't need to skip openocd

@aallan aallan linked a pull request Apr 6, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants