error when run "localectl set-locale" in PVE 9.0

nethub

New Member
Sep 12, 2024
5
2
3
Hi all,

I've been configuring the locale on my PVE host to display time in 24-hour format. After installing PVE 9.0, I noticed that I can no longer set the locale. Can anyone provide guidance on this issue? Many thanks

Bash:
# localectl set-locale LANG=C
Failed to issue method call: Access denied

For reference, the same command works without issues on PVE 8.4, AlmaLinux 10, and Debian 13.
 
Moin, kann dies ebenfalls bestätigen. Funktioniert.
Unter Debian 13 sind auch nicht mehr alle Sprachen per Default verfügbar. Die jeweilige muss erst generiert werden.
Code:
/etc/locale.gen

# This file lists locales that you wish to have built. You can find a list
# of valid supported locales at /usr/share/i18n/SUPPORTED, and you can add
# user defined locales to /usr/local/share/i18n/SUPPORTED. If you change
# this file, you need to rerun locale-gen.
#

# C.UTF-8 UTF-8
de_DE.UTF-8 UTF-8
en_US.UTF-8 UTF-8

Entsprechende Sprache auskommentieren und dann generieren:

Code:
# locale-gen

Anschließend kann diese auch gesetzt werden.

Code:
# update-locale LANG=de_DE.UTF-8 UTF-8