Bug#956339: unattended-upgrades: regression: packages with conffile prompts are no longer skipped, leading to upgrade failures

2020-04-12 Thread Paul Wise
On Sat, 2020-04-11 at 09:54 +0800, Paul Wise wrote:

> Actually it looks like this is not fixed after all.

In addition to the bug not being fixed, today I got a false positive on
the message that a package needs a conffile prompt. The package got
upgraded successfully and didn't fail due to a prompt, but also the u-u 
log said that it needs to be upgraded manually even though it doesn't.

Subject:[package on hold] unattended-upgrades result for host: FAILURE

Unattended upgrade result: All upgrades installed

Packages that attempted to upgrade:
 ...
 ... mono-runtime-common ...
...
Preparing to unpack .../mono-runtime-common_6.8.0.105+dfsg-3_amd64.deb
...
Unpacking mono-runtime-common (6.8.0.105+dfsg-3) over (6.8.0.105+dfsg-
2) ...
...
Setting up mono-runtime-common (6.8.0.105+dfsg-3) ...
...
Package mono-runtime-common has conffile prompt and needs to be upgraded 
manually
Packages that will be upgraded: ... mono-runtime-common ...

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Bug#956339: unattended-upgrades: regression: packages with conffile prompts are no longer skipped, leading to upgrade failures

2020-04-10 Thread Paul Wise
Control: reopen -1

On Fri, 2020-04-10 at 21:28 +0800, Paul Wise wrote:

> I've tested this by downgrading popularity-contest using snapshot.d.o,
> adding changes to a conffile and then running u-u. The result is that I
> get this in the report, so it looks fixed again:

Actually it looks like this is not fixed after all. This time I got
both the popularity-contest upgrade failure due to conffile prompt and
the message that popularity-contest needs to be upgraded manually:

Subject:[package on hold] unattended-upgrades result for host: FAILURE

Unattended upgrade result: All upgrades installed

Packages that attempted to upgrade:
 ... popularity-contest ...

...

Log started: 2020-04-11  09:31:17
apt-listchanges: Reading changelogs...
Preconfiguring packages ...
apt-listchanges: Reading changelogs...
Preconfiguring packages ...
Preparing to unpack .../popularity-contest_1.70_all.deb ...
Unpacking popularity-contest (1.70) over (1.69) ...
Setting up popularity-contest (1.70) ...

Configuration file '/etc/cron.daily/popularity-contest'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
Y or I  : install the package maintainer's version
N or O  : keep your currently-installed version
  D : show the differences between the versions
  Z : start a shell to examine the situation
 The default action is to keep your current version.
*** popularity-contest (Y/I/N/O/D/Z) [default=N] ? dpkg: error
processing package popularity-contest (--configure):
 end of file on stdin at conffile prompt
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
 popularity-contest
Log ended: 2020-04-11  09:31:50

...

Unattended-upgrades log:
Starting unattended upgrades script
Allowed origins are: origin=Debian,codename=bullseye,label=Debian, 
origin=Debian,codename=bullseye,label=Debian-Security, 
origin=Debian,codename=bullseye-security,label=Debian-Security, origin=Debian
Initial blacklist: 
Initial whitelist (not strict): 
Package popularity-contest has conffile prompt and needs to be upgraded manually
Packages that will be upgraded: ... popularity-contest ...
Writing dpkg log to /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
Installing the upgrades failed!
error message: installArchives() failed
dpkg returned a error! See 
/var/log/unattended-upgrades/unattended-upgrades-dpkg.log for details

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Bug#956339: unattended-upgrades: regression: packages with conffile prompts are no longer skipped, leading to upgrade failures

2020-04-10 Thread Bálint Réczey
Control: tags -1 moreinfo

Hi Paul,

Paul Wise  ezt írta (időpont: 2020. ápr. 10., P, 7:39):
>
> Package: unattended-upgrades
> Version: 2.1
> Severity: serious
>
> Today I noticed that packages with conffile prompts are no longer
> skipped, which can lead to upgrade failures because dpkg stdin is not
> connected to any terminal. I think this is a regression since the work
> to enable pinning to work with unattended-upgrades.
>
> Package installation log:
> Log started: 2020-04-10  13:09:11
> apt-listchanges: Reading changelogs...
> apt-listchanges: Mailing root: apt-listchanges: changelogs for chianamo
> apt-listchanges: Reading changelogs...
> Preparing to unpack .../sgml-base_1.30_all.deb ...
> Unpacking sgml-base (1.30) over (1.29.1) ...
> Setting up popularity-contest (1.70) ...
>
> Configuration file '/etc/cron.daily/popularity-contest'
>  ==> Modified (by you or by a script) since installation.
>  ==> Package distributor has shipped an updated version.
>What would you like to do about it ?  Your options are:
> Y or I  : install the package maintainer's version
> N or O  : keep your currently-installed version
>   D : show the differences between the versions
>   Z : start a shell to examine the situation
>  The default action is to keep your current version.
> *** popularity-contest (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing 
> package popularity-contest (--configure):
>  end of file on stdin at conffile prompt
> Errors were encountered while processing:
>  popularity-contest

Thanks for the bug report!
I may have already fixed the the issue with the fix for LP: #1871639.
Could you please monitor if the problem shows up with 2.2, too?

Thanks,
Balint



Bug#956339: unattended-upgrades: regression: packages with conffile prompts are no longer skipped, leading to upgrade failures

2020-04-09 Thread Paul Wise
Package: unattended-upgrades
Version: 2.1
Severity: serious

Today I noticed that packages with conffile prompts are no longer
skipped, which can lead to upgrade failures because dpkg stdin is not
connected to any terminal. I think this is a regression since the work
to enable pinning to work with unattended-upgrades.

Package installation log:
Log started: 2020-04-10  13:09:11
apt-listchanges: Reading changelogs...
apt-listchanges: Mailing root: apt-listchanges: changelogs for chianamo
apt-listchanges: Reading changelogs...
Preparing to unpack .../sgml-base_1.30_all.deb ...
Unpacking sgml-base (1.30) over (1.29.1) ...
Setting up popularity-contest (1.70) ...

Configuration file '/etc/cron.daily/popularity-contest'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
Y or I  : install the package maintainer's version
N or O  : keep your currently-installed version
  D : show the differences between the versions
  Z : start a shell to examine the situation
 The default action is to keep your current version.
*** popularity-contest (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing 
package popularity-contest (--configure):
 end of file on stdin at conffile prompt
Errors were encountered while processing:
 popularity-contest
-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 
'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 
'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-4-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU:en 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages unattended-upgrades depends on:
ii  debconf [debconf-2.0]  1.5.73
ii  lsb-base   11.1.0
ii  lsb-release11.1.0
ii  python33.8.2-2
ii  python3-apt1.9.10
ii  python3-dbus   1.2.16-1
ii  python3-distro-info0.23
ii  ucf3.0038+nmu1
ii  xz-utils   5.2.4-1+b1

Versions of packages unattended-upgrades recommends:
ii  anacron 2.3-29
ii  cron [cron-daemon]  3.0pl1-136
ii  systemd-sysv244.3-1

Versions of packages unattended-upgrades suggests:
ii  bsd-mailx  8.1.2-0.20180807cvs-1+b1
ii  exim4-daemon-light [mail-transport-agent]  4.93-13
ii  needrestart3.5-1
ii  powermgmt-base 1.36
ii  python3-gi 3.36.0-1

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part