influxdb-relay icon indicating copy to clipboard operation
influxdb-relay copied to clipboard

Debian packages fails to install due to malformed version number

Open danielkza opened this issue 8 years ago • 2 comments

Package generated using the Docker container, as per README instructions. Attempting to install it in an Ubuntu 16.04 Docker container.

$ apt install ./influxdb-relay_adaa2ea_amd64.deb 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'influxdb-relay' instead of './influxdb-relay_adaa2ea_amd64.deb'
The following packages were automatically installed and are no longer required:
  geoip-database libgd3 libgeoip1 libvpx3 libxpm4 libxslt1.1
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  influxdb-relay
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 0 B/2540 kB of archives.
After this operation, 8583 kB of additional disk space will be used.
Get:1 /root/influxdb-relay_adaa2ea_amd64.deb influxdb-relay amd64 adaa2ea-1 [2540 kB]
debconf: delaying package configuration, since apt-utils is not installed
dpkg: error processing archive /root/influxdb-relay_adaa2ea_amd64.deb (--unpack):
 parsing file '/var/lib/dpkg/tmp.ci/control' near line 2 package 'influxdb-relay':
 error in 'Version' field string 'adaa2ea-1': version number does not start with digit
Errors were encountered while processing:
 /root/influxdb-relay_adaa2ea_amd64.deb
N: Can't drop privileges for downloading as file '/root/influxdb-relay_adaa2ea_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Sub-process /usr/bin/dpkg returned an error code (1)

danielkza avatar Dec 03 '16 21:12 danielkza

@danielkza To work around this, you'll need to add a fake version to the build. You can do that by adding a --version 0.1.0 (where 0.1.0 is the fake version) to the build script arguments.

rossmcdonald avatar Dec 04 '16 20:12 rossmcdonald

@rossmcdonald It would probably be a good idea to update the instructions to mention that, or even set up a 0.1 tag so that the build script picks it up.

danielkza avatar Dec 04 '16 20:12 danielkza