Project

General

Profile

Actions

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.

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 over 10 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 #2

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.9.5 to 2.9.6
Actions #3

Updated by Jonathan CLARKE over 10 years ago

  • Target version changed from 2.9.6 to 2.9.7
Actions #4

Updated by Jonathan CLARKE over 10 years ago

  • Target version changed from 2.9.7 to 150
Actions #5

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 150 to 2.10.4
Actions #6

Updated by Nicolas PERRON over 10 years ago

  • Target version changed from 2.10.4 to 2.10.5
Actions #7

Updated by Vincent MEMBRÉ about 10 years ago

  • Target version changed from 2.10.5 to 2.10.6
Actions #8

Updated by Matthieu CERDA about 10 years ago

  • Target version changed from 2.10.6 to 2.10.7
Actions #9

Updated by Vincent MEMBRÉ about 10 years ago

  • Target version changed from 2.10.7 to 2.10.8
Actions #10

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.10.8 to 2.10.9
Actions #11

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.10.9 to 2.10.10
Actions #12

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.10.10 to 2.10.11
Actions #13

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.10.11 to 2.10.12
Actions #14

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.10.12 to 2.10.13
Actions #15

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.10.13 to 2.10.14
Actions #16

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.10.14 to 2.10.15
Actions #17

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.10.15 to 2.10.16
Actions #18

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.10.16 to 2.10.17
Actions #19

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.10.17 to 2.10.18
Actions #20

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.10.18 to 2.10.19
Actions #21

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.10.19 to 2.10.20
Actions #22

Updated by Vincent MEMBRÉ almost 9 years ago

  • Target version changed from 2.10.20 to 277
Actions #23

Updated by Vincent MEMBRÉ almost 9 years ago

  • Target version changed from 277 to 2.11.18
Actions #24

Updated by Vincent MEMBRÉ almost 9 years ago

  • Target version changed from 2.11.18 to 2.11.19
Actions #25

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.19 to 2.11.20
Actions #26

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.20 to 2.11.21
Actions #27

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.21 to 2.11.22
Actions #28

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.22 to 2.11.23
Actions #29

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.23 to 2.11.24
Actions #30

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 2.11.24 to 308
Actions #31

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 308 to 3.1.14
Actions #32

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.14 to 3.1.15
Actions #33

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.15 to 3.1.16
Actions #34

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.16 to 3.1.17
Actions #35

Updated by François ARMAND about 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