Your message dated Sat, 11 Jul 2015 09:50:02 +0000
with message-id <[email protected]>
and subject line Bug#789277: fixed in unattended-upgrades 0.86.2
has caused the Debian Bug report #789277,
regarding UnicodeEncodeError: 'ascii' codec can't encode character...
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
789277: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789277
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: unattended-upgrades
Version: 0.83.3.1
Severity: important

I got this in my cron job email when running the first time:

--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.4/logging/__init__.py", line 980, in emit
    stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character '\xa0' in position 68: 
ordinal not in range(128)
Call stack:
  File "/usr/bin/unattended-upgrade", line 1321, in <module>
    main(options)
  File "/usr/bin/unattended-upgrade", line 1045, in main
    " ".join(blacklisted_pkgs))
Message: 'Paquets initialement sur la liste noire\xa0: %s'
Arguments: ('',)
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.4/logging/__init__.py", line 980, in emit
    stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 30: 
ordinal not in range(128)
Call stack:
  File "/usr/bin/unattended-upgrade", line 1321, in <module>
    main(options)
  File "/usr/bin/unattended-upgrade", line 1052, in main
    logging.info(_("Starting unattended upgrades script"))
Message: 'D\xe9marrage du script de mise \xe0 niveau automatique'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.4/logging/__init__.py", line 980, in emit
    stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character '\xa0' in position 55: 
ordinal not in range(128)
Call stack:
  File "/usr/bin/unattended-upgrade", line 1321, in <module>
    main(options)
  File "/usr/bin/unattended-upgrade", line 1055, in main
    logging.info(_("Allowed origins are: %s") % allowed_origins)
Message: "Les origines permises sont\xa0: 
['origin=Debian,codename=jessie,label=Debian-Security']"
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.4/logging/__init__.py", line 980, in emit
    stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe0' in position 42: 
ordinal not in range(128)
Call stack:
  File "/usr/bin/unattended-upgrade", line 1321, in <module>
    main(options)
  File "/usr/bin/unattended-upgrade", line 1225, in main
    logging.info(_("No packages found that can be upgraded unattended"))
Message: 'Aucun paquet \xe0 mettre \xe0 niveau automatiquement'
Arguments: ()

Classic Python encoding problem... Solution:

https://stackoverflow.com/questions/492483/setting-the-correct-encoding-when-piping-stdout-in-python

Workaround, reduce the verbosity:

Unattended-Upgrade::MailOnlyOnError "true";

or disable emails completely:

Unattended-Upgrade::Mail "";

Another workaround would be to disable translations by changing the
default locale.

a.

-- System Information:
Debian Release: 8.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages unattended-upgrades depends on:
ii  apt                    1.0.9.8
ii  apt-utils              1.0.9.8
ii  debconf [debconf-2.0]  1.5.56
ii  init-system-helpers    1.22
ii  lsb-base               4.1+Debian13+nmu1
ii  lsb-release            4.1+Debian13+nmu1
ii  python3                3.4.2-2
ii  python3-apt            0.9.3.11
ii  ucf                    3.0030
ii  xz-utils               5.1.1alpha+20120614-2+b3

unattended-upgrades recommends no packages.

Versions of packages unattended-upgrades suggests:
ii  bsd-mailx                       8.1.2-0.20141216cvs-2
ii  postfix [mail-transport-agent]  2.11.3-1

-- Configuration Files:
/etc/apt/apt.conf.d/50unattended-upgrades changed:
// Unattended-Upgrade::Origins-Pattern controls which packages are
// upgraded.
//
// Lines below have the format format is "keyword=value,...".  A
// package will be upgraded only if the values in its metadata match
// all the supplied keywords in a line.  (In other words, omitted
// keywords are wild cards.) The keywords originate from the Release
// file, but several aliases are accepted.  The accepted keywords are:
//   a,archive,suite (eg, "stable")
//   c,component     (eg, "main", "crontrib", "non-free")
//   l,label         (eg, "Debian", "Debian-Security")
//   o,origin        (eg, "Debian", "Unofficial Multimedia Packages")
//   n,codename      (eg, "jessie", "jessie-updates")
//     site          (eg, "http.debian.net")
// The available values on the system are printed by the command
// "apt-cache policy", and can be debugged by running
// "unattended-upgrades -d" and looking at the log file.
//
// Within lines unattended-upgrades allows 2 macros whose values are
// derived from /etc/debian_version:
//   ${distro_id}            Installed origin.
//   ${distro_codename}      Installed codename (eg, "jessie")
Unattended-Upgrade::Origins-Pattern {
        // Codename based matching:
        // This will follow the migration of a release through different
        // archives (e.g. from testing to stable and later oldstable).
//      "o=Debian,n=jessie";
//      "o=Debian,n=jessie-updates";
//      "o=Debian,n=jessie-proposed-updates";
//      "o=Debian,n=jessie,l=Debian-Security";
        // Archive or Suite based matching:
        // Note that this will silently match a different release after
        // migration to the specified archive (e.g. testing becomes the
        // new stable).
//      "o=Debian,a=stable";
//      "o=Debian,a=stable-updates";
//      "o=Debian,a=proposed-updates";
        "origin=Debian,codename=${distro_codename},label=Debian-Security";
};
// List of packages to not update (regexp are supported)
Unattended-Upgrade::Package-Blacklist {
//      "vim";
//      "libc6";
//      "libc6-dev";
//      "libc6-i686";
};
// This option allows you to control if on a unclean dpkg exit
// unattended-upgrades will automatically run 
//   dpkg --force-confold --configure -a
// The default is true, to ensure updates keep getting installed
//Unattended-Upgrade::AutoFixInterruptedDpkg "false";
// Split the upgrade into the smallest possible chunks so that
// they can be interrupted with SIGUSR1. This makes the upgrade
// a bit slower but it has the benefit that shutdown while a upgrade
// is running is possible (with a small delay)
//Unattended-Upgrade::MinimalSteps "true";
// Install all unattended-upgrades when the machine is shuting down
// instead of doing it in the background while the machine is running
// This will (obviously) make shutdown slower
//Unattended-Upgrade::InstallOnShutdown "true";
// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. A package that provides
// 'mailx' must be installed. E.g. "[email protected]"
//Unattended-Upgrade::Mail "root";
// Set this value to "true" to get emails only on errors. Default
// is to always send a mail if Unattended-Upgrade::Mail is set
//Unattended-Upgrade::MailOnlyOnError "true";
// Do automatic removal of new unused dependencies after the upgrade
// (equivalent to apt-get autoremove)
//Unattended-Upgrade::Remove-Unused-Dependencies "false";
// Automatically reboot *WITHOUT CONFIRMATION* if
//  the file /var/run/reboot-required is found after the upgrade 
//Unattended-Upgrade::Automatic-Reboot "false";
// If automatic reboot is enabled and needed, reboot at the specific
// time instead of immediately
//  Default: "now"
//Unattended-Upgrade::Automatic-Reboot-Time "02:00";
// Use apt bandwidth limit feature, this example limits the download
// speed to 70kb/sec
//Acquire::http::Dl-Limit "70";


-- debconf information:
* unattended-upgrades/enable_auto_updates: true

--- End Message ---
--- Begin Message ---
Source: unattended-upgrades
Source-Version: 0.86.2

We believe that the bug you reported is fixed in the latest version of
unattended-upgrades, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Vogt <[email protected]> (supplier of updated unattended-upgrades 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 11 Jul 2015 11:18:44 +0200
Source: unattended-upgrades
Binary: unattended-upgrades
Architecture: source all
Version: 0.86.2
Distribution: unstable
Urgency: medium
Maintainer: Michael Vogt <[email protected]>
Changed-By: Michael Vogt <[email protected]>
Description:
 unattended-upgrades - automatic installation of security upgrades
Closes: 789277
Changes:
 unattended-upgrades (0.86.2) unstable; urgency=medium
 .
   [ Antoine Beaupré ]
   * display translations in proper locale
   * use logging arguments instead of formatting everywhere
     (closes: #789277)
 .
   [ Alexandre Detiste ]
   * auto-remove: don't print a message with empty list of pkg
Checksums-Sha1:
 65d0af07ec409bdf6d8b3e406086e99327375674 1774 unattended-upgrades_0.86.2.dsc
 0a31be49bedff568f018c1eec137d67c52751818 82348 
unattended-upgrades_0.86.2.tar.xz
 80042e89d45dd786d60f464943dc9a8605e2609f 54446 
unattended-upgrades_0.86.2_all.deb
Checksums-Sha256:
 901d113aaf7c81548c0920ca69b1748c504aca53ad28f8fb1d3742d5e2654eb8 1774 
unattended-upgrades_0.86.2.dsc
 3795d8c11aeff45e6712d6565b33b34dcfb97c273928be19cde9fa5b5fad9873 82348 
unattended-upgrades_0.86.2.tar.xz
 31b75b0004be57d08d0a3cd5697ecee58ad2883334878ab004904e12fe7f8d6a 54446 
unattended-upgrades_0.86.2_all.deb
Files:
 5525e26ec4faa5091394765d92b40357 1774 admin optional 
unattended-upgrades_0.86.2.dsc
 a645a506475c1166924f74cfa8e53719 82348 admin optional 
unattended-upgrades_0.86.2.tar.xz
 64323aeb9283239e0258e7d8bb5f3f7a 54446 admin optional 
unattended-upgrades_0.86.2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJVoOLhAAoJEJjKuzq9TKWeCTcQAJ+DPk6TzV7tTdGt5wlxYpbN
u7ZlzuboXvbeclJqi8e+4STm6S3JYL/Ptrw5KTEY4LTo3eJnHIszI96bkTE1udbl
VS7YYuEOztojRRHCplu2vxLlh3Hp5QAOIsCvGXpHz5oONqsSfI/mhSwyiqCEjLeF
ObNa/QRDY8qJytqRqeaTMgFK0VF8tBn5VkyzweGxeKpEQkIkIP3qMVwLo7+GALOo
bmxSEMlKYBwiYjMQXkBShRL8Lyf5w6jHG+hOOgOvx25X8ThB3kTDnYN8Fw8mXevw
QTaEjT1ypH+NC++TUuCVZCDai1RY2jx1WIa6v9l76lHT5TZqpzn/NSqGI5s1hjke
h617RFVBvhh2iecDLk6q4yp1D3uJZd+mNy6FgnFZDFYT/dacpKIZi/Lkr/pw8q2y
DlLDNn11QsPOW3yaGxw7dYZ2q48ldBNAessTnhjGFJ4gbwH3dWxD3KjZtcETzkIs
bPDwCaBawE86fzc3qToBQYBGA5t58K6gYnignH41Kisv1joln3NYmaGJuAlWshNk
M4hn2FA00kT+s9TzXMkac0LKvDhL/o+RHW3u/9oJLf075w/1wr/2cBu2cdHyRNMw
IENnIEZhx78YQlDAaGneGHf7IAD9mCaeIHYelT062acpB2EDfceor4Zc580OU+zE
A8AyEhcSW81q4CqpvhR0
=YSc6
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to