Gdk-WARNING **: locale not supported by C library解决方法

为当前最终发行版之前的所有版本提供支持
回复
xain
帖子: 219
注册时间: 2007-02-05 18:55
送出感谢: 0
接收感谢: 0

Gdk-WARNING **: locale not supported by C library解决方法

#1

帖子 xain » 2007-02-22 1:57

今天我的ubuntu 6.06经常出现:

(process:6798): Gdk-WARNING **: locale not supported by C library

Gtk-WARNING (recursed) **: Locale not supported by C library.
Using the fallback 'C' locale.

这样的提示。
然后用pppoeconf也不能配置ADSL拨号上网了。
在这个论坛发现很多人出现了类似的问题,但没有找到解决方法。
我上网查了很久,终于试出了一个可以解决这个问题的方法,但对这个问题的起因和解决原理还不清楚。


你先试着在终端运行sudo locale,如果有错误提示,运行一次sudo locale-gen。

解决ADSL拨号问题的方法:
先sudo gedit /etc/ppp/peers/dsl-provider,将里面类似(process:6798): Gdk-WARNING **: locale not supported by C librar的信息删除(删除到文件结尾),保存
然后终端运行export LC_ALL=C,然后再启动pppoeconf
这时终端就不再提示上面的警告了。这里可以正常配置拨号了。
重启,可以上网了。
上次由 xain 在 2007-03-30 1:23,总共编辑 1 次。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#2

帖子 eexpress » 2007-02-22 15:34

sudo /etc/ppp/peers/dsl-provider,将里面类似(process:6798): Gdk-WARNING **: locale not supported by C librar的信息删除(删除到文件结尾),保存
:?: :?:
● 鸣学
头像
wsk170
帖子: 123
注册时间: 2006-10-14 11:34
送出感谢: 0
接收感谢: 1 次

#3

帖子 wsk170 » 2007-03-18 22:53

我也碰到问题 希望楼主 能解释楼上 的 发问
因为我按照 楼主的 说的 没成功上网
xain
帖子: 219
注册时间: 2007-02-05 18:55
送出感谢: 0
接收感谢: 0

#4

帖子 xain » 2007-03-30 1:22

你打开那个文件,把内容贴出来。
Brand
帖子: 51
注册时间: 2006-12-25 16:03
送出感谢: 0
接收感谢: 0
联系:

#5

帖子 Brand » 2007-04-02 13:21

我也遇到同样的 问题了 ,现在只能用rp-pppoe上网了,但是那个问题很困扰,看了一下dsl-provider,好像是scim-gtk-panel的问题,我 的 dsl-provider中有一段是
plugin rp-pppoe.so eth0
(process:9027): Gdk-WARNING **: locale not supported by C library

Gtk-WARNING (recursed) **: Locale not supported by C library.
Using the fallback 'C' locale.
Launching a SCIM daemon with Socket FrontEnd...
Loading simple Config module ...
Creating backend ...
Loading socket FrontEnd module ...
Starting SCIM as daemon ...
GTK Panel of SCIM 1.4.4
是不是和输入法有冲突啊,如何解决呢,lz能不能说详细点
zhuzhzh
帖子: 265
注册时间: 2005-07-28 15:08
送出感谢: 0
接收感谢: 0
联系:

#6

帖子 zhuzhzh » 2007-04-02 14:27

我也经常遇到这样的问题

繁死了
无声胜有声
xain
帖子: 219
注册时间: 2007-02-05 18:55
送出感谢: 0
接收感谢: 0

#7

帖子 xain » 2007-04-04 16:18

Brand 写了:我也遇到同样的 问题了 ,现在只能用rp-pppoe上网了,但是那个问题很困扰,看了一下dsl-provider,好像是scim-gtk-panel的问题,我 的 dsl-provider中有一段是
plugin rp-pppoe.so eth0
(process:9027): Gdk-WARNING **: locale not supported by C library

Gtk-WARNING (recursed) **: Locale not supported by C library.
Using the fallback 'C' locale.
Launching a SCIM daemon with Socket FrontEnd...
Loading simple Config module ...
Creating backend ...
Loading socket FrontEnd module ...
Starting SCIM as daemon ...
GTK Panel of SCIM 1.4.4
是不是和输入法有冲突啊,如何解决呢,lz能不能说详细点
你把全文贴出来,adsl的用户名和密码可以改成xxxx
Brand
帖子: 51
注册时间: 2006-12-25 16:03
送出感谢: 0
接收感谢: 0
联系:

#8

帖子 Brand » 2007-04-05 12:31

全文
# Configuration file for PPP, using PPP over Ethernet
# to connect to a DSL provider.
#
# See the manual page pppd(8) for information on all the options.

##
# Section 1
#
# Stuff to configure...

# MUST CHANGE: Uncomment the following line, replacing the user@provider.net
# by the DSL user name given to your by your DSL provider.
# (There should be a matching entry in /etc/ppp/pap-secrets with the password.)
#user myusername@myprovider.net

# Use the pppoe program to send the ppp packets over the Ethernet link
# This line should work fine if this computer is the only one accessing
# the Internet through this DSL connection. This is the right line to use
# for most people.
#pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1452"

# An even more conservative version of the previous line, if things
# don't work using -m 1452...
#pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1412"

# If the computer connected to the Internet using pppoe is not being used
# by other computers as a gateway to the Internet, you can try the following
# line instead, for a small gain in speed:
#pty "/usr/sbin/pppoe -I eth0 -T 80"


# The following two options should work fine for most DSL users.

# Assumes that your IP address is allocated dynamically
# by your DSL provider...
noipdefault
# Try to get the name server addresses from the ISP.
usepeerdns
# Use this connection as the default route.
# Comment out if you already have the correct default route installed.
defaultroute

##
# Section 2
#
# Uncomment if your DSL provider charges by minute connected
# and you want to use demand-dialing.
#
# Disconnect after 300 seconds (5 minutes) of idle time.

#demand
#idle 300

##
# Section 3
#
# You shouldn't need to change these options...

hide-password
lcp-echo-interval 20
lcp-echo-failure 3
# Override any connect script that may have been set in /etc/ppp/options.
connect /bin/true
noauth
persist
mtu 1492

# RFC 2516, paragraph 7 mandates that the following options MUST NOT be
# requested and MUST be rejected if requested by the peer:
# Address-and-Control-Field-Compression (ACFC)
noaccomp
# Asynchronous-Control-Character-Map (ACCM)
default-asyncmap

plugin rp-pppoe.so eth0
(process:9629): Gdk-WARNING **: locale not supported by C library

Gtk-WARNING (recursed) **: Locale not supported by C library.
Using the fallback 'C' locale.
**********@*****"
(process:5126): Gdk-WARNING **: locale not supported by C library

Gtk-WARNING (recursed) **: Locale not supported by C library.
Using the fallback 'C' locale.
Launching a SCIM daemon with Socket FrontEnd...
Loading simple Config module ...
Creating backend ...
Loading socket FrontEnd module ...
Starting SCIM as daemon ...
GTK Panel of SCIM 1.4.4


(scim-panel-gtk:5129): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
**********@*****"
user "
(process:7690): Gdk-WARNING **: locale not supported by C library

Gtk-WARNING (recursed) **: Locale not supported by C library.
Using the fallback 'C' locale.
**********@*****"
xain
帖子: 219
注册时间: 2007-02-05 18:55
送出感谢: 0
接收感谢: 0

#9

帖子 xain » 2007-04-13 15:32

先sudo gedit /etc/ppp/peers/dsl-provider,将里面类似(process:6798): Gdk-WARNING **: locale not supported by C librar的信息删除(删除到文件结尾),保存
的意思是将上面的修改成:
# Configuration file for PPP, using PPP over Ethernet
# to connect to a DSL provider.
#
# See the manual page pppd(Cool for information on all the options.

##
# Section 1
#
# Stuff to configure...

# MUST CHANGE: Uncomment the following line, replacing the user@provider.net
# by the DSL user name given to your by your DSL provider.
# (There should be a matching entry in /etc/ppp/pap-secrets with the password.)
#user myusername@myprovider.net

# Use the pppoe program to send the ppp packets over the Ethernet link
# This line should work fine if this computer is the only one accessing
# the Internet through this DSL connection. This is the right line to use
# for most people.
#pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1452"

# An even more conservative version of the previous line, if things
# don't work using -m 1452...
#pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1412"

# If the computer connected to the Internet using pppoe is not being used
# by other computers as a gateway to the Internet, you can try the following
# line instead, for a small gain in speed:
#pty "/usr/sbin/pppoe -I eth0 -T 80"


# The following two options should work fine for most DSL users.

# Assumes that your IP address is allocated dynamically
# by your DSL provider...
noipdefault
# Try to get the name server addresses from the ISP.
usepeerdns
# Use this connection as the default route.
# Comment out if you already have the correct default route installed.
defaultroute

##
# Section 2
#
# Uncomment if your DSL provider charges by minute connected
# and you want to use demand-dialing.
#
# Disconnect after 300 seconds (5 minutes) of idle time.

#demand
#idle 300

##
# Section 3
#
# You shouldn't need to change these options...

hide-password
lcp-echo-interval 20
lcp-echo-failure 3
# Override any connect script that may have been set in /etc/ppp/options.
connect /bin/true
noauth
persist
mtu 1492

# RFC 2516, paragraph 7 mandates that the following options MUST NOT be
# requested and MUST be rejected if requested by the peer:
# Address-and-Control-Field-Compression (ACFC)
noaccomp
# Asynchronous-Control-Character-Map (ACCM)
default-asyncmap

plugin rp-pppoe.so eth0
保存
头像
bones7456
论坛版主
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
送出感谢: 0
接收感谢: 8 次
联系:

#10

帖子 bones7456 » 2007-04-13 15:37

还好我的似乎没出现过这个。
关注我的blog: ε==3
头像
jinsaiuser
帖子: 100
注册时间: 2007-10-10 9:25
送出感谢: 0
接收感谢: 0
联系:

#11

帖子 jinsaiuser » 2008-04-25 11:03

sudo gedit /var/lib/locales/supported.d/zh

将内容改为:
zh_SG.UTF-8 UTF-8
zh_HK.UTF-8 UTF-8
zh_TW.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8
zh_CN.GB2312 GB2312
zh_CN.GBK GBK
zh_CN.GB18030 GB18030
zh_HK.Big5 Big5
zh_TW.Big5 Big5

然后执行
sudo locale-gen
可以试试
回复

回到 “老旧版本支持”