Trying to install Grafana on Ubuntu 14

All;
I recently installed Graphite/Carbon/Whisper on a Ubuntu 14 host. Now I’m trying to install Grafana, but I’ve had no success. From the Grafana docs I did the following:

APT Repository
Add the following line to your /etc/apt/sources.list file.
deb https://packagecloud.io/grafana/stable/debian/ jessie main

Then add the Package Cloud key. This allows you to install signed packages.
$ curl https://packagecloud.io/gpg.key | sudo apt-key add -

Update your Apt repositories and install Grafana
apt-get update
apt-get install grafana

However, this is what I am getting:

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
grafana
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/45.9 MB of archives.
After this operation, 135 MB of additional disk space will be used.
Selecting previously unselected package grafana.
(Reading database … 197819 files and directories currently installed.)
Preparing to unpack …/grafana_4.2.0_amd64.deb …
Unpacking grafana (4.2.0) …
Processing triggers for ureadahead (0.100.0-16) …
Setting up grafana (4.2.0) …
chown: cannot access ‘/etc/grafana/*’: No such file or directory
dpkg: error processing package grafana (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
grafana
E: Sub-process /usr/bin/dpkg returned an error code (1)

As far as I can tell, this is what it does:

Creates the following
/usr/share/grafana
/usr/sbin/grafana-server
/var/log/grafana
/var/lib/grafana

Does not create the following
/etc/init.d/grafana-server
/etc/default/grafana-server
/etc/grafana/grafana.ini
/var/lib/grafana/grafana.db

Can anyone shed some light on what I am doing wrong? Any help at all on getting this working would be GREATLY appreciated.
Thanks;
Frank

very strange, can’t expain why this happens.

Don’t have a ubuntu 14 install available to test with only 16.x and a first install works without issues.

Try creating (as root) /etc/grafana directory and try to reinstall

Torkel;
Thanks for the response. I did what you said and it seemed to install without errors. However, the same files were missing after the install, so what I did was manually extract all of the files from the .deb pkg and installed them manually. FYI, the .deb pkg did not have an /etc/grafana/grafana.ini file in it along with nothing in the /var/lib/grafana directory (not sure if that is correct or not). So right now I think that its probably installed. Also, I’m not able to get the service running, but I think thats a different thread.
Thanks for your help.
Regards;
Frank

those files are created in the post install script, no idea why it’s not working on Ubuntu 14 but is working on later versions