2018-11-30 16:22:13 |
errors.ubuntu.com bug bridge |
bug |
|
|
added bug |
2018-11-30 16:22:14 |
errors.ubuntu.com bug bridge |
bug |
|
|
added subscriber Balint Reczey |
2018-11-30 17:22:27 |
Balint Reczey |
summary |
/usr/bin/unattended-upgrade:UnicodeEncodeError:/usr/bin/unattended-upgrade@1983:parse_args:_process_args:_process_long_opt:process:take_action:print_help |
unattended-upgrade --help raises UnicodeEncodeError when stdout encoding is ascii |
|
2018-11-30 17:32:03 |
Balint Reczey |
description |
The Ubuntu Error Tracker has been receiving reports about a problem regarding unattended-upgrades. This problem was most recently seen with package version 1.1ubuntu1.18.04.6, the problem page at https://errors.ubuntu.com/problem/b3e3265e302351558260f54ae37c7b4c193dfc95 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/. |
[Test Case]
rbalint@yogi:~$ lxc launch ubuntu:18.04 bb-lp-1806076
Creating bb-lp-1806076
Starting bb-lp-1806076
rbalint@yogi:~$ lxc shell bb-lp-1806076
mesg: ttyname failed: No such device
root@bb-lp-1806076:~# apt install -yqq language-pack-ru-base
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
language-pack-ru
The following NEW packages will be installed:
language-pack-ru language-pack-ru-base
0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
Need to get 2310 kB of archives.
After this operation, 11.8 MB of additional disk space will be used.
Selecting previously unselected package language-pack-ru-base.
(Reading database ... 28536 files and directories currently installed.)
Preparing to unpack .../language-pack-ru-base_1%3a18.04+20180712_all.deb ...
Unpacking language-pack-ru-base (1:18.04+20180712) ...
Selecting previously unselected package language-pack-ru.
Preparing to unpack .../language-pack-ru_1%3a18.04+20180712_all.deb ...
Unpacking language-pack-ru (1:18.04+20180712) ...
Setting up language-pack-ru (1:18.04+20180712) ...
Setting up language-pack-ru-base (1:18.04+20180712) ...
Generating locales (this might take a while)...
ru_RU.UTF-8... done
ru_UA.UTF-8... done
Generation complete.
root@bb-lp-1806076:~# env LANG=ru_RU unattended-upgrade --help | cat
Traceback (most recent call last):
File "/usr/bin/unattended-upgrade", line 1983, in <module>
(options, args) = parser.parse_args() # type: ignore
File "/usr/lib/python3.6/optparse.py", line 1387, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python3.6/optparse.py", line 1427, in _process_args
self._process_long_opt(rargs, values)
File "/usr/lib/python3.6/optparse.py", line 1501, in _process_long_opt
option.process(opt, value, values, self)
File "/usr/lib/python3.6/optparse.py", line 785, in process
self.action, self.dest, opt, value, values, parser)
File "/usr/lib/python3.6/optparse.py", line 807, in take_action
parser.print_help()
File "/usr/lib/python3.6/optparse.py", line 1647, in print_help
file.write(self.format_help())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 126-133: ordinal not in range(128)
root@bb-lp-1806076:~# env LANG=ru_RU.UTF-8 unattended-upgrade --help | cat
Usage: unattended-upgrade [options]
Options:
-h, --help show this help message and exit
-d, --debug print debug messages
--apt-debug make apt/libapt print verbose debug messages
-v, --verbose print info messages
--dry-run Simulation, download but do not install
--download-only Only download, do not even try to install.
--minimal-upgrade-steps
Upgrade in minimal steps (and allow interrupting with
SIGTERM
[Original Bug Text]
The Ubuntu Error Tracker has been receiving reports about a problem regarding unattended-upgrades. This problem was most recently seen with package version 1.1ubuntu1.18.04.6, the problem page at https://errors.ubuntu.com/problem/b3e3265e302351558260f54ae37c7b4c193dfc95 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/. |
|
2018-11-30 17:33:07 |
Balint Reczey |
bug task added |
|
apt (Ubuntu) |
|
2018-11-30 17:36:43 |
Balint Reczey |
tags |
bionic |
bionic patch-forwarded-debian |
|
2018-11-30 17:36:53 |
Balint Reczey |
tags |
bionic patch-forwarded-debian |
bionic patch patch-forwarded-debian |
|
2018-12-12 15:29:18 |
Balint Reczey |
description |
[Test Case]
rbalint@yogi:~$ lxc launch ubuntu:18.04 bb-lp-1806076
Creating bb-lp-1806076
Starting bb-lp-1806076
rbalint@yogi:~$ lxc shell bb-lp-1806076
mesg: ttyname failed: No such device
root@bb-lp-1806076:~# apt install -yqq language-pack-ru-base
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
language-pack-ru
The following NEW packages will be installed:
language-pack-ru language-pack-ru-base
0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
Need to get 2310 kB of archives.
After this operation, 11.8 MB of additional disk space will be used.
Selecting previously unselected package language-pack-ru-base.
(Reading database ... 28536 files and directories currently installed.)
Preparing to unpack .../language-pack-ru-base_1%3a18.04+20180712_all.deb ...
Unpacking language-pack-ru-base (1:18.04+20180712) ...
Selecting previously unselected package language-pack-ru.
Preparing to unpack .../language-pack-ru_1%3a18.04+20180712_all.deb ...
Unpacking language-pack-ru (1:18.04+20180712) ...
Setting up language-pack-ru (1:18.04+20180712) ...
Setting up language-pack-ru-base (1:18.04+20180712) ...
Generating locales (this might take a while)...
ru_RU.UTF-8... done
ru_UA.UTF-8... done
Generation complete.
root@bb-lp-1806076:~# env LANG=ru_RU unattended-upgrade --help | cat
Traceback (most recent call last):
File "/usr/bin/unattended-upgrade", line 1983, in <module>
(options, args) = parser.parse_args() # type: ignore
File "/usr/lib/python3.6/optparse.py", line 1387, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python3.6/optparse.py", line 1427, in _process_args
self._process_long_opt(rargs, values)
File "/usr/lib/python3.6/optparse.py", line 1501, in _process_long_opt
option.process(opt, value, values, self)
File "/usr/lib/python3.6/optparse.py", line 785, in process
self.action, self.dest, opt, value, values, parser)
File "/usr/lib/python3.6/optparse.py", line 807, in take_action
parser.print_help()
File "/usr/lib/python3.6/optparse.py", line 1647, in print_help
file.write(self.format_help())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 126-133: ordinal not in range(128)
root@bb-lp-1806076:~# env LANG=ru_RU.UTF-8 unattended-upgrade --help | cat
Usage: unattended-upgrade [options]
Options:
-h, --help show this help message and exit
-d, --debug print debug messages
--apt-debug make apt/libapt print verbose debug messages
-v, --verbose print info messages
--dry-run Simulation, download but do not install
--download-only Only download, do not even try to install.
--minimal-upgrade-steps
Upgrade in minimal steps (and allow interrupting with
SIGTERM
[Original Bug Text]
The Ubuntu Error Tracker has been receiving reports about a problem regarding unattended-upgrades. This problem was most recently seen with package version 1.1ubuntu1.18.04.6, the problem page at https://errors.ubuntu.com/problem/b3e3265e302351558260f54ae37c7b4c193dfc95 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/. |
[Test Case]
rbalint@yogi:~$ lxc launch ubuntu:18.04 bb-lp-1806076
Creating bb-lp-1806076
Starting bb-lp-1806076
rbalint@yogi:~$ lxc shell bb-lp-1806076
mesg: ttyname failed: No such device
root@bb-lp-1806076:~# apt install -yqq language-pack-ru-base
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
language-pack-ru
The following NEW packages will be installed:
language-pack-ru language-pack-ru-base
0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
Need to get 2310 kB of archives.
After this operation, 11.8 MB of additional disk space will be used.
Selecting previously unselected package language-pack-ru-base.
(Reading database ... 28536 files and directories currently installed.)
Preparing to unpack .../language-pack-ru-base_1%3a18.04+20180712_all.deb ...
Unpacking language-pack-ru-base (1:18.04+20180712) ...
Selecting previously unselected package language-pack-ru.
Preparing to unpack .../language-pack-ru_1%3a18.04+20180712_all.deb ...
Unpacking language-pack-ru (1:18.04+20180712) ...
Setting up language-pack-ru (1:18.04+20180712) ...
Setting up language-pack-ru-base (1:18.04+20180712) ...
Generating locales (this might take a while)...
ru_RU.UTF-8... done
ru_UA.UTF-8... done
Generation complete.
root@bb-lp-1806076:~# env LANG=ru_RU unattended-upgrade --help | cat
Traceback (most recent call last):
File "/usr/bin/unattended-upgrade", line 1983, in <module>
(options, args) = parser.parse_args() # type: ignore
File "/usr/lib/python3.6/optparse.py", line 1387, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python3.6/optparse.py", line 1427, in _process_args
self._process_long_opt(rargs, values)
File "/usr/lib/python3.6/optparse.py", line 1501, in _process_long_opt
option.process(opt, value, values, self)
File "/usr/lib/python3.6/optparse.py", line 785, in process
self.action, self.dest, opt, value, values, parser)
File "/usr/lib/python3.6/optparse.py", line 807, in take_action
parser.print_help()
File "/usr/lib/python3.6/optparse.py", line 1647, in print_help
file.write(self.format_help())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 126-133: ordinal not in range(128)
root@bb-lp-1806076:~# env LANG=ru_RU.UTF-8 unattended-upgrade --help | cat
Usage: unattended-upgrade [options]
Options:
-h, --help show this help message and exit
-d, --debug print debug messages
--apt-debug make apt/libapt print verbose debug messages
-v, --verbose print info messages
--dry-run Simulation, download but do not install
--download-only Only download, do not even try to install.
--minimal-upgrade-steps
Upgrade in minimal steps (and allow interrupting with
SIGTERM
[Original Bug Text]
The Ubuntu Error Tracker has been receiving reports about a problem regarding unattended-upgrades. This problem was most recently seen with package version 1.1ubuntu1.18.04.6, the problem page at https://errors.ubuntu.com/problem/b3e3265e302351558260f54ae37c7b4c193dfc95 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.
Also seen in:
* https://errors.ubuntu.com/problem/936bb1c75c4efe018f968a5773b820bcf52c298a |
|
2018-12-18 14:58:07 |
Julian Andres Klode |
apt (Ubuntu): status |
New |
Fix Committed |
|
2019-01-11 17:56:28 |
Launchpad Janitor |
apt (Ubuntu): status |
Fix Committed |
Fix Released |
|
2019-04-30 20:20:28 |
Balint Reczey |
nominated for series |
|
Ubuntu Bionic |
|
2019-04-30 20:20:28 |
Balint Reczey |
bug task added |
|
apt (Ubuntu Bionic) |
|
2019-04-30 20:20:28 |
Balint Reczey |
bug task added |
|
unattended-upgrades (Ubuntu Bionic) |
|
2019-04-30 20:20:28 |
Balint Reczey |
nominated for series |
|
Ubuntu Xenial |
|
2019-04-30 20:20:28 |
Balint Reczey |
bug task added |
|
apt (Ubuntu Xenial) |
|
2019-04-30 20:20:28 |
Balint Reczey |
bug task added |
|
unattended-upgrades (Ubuntu Xenial) |
|
2020-02-14 14:42:43 |
Balint Reczey |
unattended-upgrades (Ubuntu): status |
New |
Won't Fix |
|
2021-02-18 15:48:51 |
Julian Andres Klode |
apt (Ubuntu Bionic): status |
New |
Triaged |
|
2021-03-11 13:24:06 |
Balint Reczey |
unattended-upgrades (Ubuntu Xenial): status |
New |
Won't Fix |
|
2021-03-11 13:24:09 |
Balint Reczey |
unattended-upgrades (Ubuntu Bionic): status |
New |
Won't Fix |
|
2021-03-11 13:31:03 |
Balint Reczey |
description |
[Test Case]
rbalint@yogi:~$ lxc launch ubuntu:18.04 bb-lp-1806076
Creating bb-lp-1806076
Starting bb-lp-1806076
rbalint@yogi:~$ lxc shell bb-lp-1806076
mesg: ttyname failed: No such device
root@bb-lp-1806076:~# apt install -yqq language-pack-ru-base
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
language-pack-ru
The following NEW packages will be installed:
language-pack-ru language-pack-ru-base
0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
Need to get 2310 kB of archives.
After this operation, 11.8 MB of additional disk space will be used.
Selecting previously unselected package language-pack-ru-base.
(Reading database ... 28536 files and directories currently installed.)
Preparing to unpack .../language-pack-ru-base_1%3a18.04+20180712_all.deb ...
Unpacking language-pack-ru-base (1:18.04+20180712) ...
Selecting previously unselected package language-pack-ru.
Preparing to unpack .../language-pack-ru_1%3a18.04+20180712_all.deb ...
Unpacking language-pack-ru (1:18.04+20180712) ...
Setting up language-pack-ru (1:18.04+20180712) ...
Setting up language-pack-ru-base (1:18.04+20180712) ...
Generating locales (this might take a while)...
ru_RU.UTF-8... done
ru_UA.UTF-8... done
Generation complete.
root@bb-lp-1806076:~# env LANG=ru_RU unattended-upgrade --help | cat
Traceback (most recent call last):
File "/usr/bin/unattended-upgrade", line 1983, in <module>
(options, args) = parser.parse_args() # type: ignore
File "/usr/lib/python3.6/optparse.py", line 1387, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python3.6/optparse.py", line 1427, in _process_args
self._process_long_opt(rargs, values)
File "/usr/lib/python3.6/optparse.py", line 1501, in _process_long_opt
option.process(opt, value, values, self)
File "/usr/lib/python3.6/optparse.py", line 785, in process
self.action, self.dest, opt, value, values, parser)
File "/usr/lib/python3.6/optparse.py", line 807, in take_action
parser.print_help()
File "/usr/lib/python3.6/optparse.py", line 1647, in print_help
file.write(self.format_help())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 126-133: ordinal not in range(128)
root@bb-lp-1806076:~# env LANG=ru_RU.UTF-8 unattended-upgrade --help | cat
Usage: unattended-upgrade [options]
Options:
-h, --help show this help message and exit
-d, --debug print debug messages
--apt-debug make apt/libapt print verbose debug messages
-v, --verbose print info messages
--dry-run Simulation, download but do not install
--download-only Only download, do not even try to install.
--minimal-upgrade-steps
Upgrade in minimal steps (and allow interrupting with
SIGTERM
[Original Bug Text]
The Ubuntu Error Tracker has been receiving reports about a problem regarding unattended-upgrades. This problem was most recently seen with package version 1.1ubuntu1.18.04.6, the problem page at https://errors.ubuntu.com/problem/b3e3265e302351558260f54ae37c7b4c193dfc95 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.
Also seen in:
* https://errors.ubuntu.com/problem/936bb1c75c4efe018f968a5773b820bcf52c298a |
[Impact]
* unattended-upgrades --help crashes in apt.systemd.daily script when locale is not in UTF-8.
[Test Case]
In the fixed case no crash is observed.
rbalint@yogi:~$ lxc launch ubuntu:18.04 bb-lp-1806076
Creating bb-lp-1806076
Starting bb-lp-1806076
rbalint@yogi:~$ lxc shell bb-lp-1806076
mesg: ttyname failed: No such device
root@bb-lp-1806076:~# apt install -yqq language-pack-ru-base
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
language-pack-ru
The following NEW packages will be installed:
language-pack-ru language-pack-ru-base
0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
Need to get 2310 kB of archives.
After this operation, 11.8 MB of additional disk space will be used.
Selecting previously unselected package language-pack-ru-base.
(Reading database ... 28536 files and directories currently installed.)
Preparing to unpack .../language-pack-ru-base_1%3a18.04+20180712_all.deb ...
Unpacking language-pack-ru-base (1:18.04+20180712) ...
Selecting previously unselected package language-pack-ru.
Preparing to unpack .../language-pack-ru_1%3a18.04+20180712_all.deb ...
Unpacking language-pack-ru (1:18.04+20180712) ...
Setting up language-pack-ru (1:18.04+20180712) ...
Setting up language-pack-ru-base (1:18.04+20180712) ...
Generating locales (this might take a while)...
ru_RU.UTF-8... done
ru_UA.UTF-8... done
Generation complete.
root@bb-lp-1806076:~# echo LANG=ru_RU | tee /etc/default/locale
LANG=ru_RU
root@bb-lp-1806076:~#
/usr/lib/apt/apt.systemd.daily update
Traceback (most recent call last):
File "/usr/bin/unattended-upgrade", line 2171, in <module>
(options, args) = parser.parse_args() # type: ignore
File "/usr/lib/python3.6/optparse.py", line 1387, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python3.6/optparse.py", line 1427, in _process_args
self._process_long_opt(rargs, values)
File "/usr/lib/python3.6/optparse.py", line 1501, in _process_long_opt
option.process(opt, value, values, self)
File "/usr/lib/python3.6/optparse.py", line 785, in process
self.action, self.dest, opt, value, values, parser)
File "/usr/lib/python3.6/optparse.py", line 807, in take_action
parser.print_help()
File "/usr/lib/python3.6/optparse.py", line 1647, in print_help
file.write(self.format_help())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 126-133: ordinal not in range(128)
root@bb-lp-1806076:~# echo LANG=ru_RU.UTF-8 | tee /etc/default/locale
LANG=ru_RU.UTF-8
root@bb-lp-1806076:~# /usr/lib/apt/apt.systemd.daily update
root@bb-lp-1806076:~#
[Where problems could occur]
* Nowhere, really. The fix is setting LC_ALL=C.UFT-8 for u-u --help and it is processed by grep then.
[Original Bug Text]
The Ubuntu Error Tracker has been receiving reports about a problem regarding unattended-upgrades. This problem was most recently seen with package version 1.1ubuntu1.18.04.6, the problem page at https://errors.ubuntu.com/problem/b3e3265e302351558260f54ae37c7b4c193dfc95 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.
Also seen in:
* https://errors.ubuntu.com/problem/936bb1c75c4efe018f968a5773b820bcf52c298a |
|
2021-03-25 13:41:37 |
Łukasz Zemczak |
apt (Ubuntu Bionic): status |
Triaged |
Fix Committed |
|
2021-03-25 13:41:38 |
Łukasz Zemczak |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2021-03-25 13:41:40 |
Łukasz Zemczak |
bug |
|
|
added subscriber SRU Verification |
2021-03-25 13:41:44 |
Łukasz Zemczak |
tags |
bionic patch patch-forwarded-debian |
bionic patch patch-forwarded-debian verification-needed verification-needed-bionic |
|
2021-03-30 14:58:48 |
Julian Andres Klode |
tags |
bionic patch patch-forwarded-debian verification-needed verification-needed-bionic |
bionic patch patch-forwarded-debian verification-done verification-done-bionic |
|
2021-03-30 15:00:39 |
Balint Reczey |
description |
[Impact]
* unattended-upgrades --help crashes in apt.systemd.daily script when locale is not in UTF-8.
[Test Case]
In the fixed case no crash is observed.
rbalint@yogi:~$ lxc launch ubuntu:18.04 bb-lp-1806076
Creating bb-lp-1806076
Starting bb-lp-1806076
rbalint@yogi:~$ lxc shell bb-lp-1806076
mesg: ttyname failed: No such device
root@bb-lp-1806076:~# apt install -yqq language-pack-ru-base
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
language-pack-ru
The following NEW packages will be installed:
language-pack-ru language-pack-ru-base
0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
Need to get 2310 kB of archives.
After this operation, 11.8 MB of additional disk space will be used.
Selecting previously unselected package language-pack-ru-base.
(Reading database ... 28536 files and directories currently installed.)
Preparing to unpack .../language-pack-ru-base_1%3a18.04+20180712_all.deb ...
Unpacking language-pack-ru-base (1:18.04+20180712) ...
Selecting previously unselected package language-pack-ru.
Preparing to unpack .../language-pack-ru_1%3a18.04+20180712_all.deb ...
Unpacking language-pack-ru (1:18.04+20180712) ...
Setting up language-pack-ru (1:18.04+20180712) ...
Setting up language-pack-ru-base (1:18.04+20180712) ...
Generating locales (this might take a while)...
ru_RU.UTF-8... done
ru_UA.UTF-8... done
Generation complete.
root@bb-lp-1806076:~# echo LANG=ru_RU | tee /etc/default/locale
LANG=ru_RU
root@bb-lp-1806076:~#
/usr/lib/apt/apt.systemd.daily update
Traceback (most recent call last):
File "/usr/bin/unattended-upgrade", line 2171, in <module>
(options, args) = parser.parse_args() # type: ignore
File "/usr/lib/python3.6/optparse.py", line 1387, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python3.6/optparse.py", line 1427, in _process_args
self._process_long_opt(rargs, values)
File "/usr/lib/python3.6/optparse.py", line 1501, in _process_long_opt
option.process(opt, value, values, self)
File "/usr/lib/python3.6/optparse.py", line 785, in process
self.action, self.dest, opt, value, values, parser)
File "/usr/lib/python3.6/optparse.py", line 807, in take_action
parser.print_help()
File "/usr/lib/python3.6/optparse.py", line 1647, in print_help
file.write(self.format_help())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 126-133: ordinal not in range(128)
root@bb-lp-1806076:~# echo LANG=ru_RU.UTF-8 | tee /etc/default/locale
LANG=ru_RU.UTF-8
root@bb-lp-1806076:~# /usr/lib/apt/apt.systemd.daily update
root@bb-lp-1806076:~#
[Where problems could occur]
* Nowhere, really. The fix is setting LC_ALL=C.UFT-8 for u-u --help and it is processed by grep then.
[Original Bug Text]
The Ubuntu Error Tracker has been receiving reports about a problem regarding unattended-upgrades. This problem was most recently seen with package version 1.1ubuntu1.18.04.6, the problem page at https://errors.ubuntu.com/problem/b3e3265e302351558260f54ae37c7b4c193dfc95 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.
Also seen in:
* https://errors.ubuntu.com/problem/936bb1c75c4efe018f968a5773b820bcf52c298a |
[Impact]
* unattended-upgrades --help crashes in apt.systemd.daily script when locale is not in UTF-8.
[Test Case]
In the fixed case no crash is observed.
rbalint@yogi:~$ lxc launch ubuntu:18.04 bb-lp-1806076
Creating bb-lp-1806076
Starting bb-lp-1806076
rbalint@yogi:~$ lxc shell bb-lp-1806076
mesg: ttyname failed: No such device
root@bb-lp-1806076:~# apt install -yqq language-pack-ru-base
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
language-pack-ru
The following NEW packages will be installed:
language-pack-ru language-pack-ru-base
0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
Need to get 2310 kB of archives.
After this operation, 11.8 MB of additional disk space will be used.
Selecting previously unselected package language-pack-ru-base.
(Reading database ... 28536 files and directories currently installed.)
Preparing to unpack .../language-pack-ru-base_1%3a18.04+20180712_all.deb ...
Unpacking language-pack-ru-base (1:18.04+20180712) ...
Selecting previously unselected package language-pack-ru.
Preparing to unpack .../language-pack-ru_1%3a18.04+20180712_all.deb ...
Unpacking language-pack-ru (1:18.04+20180712) ...
Setting up language-pack-ru (1:18.04+20180712) ...
Setting up language-pack-ru-base (1:18.04+20180712) ...
Generating locales (this might take a while)...
ru_RU.UTF-8... done
ru_UA.UTF-8... done
Generation complete.
root@bb-lp-1806076:~# echo LANG=ru_RU | tee /etc/default/locale
LANG=ru_RU
root@bb-lp-1806076:~#
/usr/lib/apt/apt.systemd.daily update
Traceback (most recent call last):
File "/usr/bin/unattended-upgrade", line 2171, in <module>
(options, args) = parser.parse_args() # type: ignore
File "/usr/lib/python3.6/optparse.py", line 1387, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python3.6/optparse.py", line 1427, in _process_args
self._process_long_opt(rargs, values)
File "/usr/lib/python3.6/optparse.py", line 1501, in _process_long_opt
option.process(opt, value, values, self)
File "/usr/lib/python3.6/optparse.py", line 785, in process
self.action, self.dest, opt, value, values, parser)
File "/usr/lib/python3.6/optparse.py", line 807, in take_action
parser.print_help()
File "/usr/lib/python3.6/optparse.py", line 1647, in print_help
file.write(self.format_help())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 126-133: ordinal not in range(128)
root@bb-lp-1806076:~# echo LANG=ru_RU.UTF-8 | tee /etc/default/locale
LANG=ru_RU.UTF-8
root@bb-lp-1806076:~# /usr/lib/apt/apt.systemd.daily update
root@bb-lp-1806076:~#
[Where problems could occur]
* Nowhere, really. The fix is setting LC_ALL=C.UTF-8 for u-u --help and it is processed by grep then.
[Original Bug Text]
The Ubuntu Error Tracker has been receiving reports about a problem regarding unattended-upgrades. This problem was most recently seen with package version 1.1ubuntu1.18.04.6, the problem page at https://errors.ubuntu.com/problem/b3e3265e302351558260f54ae37c7b4c193dfc95 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.
Also seen in:
* https://errors.ubuntu.com/problem/936bb1c75c4efe018f968a5773b820bcf52c298a |
|
2021-04-07 02:16:58 |
Chris Halse Rogers |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2021-04-07 02:17:59 |
Launchpad Janitor |
apt (Ubuntu Bionic): status |
Fix Committed |
Fix Released |
|