尝试删除 lamp-server,现在我的 X 无法工作

尝试删除 lamp-server,现在我的 X 无法工作

我执行了这个命令来安装:sudo apt-get install lamp-server^

我执行了这个来卸载:sudo apt-get remove lamp-server^

它卸载了很多东西,现在我的系统无法进入 X。我尝试了 sudo apt-get install ubuntu-desktop,它可以在其他屏幕上启动 X,但没有 gnome 或 unity。

我如何恢复我的桌面?

答案1

我解决了。我在搜索解决方案时没有找到任何东西,但我找到了有关该问题的更多信息:

当您尝试按照我的方式删除 lamp-server 时,这些软件包会被卸载:

apache2 apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common bluez-cups cups cups-driver-gutenprint cups-pdf foo2zjs gdm gdm-guest-session gecko-mediaplayer gnome-applets gnome-control-center gnome-media gnome-mplayer gnome-panel gnome-session gnome-settings-daemon goldendict gstreamer0.10-pulseaudio hpijs hplip hplip-cups indicator-applet indicator-applet-appmenu indicator-applet-complete indicator-sound libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libasound2-plugins libcanberra-pulse libdbd-mysql-perl libdbi-perl libhpmud0 libhtml-template-perl libmysqlclient16 libnet-daemon-perl libphonon4 libplrpc-perl libpulse-browse0 libpulse-mainloop-glib0 libpulse0 libqtwebkit4 libsane-hpaio libsdl1.2debian-pulseaudio libsnmp15 libwrap0 mplayer mysql-client-5.1 mysql-client-core-5.1 mysql-common mysql-server mysql-server-5.1 mysql-server-core-5.1 phonon phonon-backend-gstreamer php5-cli php5-common php5-mysql pulseaudio pulseaudio-esound-compat pulseaudio-module-bluetooth pulseaudio-module-gconf pulseaudio-module-x11 pulseaudio-module-zeroconf pulseaudio-utils pxljr python-speechd speech-dispatcher splix ssl-cert tcpd vlc-plugin-pulse

这就是解决我的问题的方法:

sudo apt-get install apache2 apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common bluez-cups cups cups-driver-gutenprint cups-pdf foo2zjs gdm gdm-guest-session gecko-mediaplayer gnome-applets gnome-control-center gnome-media gnome-mplayer gnome-panel gnome-session gnome-settings-daemon goldendict gstreamer0.10-pulseaudio hpijs hplip hplip-cups indicator-applet indicator-applet-appmenu indicator-applet-complete indicator-sound libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libasound2-plugins libcanberra-pulse libdbd-mysql-perl libdbi-perl libhpmud0 libhtml-template-perl libmysqlclient16 libnet-daemon-perl libphonon4 libplrpc-perl libpulse-browse0 libpulse-mainloop-glib0 libpulse0 libqtwebkit4 libsane-hpaio libsdl1.2debian-pulseaudio libsnmp15 libwrap0 mplayer mysql-client-5.1 mysql-client-core-5.1 mysql-common mysql-server mysql-server-5.1 mysql-server-core-5.1 phonon phonon-backend-gstreamer php5-cli php5-common php5-mysql pulseaudio pulseaudio-esound-compat pulseaudio-module-bluetooth pulseaudio-module-gconf pulseaudio-module-x11 pulseaudio-module-zeroconf pulseaudio-utils pxljr python-speechd speech-dispatcher splix ssl-cert tcpd vlc-plugin-pulse

相关内容