mozilla-services / heka

DEPRECATED: Data collection and processing made easy.
http://hekad.readthedocs.org/
Other
3.39k stars 531 forks source link

Debian version package issue when upgrading from beta to stable #1892

Open ghost opened 8 years ago

ghost commented 8 years ago

The package versioning of beta releases should follow Debian policy. Eg. the release: 0.10.0b2 must be 0.10.0~beta2

The command dpkg displays a warning when updating from b2:

dpkg -i heka_0.10.0_amd64.deb .. dpkg: warning: downgrading heka from 0.10.0b2 to 0.10.0

Another example, when upgrading the heka package with Puppet this fails:

apt-get -q -y -o DPkg::Options::=--force-confold install ... The following packages will be DOWNGRADED: heka 0 upgraded, 27 newly installed, 1 downgraded, 0 to remove and 2 not upgraded. Need to get 43.6 MB of archives. After this operation, 73.7 MB of additional disk space will be used. E: There are problems and -y was used without --force-yes

https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version https://lintian.debian.org/tags/rc-version-greater-than-expected-version.html

jamiegwatkin commented 8 years ago

Another example where install fails when using Ansible -

ASK: [heka | Install heka] ***************************************************
<localhost> deb=/tmp/heka_0.10.0_amd64.deb
failed: [localhost] => {"failed": true}
msg: A later version is already installed

FATAL: all hosts have already failed -- aborting
ubuntu@ip-172-50-2-xx:/opt/ansible$ hekad --version
0.10.0b1