Linux Installation Error - STM32 Cube IDE
I have a VM running with Ubuntu 22.04 -- a brand new, clean installation.
In case it matters...
- The host machine is a Mac M3
- I actually had this running some time ago, but have since deleted the VM
- I am working with an offshore team doing some dev work for us and want to create a similar environment. I am doing this to remove any ambiguity about our collective setups when it comes to building, testing and troubleshooting
Steps to Reproduce
- Download the Debian-specific ZIP file - in my case it was:
en.st-stm32cubeide_1.17.0_23558_20241125_2245_amd64.deb_bundle.sh.zip - Extract the contents of the archive
- I used the Ubuntu Archive Manager and also...
- Used a strictly command line approach, like...
unzip en.st-stm32cubeide_1.17.0_23558_20241125_2245_amd64.deb_bundle.sh.zip
chmod +x ./st-stm32cubeide_1.17.0_23558_20241125_2245_amd64.deb_bundle.sh
sudo ./st-stm32cubeide_1.17.0_23558_20241125_2245_amd64.deb_bundle.sh
- Accept the Ts & Cs -- also selected Yes to the prompt:
- Do you want to install Segger J-Link udev rules? [Y/n]
I also tried this approach, hoping some magic would happen if I installed a JRE.
Error Message
No matter what I try, the install fails with the error below. Line 17 seems to suggest that it can't find a .deb package the script itself just unpacked to a temporary directory.
¯\_(ツ)_/¯
I ACCEPT (y) / I DO NOT ACCEPT (N) [N/y] y
License accepted.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'st-stlink-server:amd64' instead of './st-stlink-server-2.1.1-1-linux-amd64.deb'
Note, selecting 'st-stlink-udev-rules' instead of './st-stlink-udev-rules-1.0.3-2-linux-all.deb'
Note, selecting 'st-stm32cubeide-1.17.0:amd64' instead of './st-stm32cubeide-1.17.0-23558-20241125-2245_amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
st-stlink-server:amd64 : Depends: libusb-1.0-0:amd64 but it is not installable
st-stm32cubeide-1.17.0:amd64 : Depends: st-stlink-udev-rules:amd64 but it is not installable
Recommends: libncurses5:amd64 but it is not installable
Recommends: libpython2.7:amd64 but it is not installable
Recommends: libwebkit2gtk-4.0-37:amd64 but it is not installable
E: Unable to correct problems, you have held broken packages.
What am I missing here?
Is it because the host is running arm64 vs the expected amd64 on the VM?
Many thanks in advance for any feedback or contributions!
