Public bug reported:

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)

** Affects: aptitude (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1747191

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/1747191/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to