Project

General

Profile

Actions

Bug #6696

closed

aptitude hangs on unsigned packages

Added by Alexis Mousset almost 9 years ago. Updated almost 2 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
Matthieu CERDA
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

In 20_cfe_basics/cfengine/packages.cf :

have_aptitude::
   package_add_command => "$(debian_knowledge.call_aptitude) $(debian_knowledge.dpkg_options) --assume-yes install";
   package_list_update_command => "/usr/bin/aptitude update";
   package_delete_command => "$(debian_knowledge.call_aptitude) $(debian_knowledge.dpkg_options) --assume-yes -q remove";
   package_update_command =>  "$(debian_knowledge.call_aptitude) $(debian_knowledge.dpkg_options) --assume-yes install";
   package_patch_command =>  "$(debian_knowledge.call_aptitude) $(debian_knowledge.dpkg_options) --assume-yes install";
   package_verify_command =>  "/usr/bin/aptitude show";
   package_noverify_regex => "(State: not installed|E: Unable to locate package .*)";

   package_patch_list_command => "/usr/bin/aptitude --assume-yes --simulate --verbose full-upgrade";
   package_patch_name_regex => "^Inst\s+(\S+)\s+.*";
   package_patch_version_regex => "^Inst\s+\S+\s+\[?\(?([^\],\s]+).*";

package_patch_list_command uses directly /usr/bin/aptitude instead of $(debian_knowledge.call_aptitude) (which adds the DEBIAN_FRONTEND=noninteractive env var).

This has been fixed in cfengine (3.5 and 3.6), we could update the ncf stdlib.


Related issues 3 (0 open3 closed)

Related to Rudder - Bug #8621: Agent uses malfunctioning "aptitude" for updates checking in debian|ununtuRejectedActions
Related to Rudder - Bug #13305: old packages generic methods are failing on old debianReleasedAlexis MoussetActions
Is duplicate of Rudder - Bug #6425: Generic method for installing package freeze on debian with untrusted sourcesRejectedActions
Actions

Also available in: Atom PDF