pro status fails with utf-8 decode error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-advantage-tools (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
WSL Ubuntu 24.04 LTS
$ LC_ALL=C apt policy ubuntu-pro-client
ubuntu-pro-client:
Installed: 32.3~24.04
$ locale
LANG=fr_FR
LANGUAGE=
LC_CTYPE="fr_FR"
LC_NUMERIC="fr_FR"
LC_TIME="fr_FR"
LC_COLLATE="fr_FR"
LC_MONETARY="fr_FR"
LC_MESSAGES="fr_FR"
LC_PAPER="fr_FR"
LC_NAME="fr_FR"
LC_ADDRESS="fr_FR"
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
With the locale above (on WSL if it matters) I get the following error:
$ pro status
An unexpected error occurred: 'utf-8' codec can't decode byte 0xa0 in position 18: invalid start byte
For more details, see the log: /home/u/
If you think this is a bug, please run: ubuntu-bug ubuntu-
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: ubuntu-
Uname: Linux 5.15.153.
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckR
CloudArchitecture: x86_64
CloudID: wsl
CloudName: wsl
CloudPlatform: wsl
CloudSubPlatform: unknown
Date: Tue Jun 18 14:37:28 2024
ProcEnviron:
LANG=fr_FR
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
SourcePackage: ubuntu-
UpgradeStatus: No upgrade log present (probably fresh install)
apparmor_logs.txt:
cloud-id.txt: wsl
jobs-status.json: {"metering": null, "update_
livepatch-
uaclient.conf:
contract_url: https:/
log_level: debug
tags: | added: wsl |
information type: | Private → Public |
tags: | removed: need-amd64-retrace |
Thank you for reporting this jibel!
I've reproduced this issue on a lxd-container and the root cause seems to be bug 2060769 so I'm marking this as a duplicate.
This is fixed upstream and will be released in v33 of ubuntu-pro-client, tracked in bug 2069237 and scheduled to be released in late July.