--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: apt: APT::Never-MarkAuto-Sections not working as advertised
- From: Raphaël Hertzog <hertzog@debian.org>
- Date: Thu, 23 Jul 2015 11:14:38 +0200
- Message-id: <20150723091438.30421.38626.reportbug@x230-buxy.home.ouaza.com>
Package: apt
Version: 1.0.9.6
Severity: normal
User: devel@kali.org
Usertags: origin-kali
There are probably multiple problems but just to prove my case:
$ apt-config dump|grep metapackages
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
$ apt-cache show kali-desktop-common|grep -E 'Depends|Section'
Depends: kali-root-login, kali-defaults, kali-menu, kali-debtags, kali-archive-keyring, desktop-base
Section: metapackages
Of those 6 packages, only kali-archive-keyring is already installed.
$ LANG=C sudo apt-get -s -o Debug::pkgDepCache::AutoInstall=true install kali-desktop-common 2>&1 >/dev/null | grep "Setting NOT as auto-installed"
Setting NOT as auto-installed (direct Depends of pkg in APT::Never-MarkAuto-Sections)
=> only one package is marked as manually installed instead of the the
5 missing dependencies
Trying it out with a real install:
$ sudo apt-mark showmanual >before
$ sudo apt-get -o Debug::pkgDepCache::AutoInstall=true install kali-desktop-common
[...]
$ sudo apt-mark showmanual >after
$ diff -u before after
--- before 2015-07-23 08:44:47.182823170 +0000
+++ after 2015-07-23 08:49:14.712184832 +0000
@@ -13,6 +13,7 @@
cpio
cron
dash
+dconf-tools
debconf
debconf-i18n
debian-archive-keyring
@@ -46,6 +47,7 @@
john
john-data
kali-archive-keyring
+kali-desktop-common
kmod
less
libacl1
And here we see that the package which is marked as manually installed is not
even a direct dependency of kali-desktop-common. It's a dependency of
kali-defaults which is not marked as a metapackage !
$ apt-cache show kali-defaults
Package: kali-defaults
Version: 2.0~16
Architecture: all
Maintainer: Devon Kearns <dookie@kali.org>
Installed-Size: 799
Depends: dconf-gsettings-backend | gsettings-backend, libglib2.0-bin, dconf-tools, gnome-brave-icon-theme
Homepage: http://www.kali.org
Priority: extra
Section: utils
Filename: pool/main/k/kali-defaults/kali-defaults_2.0~16_all.deb
Size: 278164
SHA256: 7a318d8ee97d71e3a25d0925bad6baf40b52be044c03d29895de752d9eae17b2
SHA1: d4bb80391367f4e4e5facc35527098d3579bf678
MD5sum: 609484282a69ca96f6d527e9f37748fa
Description: Kali default settings
This package implements various default settings
within Kali.
Description-md5: 39bf1c4ba320c4ada4e9be47c053cad2
But dconf-tools is in section "oldlibs" and that's how it got matched!
$ apt-cache show dconf-tools|grep Section
Section: oldlibs
(I also saw this quickly when using -o Debug::pkgDepCache::Marker=true)
So this is all matching packages not based on the parent that brough the packages in the
set of packages to install but on the package itself.
We want direct dependencies of metapackages to be marked as manually installed:
- when they are installed for the first time
- when they were already installed formerly as automatic dependency
- also when they are pulled by a metapackage which is itself a dependency of
another metapackage
It would be good to review all those cases to ensure that we fix this comprehensively.
-- System Information:
Debian Release: stretch/sid
APT prefers squeeze-lts
APT policy: (500, 'squeeze-lts'), (500, 'oldoldstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.0.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages apt depends on:
ii debian-archive-keyring 2014.3
ii gnupg 1.4.19-3
ii libapt-pkg4.12 1.0.9.10
ii libc6 2.19-19
ii libgcc1 1:5.1.1-14
ii libstdc++6 5.1.1-14
apt recommends no packages.
Versions of packages apt suggests:
pn apt-doc <none>
ii aptitude 0.6.11-1+b1
ii dpkg-dev 1.18.1
ii python-apt 1.0.0~beta3
ii synaptic 0.81.4
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: apt
Source-Version: 1.0.10.1
We believe that the bug you reported is fixed in the latest version of
apt, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 793360@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
David Kalnischkies <david@kalnischkies.de> (supplier of updated apt package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Mon, 03 Aug 2015 07:29:40 +0200
Source: apt
Binary: apt libapt-pkg4.16 libapt-inst1.7 apt-doc libapt-pkg-dev libapt-pkg-doc apt-utils apt-transport-https
Architecture: source all amd64
Version: 1.0.10.1
Distribution: unstable
Urgency: medium
Maintainer: APT Development Team <deity@lists.debian.org>
Changed-By: David Kalnischkies <david@kalnischkies.de>
Description:
apt - commandline package manager
apt-doc - documentation for APT
apt-transport-https - https download transport for APT
apt-utils - package management related utility programs
libapt-inst1.7 - deb package format runtime library
libapt-pkg-dev - development files for APT's libapt-pkg and libapt-inst
libapt-pkg-doc - documentation for APT development
libapt-pkg4.16 - package management runtime library
Closes: 764204 776702 782122 789491 789709 793360 793444
Changes:
apt (1.0.10.1) unstable; urgency=medium
.
* hide first pdiff merge failure debug message (Closes: 793444)
* mark again deps of pkgs in APT::Never-MarkAuto-Sections as manual.
Thanks to Raphaël Hertzog and Adam Conrad for detailed reports and
initial patches (Closes: 793360) (LP: #1479207)
* explicitly build-dep on g++ (>= 4:5.2) for gcc5 transition
.
apt (1.0.10) unstable; urgency=medium
.
[ Zhou Mo ]
* po: update zh_CN translation slightly
* po: Update Simplified Chinese programs translation
.
[ Mert Dirik ]
* Turkish translation update for apt (Closes: #789491)
.
[ Yuri Kozlov ]
* Russian program translation update (Closes: 789709)
.
[ Milo Casagrande ]
* Italian program translation update (Closes: 782122)
.
[ Beatrice Torracca ]
* Italian manpage translation update (Closes: 776702)
.
[ Julian Andres Klode ]
* ExecFork: Use /proc/self/fd to determine which files to close
(Closes: #764204)
.
[ Michael Vogt ]
* Prepare new 1.0.10 release with gcc5 abi transition
.
[ David Kalnischkies ]
* stop depending on copy-on-write for std::string
* bump next-abi check above gcc5-abi bump
* update symbols file to use gcc5 abi mangling
Checksums-Sha1:
1a8a5cdc805c8ef88ed92e6d1f15c9e5c651acfd 2373 apt_1.0.10.1.dsc
f75809b94501eccc0ef5a7770644bdc60ad71723 1810080 apt_1.0.10.1.tar.xz
e033cdf6be34ad5d6f2e8c3c61e2fd5526888fc7 302062 apt-doc_1.0.10.1_all.deb
3f05ea507ec6e4387e147b63b569534abd2dd78d 134600 apt-transport-https_1.0.10.1_amd64.deb
02e0c128c4f4d3a643b5697a56c9483805cd3f2d 365254 apt-utils_1.0.10.1_amd64.deb
fe08dd863808dbd9882f35e7e7bceee624818dd8 1090240 apt_1.0.10.1_amd64.deb
a0ed5672e485be3a735f9f31442625b5a278b524 167502 libapt-inst1.7_1.0.10.1_amd64.deb
06ec2c62e24af53600d2c6fe0a415d5a60a9303e 193852 libapt-pkg-dev_1.0.10.1_amd64.deb
27ba3289dee0f78e0183a1e3769dfd605daf0d35 827892 libapt-pkg-doc_1.0.10.1_all.deb
e693d94e60038267ce6388b86850ee0154bb8d7e 742794 libapt-pkg4.16_1.0.10.1_amd64.deb
Checksums-Sha256:
e8456bef765d1646b0813d44eae5140b2acc61fc04a369aaeadaa25a22223962 2373 apt_1.0.10.1.dsc
3fb1de9598363c416591d49e3c285458e095b035e6c06d5b944a54e15fc9b543 1810080 apt_1.0.10.1.tar.xz
82de2adffb913d808fd056cc3c1f00e28b952a5f4befdbac752452871a2d951f 302062 apt-doc_1.0.10.1_all.deb
41b240d7814e49ea5474952b91476ada3245c3c2d53ac2885324c3547808e1d7 134600 apt-transport-https_1.0.10.1_amd64.deb
07d5f766deecf50c624ea17aa615a043a1371092460b4690637b0f00cc624990 365254 apt-utils_1.0.10.1_amd64.deb
8c3172721b9dc52aa4b6c5e7dd7c2c16cf4eaab4cba8e78ef5ed5bbe62eada65 1090240 apt_1.0.10.1_amd64.deb
e00c9bda6f082b80e0e40f151624ad2302ee3d1eacbcda0c2f82cc1d6c708c9b 167502 libapt-inst1.7_1.0.10.1_amd64.deb
4cfecf0739e87aea27f4f20793ec9e90752cfed19b84383714210dbb8ebd6f58 193852 libapt-pkg-dev_1.0.10.1_amd64.deb
547a2b95e12a6b5c71c77dccef8635b500e49788e37d0e36793fe19e49611677 827892 libapt-pkg-doc_1.0.10.1_all.deb
db05840461feaad5618387bde8b3e6c49a94d47679634dbe38f3b4c373e7c664 742794 libapt-pkg4.16_1.0.10.1_amd64.deb
Files:
71c18d23483f144876404b5cb0004667 2373 admin important apt_1.0.10.1.dsc
6505c4297b338adb2087ce87bbc4a276 1810080 admin important apt_1.0.10.1.tar.xz
99e1caa217c30f98340e51b2c9dbdce5 302062 doc optional apt-doc_1.0.10.1_all.deb
2fe32677736033a403cdc4e9982de23f 134600 admin optional apt-transport-https_1.0.10.1_amd64.deb
66086c3fda71380a63cd4aa03641bed8 365254 admin important apt-utils_1.0.10.1_amd64.deb
d1781875fe56287f58af5dcb1a21e71c 1090240 admin important apt_1.0.10.1_amd64.deb
ac5200a5d833fd3c2e4842087e52ab72 167502 libs important libapt-inst1.7_1.0.10.1_amd64.deb
c314732c06f17349aa753d8af6a7743d 193852 libdevel optional libapt-pkg-dev_1.0.10.1_amd64.deb
a5075cfa0f797afa4a0606e2c3f07c96 827892 doc optional libapt-pkg-doc_1.0.10.1_all.deb
21d660da619cdcb0b8fba20e1a44b3e2 742794 libs important libapt-pkg4.16_1.0.10.1_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJVvyJoAAoJEL1+qmB3j6b11k4P/0j/C9XYVR0jW6j5dnQVcObm
VDMbiVvtukzC/N8sJaoGSz//53FK3tnoRh5ldfX9Dxnq+tvWAYLj0s+BYQX5x+yk
8xuL6KoCmeVZRMxbmANfOuPIavqpxQajQ0gcFJSfP3vJNvwYo2xJJ5wVhcSW/Cf/
hHljxk4xXXYPsdzMzF8WnH6wsNFwVEFAs8AO+MIkfrLn2y/8ywZnHUzrLdJGFkvy
nFJE4jvqJk95DBqBjo9WCJ0c/WrR5B6Cm33BIXr8k0JBiXtKQmnBDaUKU49ykREX
6uH57QAd13shnyuiZnDYNgVZaQFD2uGmwQmAdk/F9kd4rpihRraUwvd2z9PqkpCd
kDI4/G8VoNifV9zs3xHqIgwLzHr2WE+RYoSUo8Nqkavahn/tvgpOEBdhhwRrHpkH
vg8638bUQYBmKVM9h9iew7aC3dpx/o5kkUJRD9JMPJU6A1blKQuzf+yEqfzmX1LZ
BmCq5kV12h2LNfYIbcVLuuCwr4FMBkSYp8haXrZ/V9aOU9SOHv9KNv8MC29RitcR
ys/rGF/kHsu6fGiBjYpY4W1wI5lyy5XmwJ45UVZ/pD2YB4/0bnFISnT8tQolwC2w
P5qQa+wwXFXrUE1MERwHDiKeUIcu41q3xkcj1v53sPiX5kcd7C9eBk4inWK/N2nE
8ebgUojTfJ0n5HJ65iih
=hqYn
-----END PGP SIGNATURE-----
--- End Message ---