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

Debian packaging: Incompatibility between influxdb2 and influxdb2-client packages #552

Open
ilario opened this issue Dec 18, 2024 · 0 comments

Comments

@ilario
Copy link

ilario commented Dec 18, 2024

I am not sure this is the right place where to report this, please advise.

The influxdb2 package recommends the influxdb2-cli package.
The influxdb2-cli package has exactly the same content as the influxdb2-client package, but they appear as two independent packages.
So, when installing influxdb2 and influxdb2-client packages, an error like this is observed:

# apt install influxdb2 influxdb2-client
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  influxdb2-cli
The following NEW packages will be installed:
  influxdb2 influxdb2-cli influxdb2-client
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 68.8 MB of archives.
After this operation, 166 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 https://repos.influxdata.com/debian bullseye/main arm64 influxdb2 arm64 2.7.11-1 [47.4 MB]
Get:2 https://repos.influxdata.com/debian bullseye/main arm64 influxdb2-cli arm64 2.7.5-1 [11.0 MB]
Get:3 https://repos.influxdata.com/debian bullseye/main arm64 influxdb2-client arm64 2.7.1-1 [10.5 MB]
Fetched 68.8 MB in 4s (17.9 MB/s)
[master c67b39c] saving uncommitted changes in /etc prior to apt run
 Author: vitsolc <vitsolc@a64-olinuxino>
 4 files changed, 3 insertions(+), 1 deletion(-)
 create mode 100644 apt/sources.list.d/influxdata.list
 create mode 100644 apt/trusted.gpg.d/influxdata-archive.gpg
 delete mode 120000 systemd/system/timers.target.wants/prometheus-node-exporter-apt.timer
Selecting previously unselected package influxdb2.
(Reading database ... 141486 files and directories currently installed.)
Preparing to unpack .../influxdb2_2.7.11-1_arm64.deb ...
Unpacking influxdb2 (2.7.11-1) ...
Selecting previously unselected package influxdb2-cli.
Preparing to unpack .../influxdb2-cli_2.7.5-1_arm64.deb ...
Unpacking influxdb2-cli (2.7.5-1) ...
Selecting previously unselected package influxdb2-client.
Preparing to unpack .../influxdb2-client_2.7.1-1_arm64.deb ...
Unpacking influxdb2-client (2.7.1-1) ...
dpkg: error processing archive /var/cache/apt/archives/influxdb2-client_2.7.1-1_arm64.deb (--unpack):
 trying to overwrite '/usr/bin/influx', which is also in package influxdb2-cli 2.7.5-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/influxdb2-client_2.7.1-1_arm64.deb
[master e6e015c] committing changes in /etc made by "apt install influxdb2 influxdb2-client"
 7 files changed, 7 insertions(+), 1 deletion(-)
E: Sub-process /usr/bin/dpkg returned an error code (1)

I suppose that a possible solution would be to indicate that the influxdb2-client package "provides" the influxdb2-cli package.

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

No branches or pull requests

1 participant