web-dev-qa-db-ja.com

キーボードレイアウトは、再起動後も常にデフォルトに戻ります-変​​更方法

Chromebook Acer C7があり、気に入っています。高速です。* buntu linuxをインストールするために、Croutonを使用しました。元のシステムを使用せずにChromeOSに* buntuをインストールするプログラムです。

とにかく!キーボードのレイアウトに問題があります。スウェーデン語のキーボードを使用していますが、システムのキーボードレイアウトはUSキーボードです。

次のコマンドを使用して、スウェーデン語のキーボードレイアウトをインストールできます。

Sudo dpkg-reconfigure keyboard-configuration

その後、スウェーデン語のキーボードレイアウトができました。しかし、再起動後、USキーボードレイアウトに戻ります。

(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:~$ 

これが/ 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:~$ 

これは/ 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:~$ 

よろしくAcer

4

これは古い投稿ですが、16.04(Xenial)で使用するソリューションです

Sudo dpkg-reconfigure keyboard-configuration

次に実行します:

Sudo dpkg-reconfigure console-setup
1
battlemidget