Project

General

Profile

Actions

Bug #3830

closed

Technique "Package management for APT systems": packages with suffix :amd64 are not correctly detected

Added by Fabrice FLORE-THÉBAULT about 11 years ago. Updated over 9 years ago.

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

Description

Let's install openjdk-6-jre on debian squeeze.

If we create a directive to install openjdk-6-jre package, then the package gets reinstalled at each run of the agent.

    Installing openjdk-6-jre...
    Q:env DEBIAN_FRONTEND= ...:Reading package lists...
    Q:env DEBIAN_FRONTEND= ...:Building dependency tree...
    Q:env DEBIAN_FRONTEND= ...:Reading state information...
    Q:env DEBIAN_FRONTEND= ...:Reading extended state information...
    Q:env DEBIAN_FRONTEND= ...:Initializing package states...
    Q:env DEBIAN_FRONTEND= ...:Reading task descriptions...
    Q:env DEBIAN_FRONTEND= ...:No packages will be installed, upgraded, or removed.
    Q:env DEBIAN_FRONTEND= ...:0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Q:env DEBIAN_FRONTEND= ...:Need to get 0 B of archives. After unpacking 0 B will be used.
    Q:env DEBIAN_FRONTEND= ...:Writing extended state information...
    Q:env DEBIAN_FRONTEND= ...:Reading package lists...
    Q:env DEBIAN_FRONTEND= ...:Building dependency tree...
    Q:env DEBIAN_FRONTEND= ...:Reading state information...
    Q:env DEBIAN_FRONTEND= ...:Reading extended state information...
    Q:env DEBIAN_FRONTEND= ...:Initializing package states...
    Q:env DEBIAN_FRONTEND= ...:Reading task descriptions...
    Q:env DEBIAN_FRONTEND= ...:
    -> Command related to promiser "openjdk-6-jre" returned code defined as promise kept (0)

The reason seems to be that aptitude and dpkg give different results:

aptitude search openjdk-6-jre
i   openjdk-6-jre                                      - environnement d'exécution Java OpenJDK qui utilise Hotspot J
i   openjdk-6-jre-headless                             - environnement d'exécution Java OpenJDK utilisant Hotspot JIT
i   openjdk-6-jre-lib                                  - environnement d'exécution Java OpenJDK - bibliothèques indép
p   openjdk-6-jre-zero                                 - Alternative JVM for OpenJDK, using Zero/Shark  
dpkg -l openjdk-6-jre*
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom                     Version          Architecture     Description
+++-=======================-================-================-===================================================
ii  openjdk-6-jre:amd64     6b27-1.12.6-1~de amd64            OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-6-jre-headless: 6b27-1.12.6-1~de amd64            OpenJDK Java runtime, using Hotspot JIT (headless)
ii  openjdk-6-jre-lib       6b27-1.12.6-1~de all              OpenJDK Java runtime (architecture independent libr
un  openjdk-6-jre-zero      <aucun>                           (aucune description n'est disponible)

If we create a directive to install openjdk-6-jre:amd64 package, then the package installed only once.

Actions

Also available in: Atom PDF