Project

General

Custom queries

Profile

Actions

Bug #4732

closed

Package management Ubuntu doesn't respect Package version number (optional)

Added by Dennis Cabooter about 11 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
N/A
Category:
Techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

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?

Actions #1

Updated by Nicolas CHARLES about 11 years ago

  • 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

Actions #35

Updated by François ARMAND over 8 years ago

  • Status changed from Discussion to Rejected

We didn't have returns on that one, and the correct, definitive solution against all package management problems is to use: http://www.normation.com/en/blog/2016/10/17/discover-new-package-management-implementation-rudder/

Actions

Also available in: Atom PDF