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 packages fails to install due to malformed version number #47

Open
danielkza opened this issue Dec 3, 2016 · 2 comments
Open

Comments

@danielkza
Copy link

danielkza commented Dec 3, 2016

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 danielkza changed the title Debian packages fail to install due to malformed version number Debian packages fails to install due to malformed version number Dec 3, 2016
@rossmcdonald
Copy link
Contributor

@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.

@danielkza
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants