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

Replace invocations to apt with DEBIAN_FRONTEND=noninteractive apt-get #74

Merged
merged 2 commits into from
Jun 4, 2018
Merged

Replace invocations to apt with DEBIAN_FRONTEND=noninteractive apt-get #74

merged 2 commits into from
Jun 4, 2018

Conversation

happyaron
Copy link
Contributor

@happyaron happyaron commented Jun 3, 2018

This PR tries to address two issues in subutai-io/vagrant#103.

According to apt's man page:

The apt(8) commandline is designed as an end-user tool and it may change behavior between versions. While it tries not to break backward compatibility this is not guaranteed either if a change seems beneficial for interactive use.

All features of apt(8) are available in dedicated APT tools like apt-get(8) and apt-cache(8) as well.  apt(8) just changes the default value of some options (see apt.conf(5) and specifically the Binary scope). So you should prefer using these commands (potentially with some additional options enabled) in your scripts as they keep backward compatibility as much as possible.

So we should replace the usage of apt to apt-get and apt-cache where applicable.

Also to avoid warnings to dpkg-preconfigure we need to add DEBIAN_FRONTEND=noninteractive to apt-get.

@happyaron happyaron changed the title Replace invocations to apt with apt-get (Closes: subutai-io/vagrant#103) Replace invocations to apt with DEBIAN_FRONTEND=noninteractive apt-get Jun 3, 2018
@jadilet jadilet merged commit d2db080 into subutai-io:master Jun 4, 2018
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

Successfully merging this pull request may close these issues.

2 participants