Interesting, the team will later have a deeper look.
But I'm confused as you can see in the following:

---

First confirming the original problem

root@n:~# locale
LANG=C.UTF-8
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=fr_FR
root@n:~# pro status
An unexpected error occurred: 'utf-8' codec can't decode byte 0xe9 in position 
65: invalid continuation byte
For more details, see the log: /var/log/ubuntu-advantage.log
If you think this is a bug, please run: ubuntu-bug ubuntu-advantage-tools

---

Then I can sadly confirm that upgrading indeed is broken the same way
you mentioned.

root@n:~# apt install ubuntu-pro-client
Lecture des listes de paquets... Fait
Construction de l'arbre des d�pendances... Fait
Lecture des informations d'�tat... Fait        
ubuntu-pro-client est d�j� la version la plus r�cente (32.3.1~24.04).
ubuntu-pro-client pass� en ��install� manuellement��.
Les paquets suivants ont �t� install�s automatiquement et ne sont plus 
n�cessaires�:
  libaio1 libsoup2.4-1 libsoup2.4-common libvpx8 python3-boto
Veuillez utiliser ��apt autoremove�� pour les supprimer.
0 mis � jour, 0 nouvellement install�s, 0 � enlever et 3 non mis � jour.
root@n:~# apt install ubuntu-pro-client -t noble/proposed
Lecture des listes de paquets... Fait
E: La valeur ��noble/proposed�� n'est pas valable pour APT::Default-Release car 
cette version ne fait pas partie des sources disponibles.
root@n:~# apt install ubuntu-pro-client=33~24.04         
Lecture des listes de paquets... Fait
Construction de l'arbre des d�pendances... Fait
Lecture des informations d'�tat... Fait        
Les paquets suivants ont �t� install�s automatiquement et ne sont plus 
n�cessaires�:
  libaio1 libsoup2.4-1 libsoup2.4-common libvpx8 python3-boto
Veuillez utiliser ��apt autoremove�� pour les supprimer.
Paquets recommand�s�:
  ubuntu-pro-client-l10n
Les paquets suivants seront ENLEV�S�:
  ubuntu-pro-client-l10n
Les paquets suivants seront mis � jour�:
  ubuntu-pro-client
1 mis � jour, 0 nouvellement install�s, 1 � enlever et 3 non mis � jour.
Il est n�cessaire de prendre 231 ko dans les archives.
Apr�s cette op�ration, 81,9 ko d'espace disque seront lib�r�s.
Souhaitez-vous continuer�? [O/n] Y
R�ception de�:1 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 
ubuntu-pro-client amd64 33~24.04 [231 kB]
231 ko r�ceptionn�s en 0s (1�210 ko/s)    
(Lecture de la base de donn�es... 110216 fichiers et r�pertoires d�j� 
install�s.)
Suppression de ubuntu-pro-client-l10n (32.3.1~24.04) ...
(Lecture de la base de donn�es... 110215 fichiers et r�pertoires d�j� 
install�s.)
Pr�paration du d�paquetage de .../ubuntu-pro-client_33~24.04_amd64.deb ...
Traceback (most recent call last):
  File "/usr/bin/py3clean", line 210, in <module>
    main()
  File "/usr/bin/py3clean", line 196, in main
    pfiles = set(dpf.from_package(options.package))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/python3/debpython/files.py", line 54, in from_package
    stdout = str(stdout, 'utf-8')
             ^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 584: 
invalid continuation byte
dpkg: avertissement: le sous-processus ancien paquet ubuntu-pro-client script 
pre-removal a renvoy� un �tat de sortie d'erreur 1
dpkg: tentative d'ex�cution du script du nouveau paquet � la place...
Traceback (most recent call last):
  File "/usr/bin/py3clean", line 210, in <module>
    main()
  File "/usr/bin/py3clean", line 196, in main
    pfiles = set(dpf.from_package(options.package))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/python3/debpython/files.py", line 54, in from_package
    stdout = str(stdout, 'utf-8')
             ^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 584: 
invalid continuation byte
dpkg: erreur de traitement de l'archive 
/var/cache/apt/archives/ubuntu-pro-client_33~24.04_amd64.deb (--unpack)�:
 le sous-processus nouveau ubuntu-pro-client paquet pre-removal script a 
renvoy� un �tat de sortie d'erreur 1
dmesg: read kernel buffer failed: Operation not permitted
                                                         Traceback (most recent 
call last):
  File "/usr/bin/py3compile", line 323, in <module>
    main()
  File "/usr/bin/py3compile", line 302, in main
    compile(files, versions,
  File "/usr/bin/py3compile", line 185, in compile
    for fn, versions_to_compile in filter_files(files, e_patterns, versions):
  File "/usr/bin/py3compile", line 128, in filter_files
    for fpath in files:
  File "/usr/share/python3/debpython/files.py", line 71, in filter_public
    for fn in files:
  File "/usr/share/python3/debpython/files.py", line 54, in from_package
    stdout = str(stdout, 'utf-8')
             ^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 584: 
invalid continuation byte
dpkg: erreur lors du nettoyage:
 le sous-processus paquet ubuntu-pro-client script post-installation install� a 
renvoy� un �tat de sortie d'erreur 1
Des erreurs ont �t� rencontr�es pendant l'ex�cution�:
 /var/cache/apt/archives/ubuntu-pro-client_33~24.04_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


---

But finally after the fix is applied (forcing locale to upgrade) I would
see it fixed while yours still hits the same issue as before.

root@n:~# 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=fr_FR
root@n:~# apt policy ubuntu-pro-client
ubuntu-pro-client:
  Install�: 33~24.04
  Candidat�: 33~24.04
 Table de version�:
 *** 33~24.04 100
        100 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     32.3.1~24.04 500
        500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
     31.2.3 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
root@n:~# pro status
SERVICE          AVAILABLE  DESCRIPTION
anbox-cloud      yes        Scalable Android in the cloud
esm-apps         yes        Expanded Security Maintenance for Applications
esm-infra        yes        Expanded Security Maintenance for Infrastructure
landscape        yes        Management and administration tool for Ubuntu
livepatch        yes        Canonical Livepatch service
realtime-kernel  yes        Ubuntu kernel with PREEMPT_RT patches integrated

For a list of all Ubuntu Pro services, run 'pro status --all'

This machine is not attached to an Ubuntu Pro subscription.
See https://ubuntu.com/pro

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2060769

Title:
  pro-client execs `apt list --installed` instead of using python3-apt -
  leading to utf-8 errors

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2060769/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to