如何删除 Unity 7.4.5

如何删除 Unity 7.4.5

我的电脑(Ubuntu 16.04.4)上安装了 Unity 和 Gnome。如何才能在不造成任何损害的情况下删除 Unity?当我搜索 Synaptic Manager(搜索 unity)时,结果有 500 行,我不明白要删除哪些包...

答案1

尝试一下:以纯文本模式启动

Switch on your computer. Wait until the BIOS has finished loading, and press and hold Shift, which will bring up the Grub menu.

Select the line which starts with Advanced options.

Select the line ending with (recovery mode)

Press Return and your machine will begin the boot process.

After a few moments, your PC should display a menu with a number of options, including Drop to root shell prompt. Press Return with this option highlighted.

The PC will start in a terminal.

运行以下命令:

以读写模式挂载分区

mount -o remount,rw /
mount --all

更新存储库

apt update

安装 aptitude 和 deborphan

apt install --reinstall aptitude deborphan

消除 gnome 中不必要的 unity 组件

aptitude remove '?and(?reverse-depends(unity),?not(?reverse-depends(?exact-name(gnome))))'

重新安装 gnome

apt install --reinstall gnome

消除孤立包

deborphan
apt --purge remove $(deborphan)
deborphan --libdevel
apt --purge remove $(deborphan --libdevel)
deborphan --find-config
dpkg --purge $(deborphan --find-config)

删除不必要的包

apt autoremove

删除下载的软件包

apt clean

重启系统

reboot

相关内容