Bug #11625
zoneadm install fails: UnicodeEncodeError: 'ascii' codec can't encode character '\u0151' in position 68: ordinal not in range(128)
0%
Description
I was trying to install a zone when it failed:
(597) x230:/root# zoneadm -z jenkins install Sanity Check: Looking for 'entire' incorporation. Image: Preparing at /export/zones/jenkins/root. Publisher: Using openindiana.org (http://pkg.openindiana.org/hipster/). Publisher: Using hipster-encumbered (http://pkg.openindiana.org/hipster-encumbered/). Publisher: Using localhostoih (http://sfe.opencsw.org/localhostoih/). Cache: Using /var/pkg/publisher. Installing: Packages (output follows) Packages to install: 228 Mediators to change: 6 Services to change: 12 DOWNLOAD PKGS FILES XFER (MB) SPEED Completed 228/228 42617/42617 363.2/363.2 -- PHASE ITEMS Installing new actions 40040/61752Action install failed for 'etc/certs/CA/NetLock_Arany_(Class_Gold)_F\u0151tan\xfas\xedtv\xe1ny.pem' (pkg://openindiana.org/crypto/ca-certificates): UnicodeEncodeError: 'ascii' codec can't encode character '\u0151' in position 68: ordinal not in range(128) pkg: An unexpected error happened during install: 'ascii' codec can't encode character '\u0151' in position 68: ordinal not in range(128) ERROR: failed to install package
It is probably an issue from the pkg python3 migration:
11:55 < Agnar> hey...somehow I lost this channel 11:55 < Agnar> I got an error on hipster (recent): 11:55 < Agnar> Installing new actions 12393/61752Action install failed for 'etc/certs/CA/NetLock_Arany_(Class_Gold)_F\u0151tan\xfas\xedtv\xe1ny.pem' (pkg://openindiana.org/crypto/ca-certificates): UnicodeEncodeError: 'ascii' codec can't encode character '\u0151' in position 68: ordinal not in range(128) 11:56 < Agnar> I tried to install a new zone 12:17 < mnowak_> Agnar, hi, that's a result of move to Python 3 pkg. maybe rebuild of ca-certificates helps? 12:18 < Agnar> mnowak_: probably, but that's nothing I can do :) 12:19 < mnowak_> you can at least file a bug 12:21 < Agnar> of course, that's what I will do
Related issues
Updated by John Levon over 1 year ago
I hit a similar problem doing a distro-const build, worked around by using a UTF-8 locale
instead of 'C'
Updated by Michal Nowak over 1 year ago
Here's a workaround for crypto/ca-certificates
: https://github.com/OpenIndiana/oi-userland/pull/5272.
Updated by Michal Nowak over 1 year ago
Michal Nowak wrote:
Here's a workaround for
crypto/ca-certificates
: https://github.com/OpenIndiana/oi-userland/pull/5272.
The workaround is in. Can someone try to install zone? Hopefully this was the only package with non-ASCII file names, otherwise the installation should give us the next candidate for workaround.
Updated by Olaf Bohlen over 1 year ago
- Status changed from New to Closed
(534) x230:/root# zoneadm -z jenkins install
A ZFS file system has been created for this zone.
Sanity Check: Looking for 'entire' incorporation.
Image: Preparing at /export/zones/jenkins/root.
Publisher: Using openindiana.org (http://pkg.openindiana.org/hipster/).
Publisher: Using hipster-encumbered (http://pkg.openindiana.org/hipster-encumbered/).
Publisher: Using localhostoih (http://sfe.opencsw.org/localhostoih/).
Cache: Using /var/pkg/publisher.
Installing: Packages (output follows)
Packages to install: 227
Mediators to change: 6
Services to change: 9
DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 227/227 42618/42618 369.1/369.1 756k/s
PHASE ITEMS
Installing new actions 61732/61732
Updating package state database Done
Updating package cache 0/0
Updating image state Done
Creating fast lookup database Done
Postinstall: Copying SMF seed repository ... done.
Done: Installation completed in 210.775 seconds.
Next Steps: Boot the zone, then log into the zone console (zlogin -C)
to complete the configuration process.
(535) x230:/root#
solved, thanks!
Updated by Michal Nowak over 1 year ago
- Copied to Bug #11636: pkg: UnicodeEncodeError: 'ascii' codec can't encode character '\u0151' in position 68: ordinal not in range(128) added
Updated by Michal Nowak about 1 year ago
I noticed that non-ASCII characters slipped in via golang-112
and golang-113
packages:
usr/lib/golang/1.12/test/fixedbugs/issue27836.dir/Äfoo.go usr/lib/golang/1.12/test/fixedbugs/issue27836.dir/Ämain.go usr/lib/golang/1.13/test/fixedbugs/issue27836.dir/Äfoo.go usr/lib/golang/1.13/test/fixedbugs/issue27836.dir/Ämain.go
But this time, with en_US.UTF-8
locales, I was able to install them with Python 3.5 pkg
.