after selecting "Actions -> Cancel pending actions" aptitude cancels package holding which set by `apt-mark hold`

Bug #1747191 reported by Norbert
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
aptitude (Debian)
Fix Released
Unknown
aptitude (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Steps to reproduce:
1. Install some older version of package (for example meld 1.5.3-1ubuntu1).
$ wget http://mirrors.kernel.org/ubuntu/pool/universe/m/meld/meld_1.5.3-1ubuntu1_all.deb
$ sudo gdebi meld_1.5.3-1ubuntu1_all.deb

2. Hold this package version with
$ sudo apt-mark hold meld
$ apt-mark showhold
meld
$ dpkg -l | grep meld
hi meld 1.5.3-1ubuntu1 all graphical tool to diff and merge files

3. Launch aptitude interactively with `sudo aptitude`, start performing actions such install/remove/upgrade then cancel your decision with "Actions -> Cancel pending actions"

Expected results:
* aptitude respects user decision to cancel current actions, but did not touch `apt-mark` states

Actual results:
* aptitude does not respect `apt-mark` states, so held package is upgraded

$ dpkg -l | grep meld
ii meld 3.14.2-1 all graphical tool to diff and merge files

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: aptitude 0.7.4-2ubuntu2
ProcVersionSignature: Ubuntu 4.4.0-109.132-generic 4.4.98
Uname: Linux 4.4.0-109-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Feb 3 23:37:38 2018
InstallationDate: Installed on 2018-01-04 (30 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: aptitude
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Norbert (nrbrtx) wrote :
Revision history for this message
Norbert (nrbrtx) wrote :

What is great - Bionic Beaver (18.04 LTS) is not affected by this bug.

Revision history for this message
Axel Beckert (xtaran) wrote :

Yes, this has been fixed in aptitude 0.7.6 about 1.5 years ago. See https://bugs.debian.org/576319 for details.

Changed in aptitude (Ubuntu):
status: New → Fix Released
Changed in aptitude (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.