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

Bug: fresh-install-script not detecting packages #8

Open
emmanuelkring opened this issue Jun 9, 2020 · 2 comments
Open

Bug: fresh-install-script not detecting packages #8

emmanuelkring opened this issue Jun 9, 2020 · 2 comments

Comments

@emmanuelkring
Copy link
Contributor

Description

When running the fresh install script after fresh install on Ubunutu 20.04 (and probably on 18.04), ROS is detected as already installed.

Probable reason

Seems to be two problems when checking for packages in the lines on the form of:

if `apt list --installed 2>/dev/null | grep -iqwe ^$1/`; then
#package is not installed

The first is that apt list --installed 2>/dev/null | grep -iqwe ^ros-melodic-desktop/ has exit status 1 (i.e. finds nothing) even if the package is installed. This seems to be due to the forward slash at the end. Secondly the if statement seems to check if the command was successful or not i.e. true if grep found something even though it has exit status 0 if it did.

emmanuelkring added a commit that referenced this issue Jun 10, 2020
@emmanuelkring
Copy link
Contributor Author

Still not working since ROS packages needs to be added to the source list before doing the check if ROS is installed otherwise it thinks the package does not exist.

emmanuelkring added a commit that referenced this issue Jun 10, 2020
@emmanuelkring
Copy link
Contributor Author

Tested from fresh install on Ubuntu 20.04

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

No branches or pull requests

1 participant