golja-influxdb icon indicating copy to clipboard operation
golja-influxdb copied to clipboard

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

Open AndreCAndersen opened this issue 8 years ago • 5 comments

…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

AndreCAndersen avatar Oct 24 '16 20:10 AndreCAndersen

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

dgolja avatar Oct 24 '16 22:10 dgolja

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.

AndreCAndersen avatar Oct 26 '16 09:10 AndreCAndersen

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.

dgolja avatar Oct 26 '16 13:10 dgolja

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.

AndreCAndersen avatar Oct 26 '16 14:10 AndreCAndersen

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.

codylane avatar Feb 16 '17 01:02 codylane