AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1302799
Accepted
João Pimentel Ferreira
João Pimentel Ferreira
Asked: 2020-12-26 12:31:37 +0800 CST2020-12-26 12:31:37 +0800 CST 2020-12-26 12:31:37 +0800 CST

如何删除 Ubuntu 并保留 Lubuntu?

  • 772

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

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

lubuntu
  • 2 2 个回答
  • 988 Views

2 个回答

  • Voted
  1. kyodake
    2020-12-26T12:43:08+08:002020-12-26T12:43:08+08:00

    你可以试试这个

    以纯文本模式启动

    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-get update
    

    安装 aptitude 和 deborphan

    apt-get install --reinstall aptitude deborphan
    

    去掉 lubuntu 中不需要的 gnome 组件

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

    重新安装 lubuntu-desktop

    apt-get install --reinstall lubuntu-desktop
    

    消除孤儿包

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

    删除不必要的包

    apt-get autoremove
    

    删除下载的包

    apt-get clean
    

    重启系统

    reboot
    
    • 5
  2. Best Answer
    guiverc
    2020-12-27T03:00:05+08:002020-12-27T03:00:05+08:00

    正如我在Ask Ubuntu上提到的那样,我希望有一个简单的

    sudo apt 删除 ubuntu-desktop

    去做你想做的事。我最近没有在添加了另一个桌面的 18.04 Ubuntu 基础安装上这样做,所以如果没有测试,我无法确定是否会出现任何问题。我不希望有任何结果(结果可能会因您所做的更改而有所不同)。

    正如我在Ask Ubuntu上所说的那样,我会输入命令并扫描要删除的软件包的输出,以寻找任何潜在的问题(不期待任何问题,但比抱歉更安全),然后继续。如果我注意到任何问题,我会在删除sudo apt install之前修复它们(这将导致软件包被标记为手动安装;因此它们将保留),或者在它之后(相同的最终效果,在删除它之后)可能需要重新下载软件包是不同的;微小的带宽命中)ubuntu-desktop

    多年来,我所有的安装都是 Ubuntu 桌面,后来添加了我想要的桌面,因为我的 ISP 只允许免费下载 Ubuntu ISO 的带宽配额,更新的软件包也是免费的,所以之后添加lubuntu-desktop(等)并没有使用我每月的带宽配额。他们不再提供这个,所以我不再这样做了。

    如果您担心效果,我会在虚拟机上安装 Ubuntu Desktop apt install lubuntu-desktop,重启虚拟机,然后执行sudo apt remove lubuntu-desktop,重启虚拟机并寻找不良影响;我不期望任何,但目前我不愿意做那个测试。

    • https://packages.ubuntu.com/bionic/ubuntu-desktop
    • https://packages.ubuntu.com/bionic/lubuntu-desktop

    这个答案首先写在discourse.ubuntu.com上,因此在我的措辞中引用了这个网站

    • 2

相关问题

  • 我无法在 Hotot 中打开 URL

  • 如何使用 .html 文件作为桌面背景/壁纸?

  • 有没有办法强制 Ubuntu 对我的适配器使用 WPA?

  • 安装在 Live USB 驱动器上的顶级软件,用于 Windows 恢复

  • 替换 /home 后丢失 LXDE 菜单

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve