Skip to content

Failed to connect to bus: No such file or directory #1022

@rvrignaud

Description

@rvrignaud

Hello,

It seems that package behavior changed for 0.12.
I'm not able to install telegraf debian package 0.12.0-1 inside a docker container anymore (on image ubuntu:1604).

Following is not working:

FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y wget
RUN wget http://get.influxdb.org/telegraf/telegraf_0.12.0-1_amd64.deb
RUN dpkg -i telegraf_0.12.0-1_amd64.deb
Step 5 : RUN dpkg -i telegraf_0.12.0-1_amd64.deb
 ---> Running in 32380922ea7a
Selecting previously unselected package telegraf.
(Reading database ... 7528 files and directories currently installed.)
Preparing to unpack telegraf_0.12.0-1_amd64.deb ...
Unpacking telegraf (0.12.0-1) ...
Setting up telegraf (0.12.0-1) ...
Created symlink /etc/systemd/system/telegraf.service, pointing to /lib/systemd/system/telegraf.service.
Created symlink /etc/systemd/system/multi-user.target.wants/telegraf.service, pointing to /lib/systemd/system/telegraf.service.
Failed to connect to bus: No such file or directory
Failed to connect to bus: No such file or directory
dpkg: error processing package telegraf (--install):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 telegraf
The command '/bin/sh -c dpkg -i telegraf_0.12.0-1_amd64.deb' returned a non-zero code: 1

Whereas telegraf 0.11 is working:

FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y wget
RUN wget http://get.influxdb.org/telegraf/telegraf_0.11.0-1_amd64.deb
RUN dpkg -i telegraf_0.11.0-1_amd64.deb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions