MrY*_*Yui 5 reboot keyboard language locale layout
我有 Chromebook Acer C7,我喜欢它。它很快等等。为了在它上面安装 *buntu linux,我确实使用了 Crouton。这是一个在 ChromeOS 上安装 *buntu 而不擦除原始系统的程序。
反正!我的键盘布局有问题。我有瑞典语键盘,但系统中的键盘布局是美式键盘。
我可以使用以下命令安装瑞典语键盘布局:
sudo dpkg-reconfigure keyboard-configuration
Run Code Online (Sandbox Code Playgroud)
之后,我有瑞典语键盘布局。但是在我重新启动后,我退回了美国键盘布局。
(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:~$
Run Code Online (Sandbox Code Playgroud)
这是 /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:~$
Run Code Online (Sandbox Code Playgroud)
这是 /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:~$
Run Code Online (Sandbox Code Playgroud)
最好的问候宏碁
这是一篇旧文章,但这是我在 16.04 (Xenial) 上使用的解决方案
sudo dpkg-reconfigure keyboard-configuration
Run Code Online (Sandbox Code Playgroud)
然后运行:
sudo dpkg-reconfigure console-setup
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3977 次 |
| 最近记录: |