我想按照建议删除 kubuntu 桌面及其 deps这里:
sudo apt-get remove akonadi-facebook akregator amarok amarok-common amarok-utils apport-kde apturl-kde ark audiocd-kio bluedevil calligra-data calligra-libs colord-kde cryptsetup dolphin dragonplayer freespacenotifier gnupg-agent gnupg2 gpgsm gstreamer0.10-qapt gtk2-engines-oxygen gtk3-engines-oxygen gwenview ibus-qt4 kaccessible kaddressbook kamera kamoso kate kcalc kde-base-artwork kde-baseapps-bin kde-baseapps-data kde-config-gtk-style kde-config-tablet kde-config-telepathy-accounts kde-config-touchpad kde-style-oxygen kde-telepathy kde-telepathy-approver kde-telepathy-auth-handler kde-telepathy-contact-list kde-telepathy-data kde-telepathy-filetransfer-handler kde-telepathy-integration-module kde-telepathy-minimal kde-telepathy-send-file kde-telepathy-text-ui kde-wallpapers-default kde-window-manager kde-window-manager-common kde-workspace kde-workspace-bin kde-workspace-data kde-workspace-kgreet-plugins kde-zeroconf kdegames-card-data kdegames-data kdegraphics-strigi-analyzer kdemultimedia-kio-plugins kdenetwork-filesharing kdepasswd kdepim-kresources kdepim-strigi-plugins kdesudo kexi khelpcenter4 kinfocenter klipper kmag kmail kmenuedit kmix kmousetool knotes konsole kontact korganizer kpat kppp krdc krita krita-data ksnapshot ksysguard ksysguardd ksystemlog ktorrent ktorrent-data kubuntu-default-settings kubuntu-desktop kubuntu-docs kubuntu-firefox-installer kubuntu-netbook-default-settings kubuntu-notification-helper kubuntu-web-shortcuts kvkbd kwalletmanager libassuan0 libaudiocdplugins4 libbluedevil1 libcalendarsupport4 libchm1 libcln6 libdebconf-kde0 libepub0 libeventviews4 libfftw3-3 libgpgme++2 libgps20 libgrantlee-core0 libgtlcore0.8 libgtlfragment0.8 libibus-qt1 libincidenceeditorsng4 libindicate-qt1 libkateinterfaces4 libkblog4 libkcompactdisc4 libkdcraw-data libkdcraw21 libkdecorations4abi1 libkdegames6 libkdepim4 libkdepimdbusinterfaces4 libkdgantt2 libkephal4abi1 libkexiv2-11 libkexiv2-data libkipi-data libkipi9 libkleo4 libkmanagesieve4 libkonq-common libkonq5-templates libkonq5abi1 libkontactinterface4 libkpgp4 libkrossui4 libksane-data libksane0 libksba8 libkscreensaver5 libksgrd4 libksieve4 libksieveui4 libksignalplotter4 libktnef4 libktorrent-l10n libktorrent4 libktpchat0 libktpcommoninternalsprivate3 libkunitconversion4 libkwineffects1abi4 libkwinglutils1abi1 libkwinnvidiahack4 libkworkspace4abi2 liblastfm1 liblightdm-qt-2-0 libllvm3.0 libloudmouth1-0 libmailcommon4 libmailimporter4 libmessagecomposer4 libmessagecore4 libmessagelist4 libmessageviewer4 libmuonprivate1 libmygpo-qt1 libokularcore1abi1 libopenal-data libopenal1 libopenconnect2 libopenctl0.8 libopenjpeg2 libopenshiva0.8 libplasma-geolocation-interface4 libplasmaclock4abi3 libplasmagenericshell4 libpoppler-qt4-4 libprocesscore4abi1 libprocessui4a libqalculate5 libqalculate5-data libqca2-plugin-ossl libqgpgme1 libqimageblitz4 libqoauth1 libqtglib-2.0-0 libqtgstreamer-0.10-0 libqtgstreamerui-0.10-0 libqtscript4-core libqtscript4-gui libqtscript4-network libqtscript4-sql libqtscript4-uitools libqtscript4-xml libqtshiva0.1 libreoffice-kde libreoffice-style-oxygen libruby1.9.1 libsolidcontrol4abi2 libsolidcontrolifaces4abi2 libspnav0 libsyndication4 libtag-extras1 libtaskmanager4abi3 libtelepathy-logger-qt4-1 libtelepathy-qt4-2 libtemplateparser4 libweather-ion6 libyaml-0-2 libzip2 lightdm-kde-greeter muon muon-installer muon-notifier muon-updater okular okular-extra-backends oxygen-cursor-theme partitionmanager pinentry-gtk2 pinentry-qt4 plasma-dataengines-addons plasma-dataengines-workspace plasma-desktop plasma-netbook plasma-scriptengine-python plasma-widget-facebook plasma-widget-folderview plasma-widget-kimpanel plasma-widget-menubar plasma-widget-message-indicator plasma-widget-networkmanagement plasma-widget-telepathy-chat plasma-widget-telepathy-presence plasma-widgets-addons plasma-widgets-workspace plymouth-theme-kubuntu-logo plymouth-theme-kubuntu-text print-manager python-pyudev python3-pykde4 python3-pyqt4 python3-sip qapt-deb-installer quassel quassel-data rdesktop rekonq ruby ruby1.9.1 skanlite software-properties-kde systemsettings tasks-icons ubuntu-release-upgrader-qt usb-creator-kde userconfig && sudo apt-get install ubuntu-desktop
...但是现在,我没有任何图形界面并且互联网不再起作用。
我该怎么办?我应该从哪里开始调试?
我认为一些重要的包裹已被删除。
我有终端访问权限,并且可以从另一台连接到互联网的计算机复制文件(如果需要的话)。
有什么办法维修是否可以通过安装 CD/DVD 进行?
答案1
您的第一步是让 Apt 连接到互联网...这里您有多个选择:
您是否可以选择插入以太网电缆?这应该立即建立连接,如果检查没有发现
/etc/network/interfaces
类似以下情况:auto eth0 iface eth0 inet dhcp
如果不行,请
nmcli
假设网络管理器仍处于安装状态(man nmcli
应该会很有帮助)。您需要列出可用的连接,然后使用以下命令启动 wifi:$ nmcli c NAME UUID TYPE Home 03e52aa 802-11-wireless Sat 24 May 2014 21:43:00 BST $ sudo nmcli c up id Home
您可以学习如何手动连接。说实话,网络管理器的存在是有原因的。除非您使用简单的有线连接,否则这并不简单。
如果您也禁用了网络管理器(或者它不起作用),我想我会回到
chroot
从 LiveCD 中进行安装(具有有效的网络连接)。这并不像听起来那么难。- 启动到 LiveCD(选择尝试 Ubuntu)。
- 像平常一样设置网络连接。
- 打开终端并运行
sudo fdisk -l
,并记下安装分区的 /dev/sdX# 名称。在此示例中,我假设/dev/sda1
。 - 用它挂载
sudo mount /dev/sda1 /mnt
— 如果您已经将它作为其他东西挂载(例如,如果您使用了 Nautilus 并且它作为挂载/media/ubuntu/...
),那么您需要/mnt
在以下两个命令中用其实际挂载点替换。 交叉安装各种系统内容。您不需要理解或更改此行:
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
- Chroot 于:
sudo chroot /mnt
。现在您已在旧安装中有效成为 root 用户。
无论如何,一旦连接上,事情就会变得简单得多。只需运行:
sudo apt-get install ubuntu-desktop
答案2
我建议您安装 gnome Sudo apt-get install gnome-xxx Xxx=version 安装 gnome 后安装 synaptic mgr n 添加/删除所有您想要的程序 编辑:
查看轻量级桌面环境
http://packages.ubuntu.com/precise/gtk2-engines-xfce
在手机上下载它将您的手机连接到您的系统转到/media/device 路径安装桌面环境并获取 gui
之后获取适合您系统的无线驱动程序包并使用您的 GUI 安装