forwarded -1 https://github.com/mvo5/unattended-upgrades/pull/156
tags -1 confirmed pending

Hi Jan,

Jan Kowalsky <jan...@datenkollektiv.net> ezt írta (időpont: 2018. okt.
12., P, 17:57):
>
> Package: unattended-upgrades
> Version: 0.93.1+nmu1
> Severity: serious
>
> Even if I have configured 'Remove-Unused-Dependencies "false";' in
> apt.conf.d/50unattended-upgrades:
>
>
> // Do automatic removal of new unused dependencies after the upgrade
> // (equivalent to apt-get autoremove)
> Unattended-Upgrade::Remove-Unused-Dependencies "false";
>
> it DOES remove packages (see below) as long as apt is configured as:

There are several issues relevant to this bug. First, this option is
misleading and this is fixed here:
https://github.com/mvo5/unattended-upgrades/commit/7f84b1b029e127595fdf3d6928ac2382b640f0ee#diff-4e9bf0f40e9f1a04bed3d01667f4d2f6

The one to be set to false is this one:
Unattended-Upgrade::Remove-New-Unused-Dependencies

Also u-u can incorrectly remove previously unused packages, too which
is being fixed here:
https://github.com/mvo5/unattended-upgrades/pull/156

I'm closing this bug with the PR because the log you attached seem to
contain removal of  packages unrelated to the ones upgraded.

>
> APT::AutoRemove::RecommendsImportant "false";
>
> In my understanding this shouldn't be the case.

Yes, with setting Unattended-Upgrade::Remove-New-Unused-Dependencies
u-u should not remove packages even with the above APT setting.

Thank you for reporting the bug.

Cheers,
Balint

>
> Here is the output of unattended-upgrade:
>
> unattended-upgrade -d -v --dry-run
> Initial blacklisted packages:
> Initial whitelisted packages:
> Starting unattended upgrades script
> Allowed origins are: ['o=Debian,n=stretch,l=Debian-Security',
> 'o=Debian,n=stretch,l=Debian-Security']
> Checking: icedove ([<Origin component:'main' archive:'stable'
> origin:'Debian' label:'Debian-Security' site:'security.debian.org'
> isTrusted:True>, <Origin component:'main' archive:'stable'
> origin:'Debian' label:'Debian-Security' site:'security.debian.org'
> isTrusted:True>])
> pkg 'enigmail' now marked delete
> sanity check failed
> Checking: icedove-l10n-de ([<Origin component:'main' archive:'stable'
> origin:'Debian' label:'Debian-Security' site:'security.debian.org'
> isTrusted:True>, <Origin component:'main' archive:'stable'
> origin:'Debian' label:'Debian-Security' site:'security.debian.org'
> isTrusted:True>])
> pkg 'enigmail' now marked delete
> sanity check failed
> Checking: iceowl-extension ([<Origin component:'main' archive:'stable'
> origin:'Debian' label:'Debian-Security' site:'security.debian.org'
> isTrusted:True>, <Origin component:'main' archive:'stable'
> origin:'Debian' label:'Debian-Security' site:'security.debian.org'
> isTrusted:True>])
> pkg 'enigmail' now marked delete
> sanity check failed
> Checking: libsnmp-base ([<Origin component:'main' archive:'stable'
> origin:'Debian' label:'Debian-Security' site:'security.debian.org'
> isTrusted:True>, <Origin component:'main' archive:'stable'
> origin:'Debian' label:'Debian-Security' site:'security.debian.org'
> isTrusted:True>])
> Checking: libsnmp30 ([<Origin component:'main' archive:'stable'
> origin:'Debian' label:'Debian-Security' site:'security.debian.org'
> isTrusted:True>])
> Checking: lightning ([<Origin component:'main' archive:'stable'
> origin:'Debian' label:'Debian-Security' site:'security.debian.org'
> isTrusted:True>, <Origin component:'main' archive:'stable'
> origin:'Debian' label:'Debian-Security' site:'security.debian.org'
> isTrusted:True>])
> pkg 'enigmail' now marked delete
> sanity check failed
> Checking: thunderbird ([<Origin component:'main' archive:'stable'
> origin:'Debian' label:'Debian-Security' site:'security.debian.org'
> isTrusted:True>])
> pkg 'enigmail' now marked delete
> sanity check failed
> Checking: thunderbird-l10n-de ([<Origin component:'main'
> archive:'stable' origin:'Debian' label:'Debian-Security'
> site:'security.debian.org' isTrusted:True>, <Origin component:'main'
> archive:'stable' origin:'Debian' label:'Debian-Security'
> site:'security.debian.org' isTrusted:True>])
> pkg 'enigmail' now marked delete
> sanity check failed
> pkgs that look like they should be upgraded: libsnmp-base
> libsnmp30
> Fetched 0 B in 0s (0 B/s)
>
>
> fetch.run() result: 0
> <apt_pkg.AcquireItem object:Status: 2 Complete: 1 Local: 1 IsTrusted: 1
> FileSize: 1594854
> DestFile:'/var/cache/apt/archives/libsnmp-base_5.7.3+dfsg-1.7+deb9u1_all.deb'
> DescURI:
> 'http://security.debian.org/pool/updates/main/n/net-snmp/libsnmp-base_5.7.3+dfsg-1.7+deb9u1_all.deb'
> ID:0 ErrorText: ''>
> check_conffile_prompt('/var/cache/apt/archives/libsnmp-base_5.7.3+dfsg-1.7+deb9u1_all.deb')
> found pkg: libsnmp-base
> No conffiles in deb
> '/var/cache/apt/archives/libsnmp-base_5.7.3+dfsg-1.7+deb9u1_all.deb'
> (There is no member named 'conffiles')
> <apt_pkg.AcquireItem object:Status: 2 Complete: 1 Local: 1 IsTrusted: 1
> FileSize: 2331604
> DestFile:'/var/cache/apt/archives/libsnmp30_5.7.3+dfsg-1.7+deb9u1_amd64.deb'
> DescURI:
> 'http://security.debian.org/pool/updates/main/n/net-snmp/libsnmp30_5.7.3+dfsg-1.7+deb9u1_amd64.deb'
> ID:0 ErrorText: ''>
> check_conffile_prompt('/var/cache/apt/archives/libsnmp30_5.7.3+dfsg-1.7+deb9u1_amd64.deb')
> found pkg: libsnmp30
> No conffiles in deb
> '/var/cache/apt/archives/libsnmp30_5.7.3+dfsg-1.7+deb9u1_amd64.deb'
> (There is no member named 'conffiles')
> blacklist: []
> whitelist: []
> Option --dry-run given, *not* performing real actions
> Packages that will be upgraded: libsnmp-base libsnmp30
> Writing dpkg log to
> '/var/log/unattended-upgrades/unattended-upgrades-dpkg.log'
> found partition of size 2 (['libsnmp-base', 'libsnmp30'])
> found leaf package libsnmp-base
> applying set ['libsnmp-base']
> apt-listchanges: Reading changelogs...
> /usr/bin/dpkg --status-fd 9 --no-triggers --unpack --auto-deconfigure
> /var/cache/apt/archives/libsnmp-base_5.7.3+dfsg-1.7+deb9u1_all.deb
> /usr/bin/dpkg --status-fd 9 --configure --pending
> left to upgrade {'libsnmp30'}
> found partition of size 2 (['libsnmp-base', 'libsnmp30'])
> applying set ['libsnmp-base', 'libsnmp30']
> apt-listchanges: Reading changelogs...
> /usr/bin/dpkg --status-fd 9 --no-triggers --unpack --auto-deconfigure
> /var/cache/apt/archives/libsnmp-base_5.7.3+dfsg-1.7+deb9u1_all.deb
> /var/cache/apt/archives/libsnmp30_5.7.3+dfsg-1.7+deb9u1_amd64.deb
> /usr/bin/dpkg --status-fd 9 --configure --pending
> left to upgrade set()
> All upgrades installed
> marking acpid for remove
> marking acpi-support-base for remove
> marking libao-common for remove
> marking gstreamer1.0-plugins-ugly for remove
> marking libsidplay1v5 for remove
> marking dvdauthor for remove
> marking libfreerdp-plugins-standard for remove
> marking growisofs for remove
> marking genisoimage for remove
> marking brasero-cdrkit for remove
> marking libopencore-amrnb0 for remove
> marking libperl4-corelibs-perl for remove
> marking cdrdao for remove
> marking dmz-cursor-theme for remove
> marking libopencore-amrwb0 for remove
> marking libao4 for remove
> marking wodim for remove
> Packages that are auto removed: 'acpi-support-base acpid brasero-cdrkit
> cdrdao dmz-cursor-theme dvdauthor genisoimage growisofs
> gstreamer1.0-plugins-ugly libao-common libao4
> libfreerdp-plugins-standard libopencore-amrnb0 libopencore-amrwb0
> libperl4-corelibs-perl libsidplay1v5 wodim'
> echo 'acpi-support-base:all deinstall' | /usr/bin/dpkg --set-selections
> echo 'acpid:amd64 deinstall' | /usr/bin/dpkg --set-selections
> echo 'brasero-cdrkit:amd64 deinstall' | /usr/bin/dpkg --set-selections
> echo 'cdrdao:amd64 deinstall' | /usr/bin/dpkg --set-selections
> echo 'dmz-cursor-theme:all deinstall' | /usr/bin/dpkg --set-selections
> echo 'dvdauthor:amd64 deinstall' | /usr/bin/dpkg --set-selections
> echo 'genisoimage:amd64 deinstall' | /usr/bin/dpkg --set-selections
> echo 'growisofs:amd64 deinstall' | /usr/bin/dpkg --set-selections
> echo 'gstreamer1.0-plugins-ugly:amd64 deinstall' | /usr/bin/dpkg
> --set-selections
> echo 'libao4:amd64 deinstall' | /usr/bin/dpkg --set-selections
> echo 'libao-common:amd64 deinstall' | /usr/bin/dpkg --set-selections
> echo 'libfreerdp-plugins-standard:amd64 deinstall' | /usr/bin/dpkg
> --set-selections
> echo 'libopencore-amrnb0:amd64 deinstall' | /usr/bin/dpkg --set-selections
> echo 'libopencore-amrwb0:amd64 deinstall' | /usr/bin/dpkg --set-selections
> echo 'libperl4-corelibs-perl:all deinstall' | /usr/bin/dpkg
> --set-selections
> echo 'libsidplay1v5:amd64 deinstall' | /usr/bin/dpkg --set-selections
> echo 'wodim:amd64 deinstall' | /usr/bin/dpkg --set-selections
> /usr/bin/dpkg --status-fd 9 --no-triggers --force-depends --remove
> acpi-support-base:all acpid:amd64 brasero-cdrkit:amd64 cdrdao:amd64
> dmz-cursor-theme:all dvdauthor:amd64 genisoimage:amd64 growisofs:amd64
> gstreamer1.0-plugins-ugly:amd64 libao4:amd64 libao-common:amd64
> libfreerdp-plugins-standard:amd64 libopencore-amrnb0:amd64
> libopencore-amrwb0:amd64 libperl4-corelibs-perl:all libsidplay1v5:amd64
> wodim:amd64
> /usr/bin/dpkg --status-fd 9 --configure --pending
> Packages were successfully auto-removed
> InstCount=0 DelCount=17 BrokenCount=0
>

Reply via email to