昨天把 /lib /usr/lib /usr/local/lib 下的libav*都删除了。结果导致今天重启,看不到面板,只有一个桌面图片。从桌面上的文件夹,可以进入,说明了GUI还是好的。
alt+t 可以启动终端。
root@ubuntu:/home/zhangbin# gnome-panel --sm-client-id default --screen 0
gnome-panel: error while loading shared libraries: libavahi-glib.so.1: cannot open shared object file: No such file or
director
root@ubuntu:/home/zhangbin# gnome-panel --sm-client-id default --screen 0
gnome-panel: error while loading shared libraries: libavahi-glib.so.1: cannot open shared object file: No such file or
directory
root@ubuntu:/home/zhangbin# apt-get install avahi
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package avahi
root@ubuntu:/home/zhangbin# apt-get install libavahi-glib
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libavahi-glib
root@ubuntu:/home/zhangbin# apt-get install libavahi-glib*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting libavahi-glib1 for regex 'libavahi-glib*'
Note, selecting libavahi-glib-dev for regex 'libavahi-glib*'
The following extra packages will be installed:
libavahi-glib-dev libavahi-glib1
The following NEW packages will be installed:
libavahi-glib-dev
The following packages will be upgraded:
libavahi-glib1
1 upgraded, 1 newly installed, 0 to remove and 226 not upgraded.
Need to get 43.7kB of archives.
After this operation, 115kB of additional disk space will be used.
Do you want to continue [Y/n]?
root@ubuntu:/home/zhangbin# gnome-panel --sm-client-id default --screen 0
gnome-panel: error while loading shared libraries: libavahi-common.so.3: cannot open shared object file: No such file or
directory
root@ubuntu:/home/zhangbin# apt-get install libavahi*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting libavahi-compat-howl0 for regex 'libavahi*'
Note, selecting libavahi-compat-libdnssd1 for regex 'libavahi*'
Note, selecting libavahi-ui-cil-dev for regex 'libavahi*'
Note, selecting libavahi-common-data for regex 'libavahi*'
Note, selecting libavahi-compat-libdnssd-dev for regex 'libavahi*'
Note, selecting libavahi-client-dev for regex 'libavahi*'
Note, selecting libavahi-ui0.0-cil for regex 'libavahi*'
Note, selecting libavahi-core-dev for regex 'libavahi*'
Note, selecting libavahi-qt3-dev for regex 'libavahi*'
Note, selecting libavahi-qt3-1 for regex 'libavahi*'
Note, selecting libavahi-gobject0 for regex 'libavahi*'
Note, selecting libavahi-qt4-1 for regex 'libavahi*'
Note, selecting libavahi-cil-dev for regex 'libavahi*'
Note, selecting libavahi-cil for regex 'libavahi*'
Note, selecting libavahi1.0-cil instead of libavahi-cil
Note, selecting libavahi1.0-cil for regex 'libavahi*'
Note, selecting libavahi-client3 for regex 'libavahi*'
Note, selecting libavahi-qt4-dev for regex 'libavahi*'
Note, selecting libavahi-ui-dev for regex 'libavahi*'
Note, selecting libavahi-glib1 for regex 'libavahi*'
Note, selecting libavahi-glib-dev for regex 'libavahi*'
Note, selecting libavahi-common-dev for regex 'libavahi*'
Note, selecting libavahi-common3 for regex 'libavahi*'
Note, selecting libavahi-compat-howl-dev for regex 'libavahi*'
Note, selecting libavahi-ui0 for regex 'libavahi*'
Note, selecting libavahi-core6 for regex 'libavahi*'
Note, selecting libavahi-gobject-dev for regex 'libavahi*'
The following extra packages will be installed:
comerr-dev krb5-multidev libavahi-cil-dev libavahi-client-dev
libavahi-client3 libavahi-common-data libavahi-common-dev libavahi-common3
libavahi-compat-howl-dev libavahi-compat-howl0 libavahi-compat-libdnssd-dev
libavahi-compat-libdnssd1 libavahi-core-dev libavahi-core6
libavahi-gobject-dev libavahi-gobject0 libavahi-qt3-1 libavahi-qt3-dev
libavahi-qt4-1 libavahi-qt4-dev libavahi-ui-cil-dev libavahi-ui-dev
libavahi-ui0 libavahi-ui0.0-cil libavahi1.0-cil libcups2 libcups2-dev
libgcrypt11-dev libglib2.0-cil-dev libgnutls-dev libgpg-error-dev
libgssapi-krb5-2 libgssrpc4 libgtk2.0-cil-dev libk5crypto3 libkadm5clnt-mit7
libkadm5srv-mit7 libkdb5-4 libkrb5-3 libkrb5-dev libkrb5support0 liblcms1
liblcms1-dev libmng-dev libmng1 libmysqlclient16 libphonon4
libqt3-compat-headers libqt3-headers libqt3-mt libqt3-mt-dev
libqt4-assistant libqt4-dbus libqt4-designer libqt4-dev libqt4-help
libqt4-multimedia libqt4-network libqt4-opengl libqt4-opengl-dev
libqt4-qt3support libqt4-script libqt4-scripttools libqt4-sql
libqt4-sql-mysql libqt4-svg libqt4-test libqt4-webkit libqt4-xml
libqt4-xmlpatterns libqtcore4 libqtgui4 libtasn1-3-dev libxmu-dev
libxmu-headers mysql-common qt3-dev-tools qt4-qmake
Suggested packages:
krb5-doc libgcrypt11-doc gnutls-doc gnutls-bin guile-gnutls krb5-user
liblcms-utils libqt3-mt-psql libqt3-mt-mysql libqt3-mt-odbc libqt3-i18n
qt3-doc qt4-dev-tools qt4-doc libmysqlclient-dev libsqlite0-dev
libsqlite3-dev libpq-dev unixodbc-dev qt4-qtconfig
The following NEW packages will be installed:
comerr-dev krb5-multidev libavahi-cil-dev libavahi-compat-howl-dev
libavahi-compat-howl0 libavahi-compat-libdnssd-dev libavahi-compat-libdnssd1
libavahi-core-dev libavahi-gobject-dev libavahi-qt3-1 libavahi-qt3-dev
libavahi-qt4-1 libavahi-qt4-dev libavahi-ui-cil-dev libavahi-ui-dev
libavahi-ui0.0-cil libavahi1.0-cil libcups2-dev libgcrypt11-dev
libglib2.0-cil-dev libgnutls-dev libgpg-error-dev libgssrpc4
libgtk2.0-cil-dev libkadm5clnt-mit7 libkadm5srv-mit7 libkdb5-4 libkrb5-dev
liblcms1-dev libmng-dev libmng1 libmysqlclient16 libphonon4
libqt3-compat-headers libqt3-headers libqt3-mt libqt3-mt-dev
libqt4-assistant libqt4-dbus libqt4-designer libqt4-dev libqt4-help
libqt4-multimedia libqt4-network libqt4-opengl libqt4-opengl-dev
libqt4-qt3support libqt4-script libqt4-scripttools libqt4-sql
libqt4-sql-mysql libqt4-svg libqt4-test libqt4-webkit libqt4-xml
libqt4-xmlpatterns libqtcore4 libqtgui4 libtasn1-3-dev libxmu-dev
libxmu-headers mysql-common qt3-dev-tools qt4-qmake
The following packages will be upgraded:
libavahi-client-dev libavahi-client3 libavahi-common-data
libavahi-common-dev libavahi-common3 libavahi-core6 libavahi-gobject0
libavahi-ui0 libcups2 libgssapi-krb5-2 libk5crypto3 libkrb5-3
libkrb5support0 liblcms1
14 upgraded, 64 newly installed, 0 to remove and 212 not upgraded.
Need to get 36.2MB of archives.
After this operation, 131MB of additional disk space will be used.
Do you want to continue [Y/n]? n^[[A^[[B
Abort.
root@ubuntu:/home/zhangbin# apt-get install libavahi-common*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting libavahi-common-data for regex 'libavahi-common*'
Note, selecting libavahi-common-dev for regex 'libavahi-common*'
Note, selecting libavahi-common3 for regex 'libavahi-common*'
The following extra packages will be installed:
libavahi-common-data libavahi-common-dev libavahi-common3
The following packages will be upgraded:
libavahi-common-data libavahi-common-dev libavahi-common3
3 upgraded, 0 newly installed, 0 to remove and 223 not upgraded.
Need to get 125kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
root@ubuntu:/home/zhangbin# apt-get install libavahi-common3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libavahi-common-dev
The following packages will be upgraded:
libavahi-common-dev libavahi-common3
2 upgraded, 0 newly installed, 0 to remove and 224 not upgraded.
Need to get 90.8kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://Ubuntu.cn99.com/ubuntu/ lucid-security/main libavahi-common-dev 0.6.25-1ubuntu6.2 [67.3kB]
Get:2 http://Ubuntu.cn99.com/ubuntu/ lucid-security/main libavahi-common3 0.6.25-1ubuntu6.2 [23.5kB]
Fetched 90.8kB in 1s (84.1kB/s)
(Reading database ... 152300 files and directories currently installed.)
Preparing to replace libavahi-common-dev 0.6.25-1ubuntu6.1 (using .../libavahi-common-dev_0.6.25-1ubuntu6.2_i386.deb) ...
Unpacking replacement libavahi-common-dev ...
Preparing to replace libavahi-common3 0.6.25-1ubuntu6.1 (using .../libavahi-common3_0.6.25-1ubuntu6.2_i386.deb) ...
Unpacking replacement libavahi-common3 ...
Setting up libavahi-common3 (0.6.25-1ubuntu6.2) ...
Setting up libavahi-common-dev (0.6.25-1ubuntu6.2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
root@ubuntu:/home/zhangbin#
root@ubuntu:/home/zhangbin# apt-get install libavahi-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libavahi-client
root@ubuntu:/home/zhangbin# libavahi-client-dev
libavahi-client-dev: command not found
root@ubuntu:/home/zhangbin# apt-get install libavahi-client*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting libavahi-client-dev for regex 'libavahi-client*'
Note, selecting libavahi-client3 for regex 'libavahi-client*'
The following extra packages will be installed:
libavahi-client-dev libavahi-client3
The following packages will be upgraded:
libavahi-client-dev libavahi-client3
2 upgraded, 0 newly installed, 0 to remove and 222 not upgraded.
Need to get 88.7kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://Ubuntu.cn99.com/ubuntu/ lucid-security/main libavahi-client-dev 0.6.25-1ubuntu6.2 [34.5kB]
Get:2 http://Ubuntu.cn99.com/ubuntu/ lucid-security/main libavahi-client3 0.6.25-1ubuntu6.2 [54.2kB]
Fetched 88.7kB in 1s (81.7kB/s)
(Reading database ... 152300 files and directories currently installed.)
Preparing to replace libavahi-client-dev 0.6.25-1ubuntu6.1 (using .../libavahi-client-dev_0.6.25-1ubuntu6.2_i386.deb) ...
Unpacking replacement libavahi-client-dev ...
Preparing to replace libavahi-client3 0.6.25-1ubuntu6.1 (using .../libavahi-client3_0.6.25-1ubuntu6.2_i386.deb) ...
Unpacking replacement libavahi-client3 ...
Setting up libavahi-client3 (0.6.25-1ubuntu6.2) ...
Setting up libavahi-client-dev (0.6.25-1ubuntu6.2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
root@ubuntu:/home/zhangbin#
root@ubuntu:/home/zhangbin# gnome-panel --sm-client-id default --screen 0
** Message: Could not connect to session manager: Could not get owner of name 'org.gnome.SessionManager': no such name
** (gnome-panel:2323): WARNING **: Could not connect to session manager: Could not get owner of name
'org.gnome.SessionManager': no such name
http://ubuntuforums.org/showthread.php?t=1456446
把那行命令放到start.sh中,可以直接运行。
连#!bin都没加。
root@ubuntu:/home/zhangbin# ./start.sh
** Message: Could not connect to session manager: Could not get owner of name 'org.gnome.SessionManager': no such name
** (gnome-panel:2509): WARNING **: Could not connect to session manager: Could not get owner of name
'org.gnome.SessionManager': no such name
** (nautilus:2596): WARNING **: libavahi-ui.so.0: cannot open shared object file: No such file or directory
Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: net usershare:
cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory
Please ask your system administrator to enable user sharing.
(gst-plugin-scanner:2607): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgst1394.so':
libavc1394.so.0: cannot open shared object file: No such file or directory
** Message: Error: Your GStreamer installation is missing a plug-in.
gstdecodebin2.c(2944): gst_decode_bin_expose ():
/GstPlayBin2:play/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20:
no suitable plugins found
totem-video-thumbnailer couldn't open file 'file:///root/Documents'
Reason: The playback of this movie requires a Windows Media Video 7 decoder plugin which is not installed..
关闭terminal 一样可以继续用。
只要不cctrl+c 那个shell。
重启,会有zhangbin的pane自动l出现。
在控制台的root下,运行哪行命令,root的会覆盖掉zhangbin的pannel,ctrl+c一下,root的就没了。