当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 11 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : Gdk-WARNING **: locale not supported by C library解决方法
帖子发表于 : 2007-02-22 1:57 

注册: 2007-02-05 18:55
帖子: 219
送出感谢: 0 次
接收感谢: 0 次
今天我的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 次

页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2007-02-22 15:34 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 272
引用:
sudo /etc/ppp/peers/dsl-provider,将里面类似(process:6798): Gdk-WARNING **: locale not supported by C librar的信息删除(删除到文件结尾),保存
:?: :?:


_________________
● 鸣学


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2007-03-18 22:53 
头像

注册: 2006-10-14 11:34
帖子: 123
送出感谢: 0 次
接收感谢: 1
我也碰到问题 希望楼主 能解释楼上 的 发问
因为我按照 楼主的 说的 没成功上网


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2007-03-30 1:22 

注册: 2007-02-05 18:55
帖子: 219
送出感谢: 0 次
接收感谢: 0 次
你打开那个文件,把内容贴出来。


页首
 用户资料  
 
5 楼 
 文章标题 :
帖子发表于 : 2007-04-02 13:21 

注册: 2006-12-25 16:03
帖子: 51
送出感谢: 0 次
接收感谢: 0 次
我也遇到同样的 问题了 ,现在只能用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能不能说详细点


页首
 用户资料  
 
6 楼 
 文章标题 :
帖子发表于 : 2007-04-02 14:27 

注册: 2005-07-28 15:08
帖子: 265
送出感谢: 0 次
接收感谢: 0 次
我也经常遇到这样的问题

繁死了


_________________
无声胜有声


页首
 用户资料  
 
7 楼 
 文章标题 :
帖子发表于 : 2007-04-04 16:18 

注册: 2007-02-05 18:55
帖子: 219
送出感谢: 0 次
接收感谢: 0 次
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


页首
 用户资料  
 
8 楼 
 文章标题 :
帖子发表于 : 2007-04-05 12:31 

注册: 2006-12-25 16:03
帖子: 51
送出感谢: 0 次
接收感谢: 0 次
全文

引用:
# 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.
**********@*****"


页首
 用户资料  
 
9 楼 
 文章标题 :
帖子发表于 : 2007-04-13 15:32 

注册: 2007-02-05 18:55
帖子: 219
送出感谢: 0 次
接收感谢: 0 次
引用:
先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

保存


页首
 用户资料  
 
10 楼 
 文章标题 :
帖子发表于 : 2007-04-13 15:37 
头像

注册: 2006-04-12 20:05
帖子: 8495
地址: 杭州
送出感谢: 0 次
接收感谢: 8
还好我的似乎没出现过这个。


_________________
关注我的blog: ε==3


页首
 用户资料  
 
11 楼 
 文章标题 :
帖子发表于 : 2008-04-25 11:03 
头像

注册: 2007-10-10 9:25
帖子: 100
送出感谢: 0 次
接收感谢: 0 次
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
可以试试


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 11 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译