pro status fails with utf-8 decode error

Bug #2069739 reported by Jean-Baptiste Lallement
10
This bug affects 1 person
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="fr_FR"
LC_MEASUREMENT="fr_FR"
LC_IDENTIFICATION="fr_FR"
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/.cache/ubuntu-pro/ubuntu-pro.log
If you think this is a bug, please run: ubuntu-bug ubuntu-advantage-tools

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: ubuntu-advantage-tools (not installed)
Uname: Linux 5.15.153.1-microsoft-standard-WSL2 x86_64
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: unknown
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-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: ubuntu-advantage-tools
UpgradeStatus: No upgrade log present (probably fresh install)
apparmor_logs.txt:

cloud-id.txt: wsl
jobs-status.json: {"metering": null, "update_contract_info": null, "update_messaging": {"last_run": "2024-06-18T12:25:32.496583+00:00", "next_run": "2024-06-18T18:25:32.496583+00:00"}}
livepatch-status.txt-error: Invalid command specified '/snap/bin/canonical-livepatch status'.
uaclient.conf:
 contract_url: https://contracts.canonical.com
 log_level: debug

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
tags: added: wsl
information type: Private → Public
tags: removed: need-amd64-retrace
Revision history for this message
Grant Orndorff (orndorffgrant) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.