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

install-prereqs-ubuntu.sh broken on RPi 4 running Ubuntu 24.04 #28576

Closed
bobzwik opened this issue Nov 10, 2024 · 3 comments
Closed

install-prereqs-ubuntu.sh broken on RPi 4 running Ubuntu 24.04 #28576

bobzwik opened this issue Nov 10, 2024 · 3 comments

Comments

@bobzwik
Copy link

bobzwik commented Nov 10, 2024

Bug report

Issue details

Running Tools/environment_install/install-prereqs-ubuntu.sh -y hangs on an RPi 4 running Ubuntu 24.04. It gets stuck on Building wheel for wxpython (setup.py) and maxes out all my cores to 100%. I tested this 3 times, and left it hang over 40 minutes once.

To reproduce:

  • Flash SD card with Ubuntu 24.04 (64 bit) for RPi 4 using Raspberry Pi imager.
  • Boot Pi, set location, language, etc.
sudo apt update && sudo apt upgrade -y
sudo reboot
sudo apt install git
git clone --recurse-submodules https://github.com/ArduPilot/ardupilot.git 
cd ardupilot 
Tools/environment_install/install-prereqs-ubuntu.sh -y

I can also reproduce this without doing sudo apt upgrade -y

I don't know if this is linked, but after sudo apt upgrade -y, if i try to update and upgrade again, I get a message :

The following upgrades have been deferred due to phasing:
     python3-distupgrade shotwell shotwell-common ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk 

Version
master

Platform
[x] All
[ ] AntennaTracker
[ ] Copter
[ ] Plane
[ ] Rover
[ ] Submarine

Airframe type
N/A

Hardware type
N/A

Logs
N/A

@peterbarker
Copy link
Contributor

Sorry, you have to leave it for a lot longer than 40 minutes for that step to complete....

It does complete.

Try again (leave it overnight....) and re-open if it reproduces (and I'll attempt to work things out locally).

@bobzwik
Copy link
Author

bobzwik commented Nov 24, 2024

Any reason why it takes that long? The whole install-prereqs-ubuntu.sh takes 5-8 minutes on the same RPi 4 on Ubuntu 22.04.

@timtuxworth
Copy link
Contributor

Make sure you have enough memory. I usually set my swap size to 2x physical memory. It usually solves this on the Pi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants