系统之家
您现在的位置是:系统之家 > Ubuntu之家 > Ubuntu技巧 > 内容 RSS

ubuntu 15.10全新环境Proxy设置无效问题

时间:2017-06-15 出处:系统之家 复制分享 人气(次) 【

在新的笔记本上安装了新的Ubuntu 15.10环境,科学上网竟然配置不能,使用Gnome Network工具配置Proxy点击应用后没有任何反映,也不会提示输入管理员密码,相当不正常:


查看系统日志提示com.ubuntu.SystemService找不到gobject module:

ray@ray-ThinkPad-X250:/var/log$ tail syslog
Feb 26 14:14:52 ray-ThinkPad-X250 com.ubuntu.SystemService[649]: File "/usr/lib/system-service/system-service-d", line 20, in <module>
Feb 26 14:14:52 ray-ThinkPad-X250 com.ubuntu.SystemService[649]: import gobject
Feb 26 14:14:52 ray-ThinkPad-X250 com.ubuntu.SystemService[649]: ImportError: No module named gobject
Feb 26 14:14:52 ray-ThinkPad-X250 dbus[649]: [system] Activated service 'com.ubuntu.SystemService' failed: Launch helper exited with unknown return code 1
Feb 26 14:14:52 ray-ThinkPad-X250 dbus[649]: [system] Activating service name='com.ubuntu.SystemService' (using servicehelper)
Feb 26 14:14:52 ray-ThinkPad-X250 com.ubuntu.SystemService[649]: Traceback (most recent call last):
Feb 26 14:14:52 ray-ThinkPad-X250 com.ubuntu.SystemService[649]: File "/usr/lib/system-service/system-service-d", line 20, in <module>
Feb 26 14:14:52 ray-ThinkPad-X250 com.ubuntu.SystemService[649]: import gobject
Feb 26 14:14:52 ray-ThinkPad-X250 com.ubuntu.SystemService[649]: ImportError: No module named gobject
Feb 26 14:14:52 ray-ThinkPad-X250 dbus[649]: [system] Activated service 'com.ubuntu.SystemService' failed: Launch helper exited with unknown return code 1
ray@ray-ThinkPad-X250:/var/log$


看了一下/usr/lib/system-service/system-service-d 文件内容,是python文件:

ray@ray-ThinkPad-X250:/usr/lib/system-service$ cat system-service-d
#!/usr/bin/python

# (c) 2008 Canonical Ltd.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

import dbus
import gobject

from UbuntuSystemService.backend import ServiceBackend

if __name__ == "__main__":
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
server = ServiceBackend()
gobject.MainLoop().run()

ray@ray-ThinkPad-X250:/usr/lib/system-service$


搜索了一下依赖关系,找了很久才知道gobject modules需要安装python-gobject-2才会有,也是醉了,系统级别的工具竟然包都不全,ubuntu团队堕落了。如下方式安装后解决:

ray@ray-ThinkPad-X250:/var/log$ sudo apt-get install python-gobject-2


相关资讯
最新资讯
热门内容
Ubuntu在vmare虚拟机无法上网的解决方法