[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#864950: apt: installing a package discards hold set by apt-mark



Package: apt
Version: 1.4.6
Severity: normal

I am using apt-mark to hold package a package that I don't want to be installed
as a recommendation. But the hold seems to be lost after the next installation.

For example, I can easily reproduce this on a clean unstable chroot:

# apt-mark hold xmlto
xmlto set on hold.
# apt-mark showhold
xmlto
# apt-get install -qy bash-completion
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  bash-completion
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 178 kB of archives.
After this operation, 1249 kB of additional disk space will be used.
Get:1 http://http.debian.net/debian sid/main amd64 bash-completion all 1:2.1-4.3 [178 kB]
Fetched 178 kB in 0s (12.2 MB/s)
Selecting previously unselected package bash-completion.
(Reading database ... 9089 files and directories currently installed.)
Preparing to unpack .../bash-completion_1%3a2.1-4.3_all.deb ...
Unpacking bash-completion (1:2.1-4.3) ...
Setting up bash-completion (1:2.1-4.3) ...
# apt-mark showhold
#


-- System Information:
Debian Release: 9.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (500, 'testing'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), LANGUAGE=pt_BR:pt:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages apt depends on:
ii  adduser                 3.115
ii  debian-archive-keyring  2017.5
ii  gpgv                    2.1.18-8
ii  init-system-helpers     1.48
ii  libapt-pkg5.0           1.4.6
ii  libc6                   2.24-11
ii  libgcc1                 1:6.3.0-18
ii  libstdc++6              6.3.0-18

Versions of packages apt recommends:
ii  gnupg   2.1.18-8
ii  gnupg1  1.4.21-4
ii  gnupg2  2.1.18-8

Versions of packages apt suggests:
pn  apt-doc                      <none>
pn  aptitude | synaptic | wajig  <none>
ii  dpkg-dev                     1.18.24
ii  powermgmt-base               1.31+nmu1
ii  python-apt                   1.4.0~beta3

-- no debconf information

Attachment: signature.asc
Description: PGP signature


Reply to: