UnicodeDecodeError with xenial on custom package-installs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
diskimage-builder |
New
|
Undecided
|
Unassigned |
Bug Description
Was using disk-image-create command to build a Ubuntu 16.04 (Xenial) image with custom elements containing "chrony" package. It failed with below exception. Ubuntu 16.04 is installed with python3 as default so I guess somewhere within package-installs-v2 is not handling the UTF8<>ascii conversion very well. But to be honest I am not a developer so any pointer or suggestions to address or get around this would be greatly appreciated. Thanks!
+++++++
> Setting up chrony (2.1.1-1) ...
Traceback (most recent call last):
File "/usr/local/
main()
File "/usr/local/
process_
File "/usr/local/
for line in iter(proc.
File "/usr/lib/
return codecs.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 59: ordinal not in range(128)
+++++++
I don't have a proper fix to suggest. I however managed to workaround the issue by exporting the following environment variables in a custom DIB element:
# foobar/ environment. d/00-locale
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8