[Bug 2080942] [NEW] latest upgrade breaks unattended-upgrades

Patrick von der Hagen 2080942 at bugs.launchpad.net
Tue Sep 17 10:09:28 UTC 2024


Public bug reported:

The updates relating to the email module remove functionality required
by applications like unattended upgrades. It has been confirmed with
focal and jammy.

I suppose it only affects the status report sent by email and hope
unattended upgrades are still applied, but I didn't confirm this
assumption.

This has been reported to unattended-upgrades as well
(https://bugs.launchpad.net/ubuntu/+source/unattended-
upgrades/+bug/2080940), but I see more of an issue with python3.10,
since I don't expect breaking changes in LTS.


Sep 17 06:05:01 xxx systemd[1]: Starting Daily apt upgrade and clean activities...
Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: Traceback (most recent call last):
Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: File "/usr/bin/unattended-upgrade", line 2005, in main
Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: send_summary_mail(res.pkgs, res.success, res.result_str,
Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: File "/usr/bin/unattended-upgrade", line 1509, in send_summary_mail
Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: ret = _send_mail_using_sendmail(from_email, to_email, subject, body)
Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: File "/usr/bin/unattended-upgrade", line 1408, in _send_mail_using_sendmail
Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: sendmail.stdin.write(msg.as_string())
Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: File "/usr/lib/python3.10/email/message.py", line 151, in as_string
Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: from email.generator import Generator
Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: File "/usr/lib/python3.10/email/generator.py", line 17, in <module>
Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: from email.errors import HeaderWriteError
Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: ImportError: cannot import name 'HeaderWriteError' from 'email.errors' (/usr/lib/python3.10/email/errors.py)

** Affects: python3.10 (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  latest upgrade breaks unattended-upgrades

Status in python3.10 package in Ubuntu:
  New

Bug description:
  The updates relating to the email module remove functionality required
  by applications like unattended upgrades. It has been confirmed with
  focal and jammy.

  I suppose it only affects the status report sent by email and hope
  unattended upgrades are still applied, but I didn't confirm this
  assumption.

  This has been reported to unattended-upgrades as well
  (https://bugs.launchpad.net/ubuntu/+source/unattended-
  upgrades/+bug/2080940), but I see more of an issue with python3.10,
  since I don't expect breaking changes in LTS.


  Sep 17 06:05:01 xxx systemd[1]: Starting Daily apt upgrade and clean activities...
  Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: Traceback (most recent call last):
  Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: File "/usr/bin/unattended-upgrade", line 2005, in main
  Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: send_summary_mail(res.pkgs, res.success, res.result_str,
  Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: File "/usr/bin/unattended-upgrade", line 1509, in send_summary_mail
  Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: ret = _send_mail_using_sendmail(from_email, to_email, subject, body)
  Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: File "/usr/bin/unattended-upgrade", line 1408, in _send_mail_using_sendmail
  Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: sendmail.stdin.write(msg.as_string())
  Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: File "/usr/lib/python3.10/email/message.py", line 151, in as_string
  Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: from email.generator import Generator
  Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: File "/usr/lib/python3.10/email/generator.py", line 17, in <module>
  Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: from email.errors import HeaderWriteError
  Sep 17 06:05:24 xxx apt.systemd.daily[1894012]: ImportError: cannot import name 'HeaderWriteError' from 'email.errors' (/usr/lib/python3.10/email/errors.py)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.10/+bug/2080942/+subscriptions




More information about the foundations-bugs mailing list