Bug #4732
closed
Package management Ubuntu doesn't respect Package version number (optional)
Added by Dennis Cabooter over 10 years ago.
Updated about 8 years ago.
Description
2014-04-03T15:29:54+0200 verbose: Matched name 'zabbix-agent'
2014-04-03T15:29:54+0200 verbose: Matched version *
2014-04-03T15:29:54+0200 verbose: Looking for (zabbix-agent,1:2.2.2-1+precise,*)
2014-04-03T15:29:54+0200 verbose: Matched name 'zabbix-agent'
2014-04-03T15:29:54+0200 verbose: Check for compatible versioning model in (1:1.8.11-1,1:2.2.2-1+precise)
2014-04-03T15:29:54+0200 verbose: Verified that versioning models are compatible
2014-04-03T15:29:54+0200 verbose: Checking whether package version 1:1.8.11-1 == 1:2.2.2-1+precise: no
2014-04-03T15:29:54+0200 verbose: No installed packages matched (zabbix-agent,1:2.2.2-1+precise,*)
2014-04-03T15:29:54+0200 verbose: Checking if package (zabbix-agent,1:2.2.2-1+precise,*) is at the desired state (installed=1,matched=0)
2014-04-03T15:29:54+0200 verbose: Package promises to refer to itself as 'zabbix-agent' to the manager
2014-04-03T15:29:54+0200 verbose: Package version seems to match criteria
2014-04-03T15:29:54+0200 verbose: /check_apt_package_installation/packages/'${apt_package[${index_aptpkg}]}': Additional promise info: source path '/var/rudder/cfengine-community/inputs/aptPackageInstallation/2.0/aptPackageInstallation.cf' at line 261 comment 'Handling zabbix-agent using apt_nobulk, policy : add'
2014-04-03T15:29:54+0200 verbose: /check_apt_package_installation/packages/'${apt_package[${index_aptpkg}]}': Package 'zabbix-agent' already installed, so we never add it again
In the directive i specified to install 1:2.2.2-1+precise. The repo to install it from was not available from the beginning. However, it should not install any other version than the version specified. Can you please fix that?
- Category set to Techniques
- Status changed from New to Discussion
- Assignee set to Dennis Cabooter
- Target version set to 2.9.5
Dennis,
Could you try to modify the Technique, to add in the body package_method apt_nobulk the following:
package_version_equal_command => "/usr/bin/dpkg --compare-versions $(v1) eq $(v2)";
package_version_less_command => "/usr/bin/dpkg --compare-versions $(v1) lt $(v2)";
Does it improve the situation ?
Thank you
Nicolas
- Target version changed from 2.9.5 to 2.9.6
- Target version changed from 2.9.6 to 2.9.7
- Target version changed from 2.9.7 to 150
- Target version changed from 150 to 2.10.4
- Target version changed from 2.10.4 to 2.10.5
- Target version changed from 2.10.5 to 2.10.6
- Target version changed from 2.10.6 to 2.10.7
- Target version changed from 2.10.7 to 2.10.8
- Target version changed from 2.10.8 to 2.10.9
- Target version changed from 2.10.9 to 2.10.10
- Target version changed from 2.10.10 to 2.10.11
- Target version changed from 2.10.11 to 2.10.12
- Target version changed from 2.10.12 to 2.10.13
- Target version changed from 2.10.13 to 2.10.14
- Target version changed from 2.10.14 to 2.10.15
- Target version changed from 2.10.15 to 2.10.16
- Target version changed from 2.10.16 to 2.10.17
- Target version changed from 2.10.17 to 2.10.18
- Target version changed from 2.10.18 to 2.10.19
- Target version changed from 2.10.19 to 2.10.20
- Target version changed from 2.10.20 to 277
- Target version changed from 277 to 2.11.18
- Target version changed from 2.11.18 to 2.11.19
- Target version changed from 2.11.19 to 2.11.20
- Target version changed from 2.11.20 to 2.11.21
- Target version changed from 2.11.21 to 2.11.22
- Target version changed from 2.11.22 to 2.11.23
- Target version changed from 2.11.23 to 2.11.24
- Target version changed from 2.11.24 to 308
- Target version changed from 308 to 3.1.14
- Target version changed from 3.1.14 to 3.1.15
- Target version changed from 3.1.15 to 3.1.16
- Target version changed from 3.1.16 to 3.1.17
- Status changed from Discussion to Rejected
Also available in: Atom
PDF