Ubuntu打不开System Settings
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu打不开System Settings相关的知识,希望对你有一定的参考价值。
root@:~# gnome-control-center
(gnome-control-center.real:6925): Gdk-ERROR **: The program 'gnome-control-center.real' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRequest (invalid request code or no such operation)'.
(Details: serial 135 error_code 1 request_code 149 (RANDR) minor_code 8)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap (core dumped)
ubuntu python3.5升级3.6后打不开终端的解决办法
ubuntu python3.5升级3.6后打不开终端了。
解决办法如下:
1.Ctrl+Alt+F1进入命令行终端,我的电脑按Ctrl+Alt+F1没反应,按住Ctrl+Alt然后从F1到F5一个个测试,Ctrl+Alt+F5进入了命令行终端。可能要求登录,先输入用户名,然后输入密码即可登录。
2.cd /usr/lib/python3/dist-packages/gi/
进入这个文件夹。
3.
$ sudo cp _gi.cpython-35m-x86_64-linux-gnu.so _gi.cpython-36m-x86_64-linux-gnu.so
$ sudo cp _gi_cairo.cpython-35m-x86_64-linux-gnu.so _gi_cairo.cpython-36m-x86_64-linux-gnu.so
因为系统先在使用python3.6了,而却没有配套的动态库,直接复制改名即可
4.reboot重启,或拔插头:)
===================================================================================
重启后发现终端可用了,说明系统此时在使用python3.6,但是我的很多python软件不能用了。
直接
$ sudo rm /usr/bin/python3
$ sudo ln -s /usr/bin/python3.5 /usr/bin/python3
然后python的命令行复制到终端又能正常运行了:)
对python只了解个皮毛,觉得它蛮方便的。
以上是关于Ubuntu打不开System Settings的主要内容,如果未能解决你的问题,请参考以下文章