如何删除 Ubuntu 并保留 Lubuntu?

Joã*_*ira 3 uninstall lubuntu

Ubuntu 很棒,因此我将它安装在我父亲的计算机上。但是计算机很旧,每次升级后 Ubuntu 都会变慢(现在是 18.04 LTS 版本)。因此我在它上面安装了 Lubuntu。现在他只使用 Lubuntu,他对此非常满意。

如何从同时拥有 Ubuntu 和 Lubuntu 的计算机中删除 Ubuntu?它们都在同一个分区中。

kyo*_*ake 5

你可以试试这个

以纯文本模式启动

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.
Run Code Online (Sandbox Code Playgroud)

运行这些命令:

以读写模式挂载分区

mount -o remount,rw /
mount --all
Run Code Online (Sandbox Code Playgroud)

更新存储库

apt-get update
Run Code Online (Sandbox Code Playgroud)

安装 aptitude 和 deborphan

apt-get install --reinstall aptitude deborphan
Run Code Online (Sandbox Code Playgroud)

去掉lubuntu中不需要的gnome组件

aptitude remove '?and(?reverse-depends(gnome),?not(?reverse-depends(?exact-name(lubuntu-desktop))))'
Run Code Online (Sandbox Code Playgroud)

重新安装 lubuntu-desktop

apt-get install --reinstall lubuntu-desktop
Run Code Online (Sandbox Code Playgroud)

消除孤儿包

deborphan
apt-get --purge remove $(deborphan)
deborphan --libdevel
apt-get --purge remove $(deborphan --libdevel)
deborphan --find-config
dpkg --purge $(deborphan --find-config)
Run Code Online (Sandbox Code Playgroud)

删除不需要的包

apt-get autoremove
Run Code Online (Sandbox Code Playgroud)

删除下载的包

apt-get clean
Run Code Online (Sandbox Code Playgroud)

重启系统

reboot
Run Code Online (Sandbox Code Playgroud)

  • 看起来很危险!一个小错误可能会破坏系统。 (3认同)