Small Hacks

Handle power button without GUI

File nano /etc/systemd/logind.conf, option HandlePowerKey=poweroff

Resolve perl locale warning

When locales in Debian is not configured, you get something like the following error when installing packages via apt:

apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = (unset),
        LC_NUMERIC = "de_DE.UTF-8",
        LC_COLLATE = (unset),
        LC_TIME = (unset),
        LC_MESSAGES = (unset),
        LC_MONETARY = "de_DE.UTF-8",
        LC_ADDRESS = "de_DE.UTF-8",
        LC_IDENTIFICATION = "de_DE.UTF-8",
        LC_MEASUREMENT = "de_DE.UTF-8",
        LC_PAPER = "de_DE.UTF-8",
        LC_TELEPHONE = "de_DE.UTF-8",
        LC_NAME = "de_DE.UTF-8",
        LANG = "C.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("C.UTF-8").

To solve this, execute this command:

dpkg-reconfigure locales

Select your locals and set a default. The error message should go away afterwards.

This page was last edited on 2026-02-10 09:38

Powered by Wiki|Docs

This page was last edited on 2026-02-10 09:38

Bjørn Singer
Private wiki!

Powered by Wiki|Docs