SSL-A-Team / firmware

Contains all robot level firmware and firmware-level robot models
MIT License
3 stars 0 forks source link

update-alternatives fails in udev_setup.bash when alternative is already set? #49

Open joe-spall opened 8 months ago

joe-spall commented 8 months ago

On WSL2 if running udev_setup.bash after update-alternatives has been set for usbip, the line
update-alternatives --install /usr/local/bin/usbip usbip /usr/lib/linux-tools/*-generic/usbip 20 fails with update-alternatives: priority must be an integer

This causes the rest of the setup script to not be run. This error also occurs if the line is ran from the command line. I am speculating its because the priority is already set? 20 is clearly an integer.

Commenting out the line lets the rest of the script run.

guyfleeman commented 8 months ago

Oh man okay. Uh I just ran this on my WSL2 setup so maybe we can diff errors or something

joe-spall commented 7 months ago

I had followed the WSL2 instructions manually last year but wanted to try to new script so that's why I am guessing it's because it is already set