Dpkg error when trying to install influxdb from the official repo

Hello,

I am trying to install influxdb (v1) from the official repo. I am getting this error:

Unpacking influxdb (1.12.2-4) …
dpkg: error processing archive /var/cache/apt/archives/influxdb_1.12.2-4_amd64.deb (–unpack):
trying to overwrite ‘/usr/bin/influx’, which is also in package influxdb-client 1.6.7~rc0-2ubuntu0.24.04.3
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

influxdb.service is not a native service, redirecting to systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install disable influxdb
Errors were encountered while processing:
/var/cache/apt/archives/influxdb_1.12.2-4_amd64.deb

/usr/bin/influx does not exist - I have specifically deleted it.

I’ve searched around and can’t find much on this error. If anyone knows what to do, would be greatly appreciated. I’ve had to disable the sources for now and use the older version from the ubuntu repos instead.

Thanks

@davidby-influx if you can please share some insight. Thanks

@devanbenz - any thoughts?

@Zaite455 - you may need to uninstall usr/bin/influx, not merely delete it. But I defer to the greater expertise of my tagged colleague.

Thanks for the reply,

I did try removing influxdb and influxdb-client packages first, and verified that /usr/bin/influx no longer exists. I then enabled the Influx repo followed by apt update / apt install influxdb. This also generates the same error.

@Zaite455 Could you please try installing influxdb using the following method?
```
wget https://repos.influxdata.com/packages/influxdb_1.12.2-1_amd64.deb

sudo dpkg -i influxdb_1.12.2-1_amd64.deb
```
In the meantime I’m going to check on our official repo documentation and attempt to reproduce the issue you are experiencing.

This works successfully, installed and running - and in fact it appears to have updated it from the repo after doing the manual install to version 1.12.2-4.

So looks like it’s problem solved, fingers crossed! Thank you very much for the help

1 Like