[SOLVED] system-config-language command throws error :ImportError: No module named snack
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
system-config-language command throws error :ImportError: No module named snack
#system-config-language
Starting graphical mode failed. Starting text mode instead.
Traceback (most recent call last):
File "/usr/share/system-config-language/system-config-language.py", line 71, in <module>
useTextMode()
File "/usr/share/system-config-language/system-config-language.py", line 36, in useTextMode
import language_tui
File "/usr/share/system-config-language/language_tui.py", line
Quote:
20, in <module>
from snack import *
Quote:
ImportError: No module named snack
whether there is any possible way to modify language other than system-config-language command
Quote:
i tried out the following to change the default lang setting to russian ,inorder to make setting to active i make a reboot,But after reboot locale setting goes to default lang setting to english
If system-config-language donīt help you, try this.
Go to the CentOS system configuration diretory
$ cd /etc/sysconfig
Make backup copy of your language setting file
$ cp i18n i18n.backup
Edit language setting file to allow english as default.You can edit the file by using nano or vim text editors available on all CentOS systems from SSH. I prefer vim, but nano is more easier:
$ nano i18n
Edit the file to include these lines as the first three lines of the file: $ LANG="en_US.UTF-8" $ SYSFONT="latarcyrheb-sun16" $ SUPPORTED="en_US.UTF-8:en_US:en"
Save the file and restart system. If you can not restart the system you need to have permission to restart init.d
If system-config-language donīt help you, try this.
Go to the CentOS system configuration diretory
$ cd /etc/sysconfig
Make backup copy of your language setting file
$ cp i18n i18n.backup
Edit language setting file to allow english as default.You can edit the file by using nano or vim text editors available on all CentOS systems from SSH. I prefer vim, but nano is more easier:
$ nano i18n
Edit the file to include these lines as the first three lines of the file: $ LANG="en_US.UTF-8" $ SYSFONT="latarcyrheb-sun16" $ SUPPORTED="en_US.UTF-8:en_US:en"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.