Public bug reported:

Since upgrading to Ubuntu 26.04, the unattended-upgrades e-mail report
again contains the dpkg progress indicator, about 22 lines per dpkg run:

  Package installation log:
  Log started: 2026-11-12  06:35:17
  (Reading database…
  (Reading database… 5%
  (Reading database… 10%
  ...
  (Reading database… 100%

This is a regression of LP: #1599646.

Cause:
dpkg 1.23 ships an "en" message catalog
(/usr/share/locale/en/LC_MESSAGES/dpkg.mo) that translates

  msgid  "(Reading database ... "
  msgstr "(Reading database… "

i.e. it uses U+2026 HORIZONTAL ELLIPSIS instead of three dots.
The filter in get_dpkg_log_content() in /usr/bin/unattended-upgrade
only matches the ASCII form:

  if re.match(
          "^\\(Reading database \\.\\.\\. ()|([0-9]+%)$",
          line):
      continue

so in an English UTF-8 locale (e.g. LANG=en_US.UTF-8) the progress
lines are no longer filtered. With LANG=C.UTF-8 dpkg prints the ASCII
form and the filter still works.

Steps to reproduce:
1. Ubuntu 26.04 with LANG=en_US.UTF-8 in /etc/default/locale
2. Set Unattended-Upgrade::Mail and have a pending upgrade
3. Run unattended-upgrade (or wait for apt-daily-upgrade.service)
4. The e-mail contains the "(Reading database… NN%" lines

Expected: the progress indicator is filtered out, as fixed in LP:
#1599646.

Upstream report (open, no fix yet):
https://github.com/mvo5/unattended-upgrades/issues/384
It proposes the regex  "\\(Reading database( \\.\\.\\.|…) "

Versions:
unattended-upgrades 2.12ubuntu9
dpkg 1.23.7ubuntu1
apt 3.2.1ubuntu0.1

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: unattended-upgrades 2.12ubuntu9
ProcVersionSignature: Ubuntu 7.0.0-43.43-generic 7.0.14
Uname: Linux 7.0.0-43-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: pass
CloudArchitecture: x86_64
CloudID: none
CloudName: none
CloudPlatform: none
CloudSubPlatform: config
Date: Thu Nov 12 10:56:17 2026
InstallationDate: Installed on 2022-10-23 (1481 days ago)
InstallationMedia: Ubuntu-Server 22.04.1 LTS "Jammy Jellyfish" - Release amd64 
(20220809)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/zsh
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: unattended-upgrades
UpgradeStatus: Upgraded to resolute on 2026-10-25 (18 days ago)

** Affects: unattended-upgrades (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute

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

Title:
  E-mail report contains repeated "Reading database… NN%" lines again
  with dpkg 1.23 (ellipsis character)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/2174056/+subscriptions


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

Reply via email to