web-dev-qa-db-fra.com

La disposition du clavier ne cesse de revenir aux valeurs par défaut après le redémarrage - comment changer?

J'ai un Chromebook Acer C7 et je l'aime bien. C'est rapide, etc. Pour installer * buntu linux dessus, j'ai utilisé Crouton. C'est un programme qui installe * buntu sur ChromeOS sans effacer le système original.

En tous cas! J'ai un problème avec la disposition du clavier. J'ai un clavier suédois, mais la disposition du clavier dans le système est un clavier américain.

Je peux installer la disposition du clavier suédois en utilisant cette commande:

Sudo dpkg-reconfigure keyboard-configuration

Après cela, j'ai la disposition du clavier suédois. Mais après avoir redémarré, je suis tombé en arrière sur la disposition du clavier américain.

(precise)Acer@localhost:~$ Sudo dpkg-reconfigure keyboard-configuration
Perl: warning: Setting locale failed.
Perl: warning: Please check that your locale settings:
LANGUAGE = "sv_SV.UTF-8",
LC_ALL = (unset),
LANG = "sv_SV.UTF-8"
are supported and installed on your system.
Perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Perl: warning: Setting locale failed.
Perl: warning: Please check that your locale settings:
LANGUAGE = "sv_SV.UTF-8",
LC_ALL = (unset),
LANG = "sv_SV.UTF-8"
are supported and installed on your system.
Perl: warning: Falling back to the standard locale ("C").
Your console font configuration will be updated the next time your system
boots. If you want to update it now, run 'setupcon' from a virtual console.
Perl: warning: Setting locale failed.
Perl: warning: Please check that your locale settings:
LANGUAGE = "sv_SV.UTF-8",
LC_ALL = (unset),
LANG = "sv_SV.UTF-8"
are supported and installed on your system.
Perl: warning: Falling back to the standard locale ("C").
update-initramfs: deferring update (trigger activated)
(precise)Acer@localhost:~$ 

Voici/etc/default/keyboard

(precise)Acer@localhost:~$ cat /etc/default/keyboard
# Check /usr/share/doc/keyboard-configuration/README.Debian for
# documentation on what to do after having modified this file.

# The following variables describe your keyboard and can have the same
# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# in /etc/X11/xorg.conf.

XKBMODEL=""
XKBLAYOUT="se"
XKBVARIANT=""
XKBOPTIONS="terminate:ctrl_alt_bksp"

# If you don't want to use the XKB layout on the console, you can
# specify an alternative keymap.  Make sure it will be accessible
# before /usr is mounted.
# KMAP=/etc/console-setup/defkeymap.kmap.gz
(precise)Acer@localhost:~$ 

Voici/etc/default/locale

(precise)Acer@localhost:~$ cat /etc/default/locale  
#  File generated by update-locale
LANG="sv_SV.UTF-8"
LANGUAGE="sv_SV.UTF-8"
(precise)Acer@localhost:~$ 

Cordialement Acer

4
Daniel Mårtensson

Ceci est un ancien post mais voici la solution que j'utilise le 16.04 (Xenial)

Sudo dpkg-reconfigure keyboard-configuration

Puis lancez:

Sudo dpkg-reconfigure console-setup
1
battlemidget