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

Fix Ubuntu Script for 20.04 #15241

Merged
merged 5 commits into from
Jun 29, 2020
Merged

Fix Ubuntu Script for 20.04 #15241

merged 5 commits into from
Jun 29, 2020

Conversation

MaEtUgR
Copy link
Member

@MaEtUgR MaEtUgR commented Jun 29, 2020

Describe problem solved by this pull request
I set up a new Ubuntu 20.04 VM and ran into a bunch of issues. I made some changes to the setup script to avoid all of them.

Describe your solution
The commit messages clearly describe the steps.

Test data / coverage
I retested the changes after resetting the VM to a snapshot just after installation.

Additional context
The additional python package requirement for matplotlib with an exact old version added in #15203 was the main reason the script failed on 20.04.

MaEtUgR added 5 commits June 29, 2020 21:52
Because this older version fails to install on Ubuntu 20.04
and makes the entire setup script fail.
This can lead to inconsistency with the installed package.
E.g. also if the package is remove the upgraded pip stays
but the symbolic links are gone.
to avoid downloading and installing ARM GCC again if the script is
reran immediately after e.g. because it failed the first time.
That makes gazebo crash in VMWare 3D graphics accelration.
@MaEtUgR MaEtUgR added the Tools Sub-tools used within PX4 ecosystem (scripts, etc) label Jun 29, 2020
@MaEtUgR MaEtUgR requested a review from dagar June 29, 2020 20:23
@MaEtUgR MaEtUgR self-assigned this Jun 29, 2020
@MaEtUgR MaEtUgR changed the title Fix ubuntu script for 20.04 Fix Ubuntu Script for 20.04 Jun 29, 2020
@hamishwillee
Copy link
Contributor

FWIW (since I can't merge) looks good to me.

@dagar
Copy link
Member

dagar commented Jun 29, 2020

Looks good. I still want to get this into the containers to keep everything synced nicely. PX4/PX4-containers#267

@dagar dagar merged commit 547bd4c into master Jun 29, 2020
@dagar dagar deleted the fix-ubuntu-script-2004 branch June 29, 2020 23:21
@julianoes
Copy link
Contributor

This creates a warning for me: sudo: dmidecode: command not found

@MaEtUgR
Copy link
Member Author

MaEtUgR commented Jul 17, 2020

This creates a warning for me: sudo: dmidecode: command not found

@julianoes In docker? With normal Ubuntu 20.04 desktop it's preinstalled. Maybe I need to add it for minimal/docker cases.

MaEtUgR added a commit that referenced this pull request Jul 21, 2020
On normal desktop distributions dmidecode is preinstalled
and I was assuming it's part of the core tools. Thanks to a hint
#15241 (comment)
I found out it's not and am installing the package before using it.
@MaEtUgR
Copy link
Member Author

MaEtUgR commented Jul 21, 2020

@julianoes I added the package now before I forget: #15388

dagar pushed a commit that referenced this pull request Jul 21, 2020
On normal desktop distributions dmidecode is preinstalled
and I was assuming it's part of the core tools. Thanks to a hint
#15241 (comment)
I found out it's not and am installing the package before using it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tools Sub-tools used within PX4 ecosystem (scripts, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants