influxdata / influxdata/influx-cli

Debian packaging: Incompatibility between influxdb2 and influxdb2-client packages

Open
#552 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
75
Forks
22
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Debian package definitions for influxdb2-cli and influxdb2, then reproduce the reported apt install command. Check how the two packages declare their relationship and file contents; done means installing influxdb2 with influxdb2-client no longer causes both packages to claim /usr/bin/influx.

Written by the indexing model from the issue text.

Assessment

Tech stack
debian
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.