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

Adding apt-get update step before package declaration since a clean … #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

AndreCAndersen
Copy link

@AndreCAndersen AndreCAndersen commented Oct 24, 2016

…install of influxdb on 14.04.5 LTS Ubuntu using vagrant produces the following error: "==> default: Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install influxdb' returned 100: Reading package lists..."

Based on: http://stackoverflow.com/a/13655214/604048

…nstall of 16.04.01 LTS Ubuntu using vagrant produces the following error: "==> default: Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install influxdb' returned 100: Reading package lists..."
@dgolja
Copy link
Owner

dgolja commented Oct 24, 2016

Maybe the influxdb team doesnt have the 16.04 support. Let me check their repo.

@AndreCAndersen
Copy link
Author

AndreCAndersen commented Oct 26, 2016

I'm sorry about the confusion, I misread my terminal at startup. The Ubuntu version I used was not 16.04.1 as stated in the commit message. It was the more common 14.04.5 LTS.

Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-96-generic x86_64)

I've updated my pull request. The issue as I see it is that apt needs to be updated after the new source is added, before the package is installed. Running provisioning twice works in my case because I have an apt update section in the start of my vagrant file. Thus influxdb gets installed when I run provisioning twice. The first run fails as described, but second one picks up where the first left off.

Manually installing it also works as expected.

@dgolja
Copy link
Owner

dgolja commented Oct 26, 2016

Aha I see ... In theory the apt module should take care of that and run apt-get update, before trying to install the module. I will try to recreate the issue.

@AndreCAndersen
Copy link
Author

Good point. The apt module might be the issue. I'll fish out the version number. The start of the metadata.json file for my puppetlabs-apt module says:

{
  "name": "puppetlabs-apt",
  "version": "2.2.1",
  "author": "Puppet Labs",

... if that helps.

@codylane
Copy link
Contributor

Hey @AndreCAndersen - I've addressed this in my refactor found here:

https://github.com/codylane/golja-influxdb/tree/devel

Please let me know if you have questions.

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.

3 participants