Ubuntu 20.10 自动卸载

Ubuntu 20.10 自动卸载

昨晚我的笔记本电脑被锁住了。我把它唤醒来解锁,结果它一直显示自动解锁失败。由于我无法在登录屏幕上执行任何操作,因此决定通过电源按钮强制关机来重新启动。当它重新启动时,它启动到 20.04,而 20.10 就像风中放的屁一样消失了。我不记得最后运行的内核是什么,但当前的内核是 5.8.0-25-generic,通过运行以下命令检查版本cat /proc/version

Linux version 5.8.0-25-generic (buildd@lcy01-amd64-022) (gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0, GNU ld (GNU Binutils for Ubuntu) 2.35.1) #26-Ubuntu SMP Thu Oct 15 10:30:38 UTC 2020.

我还运行了dpkg --list | grep linux-image命令并得到了以下输出:

rc  linux-image-4.15.0-121-generic                   4.15.0-121.123                             amd64        Signed kernel image generic
rc  linux-image-4.4.0-193-generic                    4.4.0-193.224                              amd64        Signed kernel image generic
rc  linux-image-4.4.0-31-generic                     4.4.0-31.50                                amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-5.4.0-52-generic                     5.4.0-52.57                                amd64        Signed kernel image generic
ii  linux-image-5.7.0-15-generic                     5.7.0-15.16                                amd64        Signed kernel image generic
ii  linux-image-5.8.0-25-generic                     5.8.0-25.26                                amd64        Signed kernel image generic
rc  linux-image-5.8.0-26-generic                     5.8.0-26.27                                amd64        Signed kernel image generic
rc  linux-image-extra-4.4.0-31-generic               4.4.0-31.50                                amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-unsigned-5.10.0-051000rc1-generic    5.10.0-051000rc1.202010291359              amd64        Linux kernel image for version 5.10.0 on 64 bit x86 SMP
rc  linux-image-unsigned-5.10.0-051000rc1-lowlatency 5.10.0-051000rc1.202010291359              amd64        Linux kernel image for version 5.10.0 on 64 bit x86 SMP
ii  linux-image-unsigned-5.8.0-26-generic            5.8.0-26.27                                amd64        Linux kernel image for version 5.8.0 on 64 bit x86 SMP

这让我相信我在卸载某些软件包时可能意外更改了某些内容,我最后删除的是 Evolution 电子邮件客户端,对此我使用了以下命令集:

sudo apt-get --purge remove evolution evolution-exchange evolution-plugins evolution-common evolution-webcal

然后我跑去sudo rm /usr/share/indicators/messages/applications/evolution 确保与其相关的一切都已被删除。

然后我还运行了一次,sudo apt-get purge evolution以确保一切都消失了,因为其他一些应用程序给我指示一些痕迹仍然存在(这是在 KMail 安装过程中)。然后我运行dpkg -l|grep -i evolution并最终删除了与运行上一个命令的 evolutions 相关的所有内容。

这些是否可能导致我重新启动时启动到 20.04?

答案1

这是我后来所做的事情,因为最初的内核重新安装没有做任何事情,或者至少没有产生所需的结果。

我运行以下命令来完全删除 GNOME,因为我想也许如果我删除窗口管理部分,它只会有所帮助,因为依赖性会更少:

sudo apt purge adwaita-icon-theme gedit-common gir1.2-gdm-1.0 gir1.2-gnomebluetooth-1.0 gir1.2-gnomedesktop-3.0 gir1.2-goa-1.0 gnome-accessibility-themes gnome-bluetooth gnome-calculator gnome-calendar gnome-characters gnome-control-center gnome-control-center-data gnome-control-center-faces gnome-desktop3-data gnome-font-viewer gnome-getting-started-docs gnome-getting-started-docs-ru gnome-initial-setup gnome-keyring gnome-keyring-pkcs11 gnome-logs gnome-mahjongg gnome-menus gnome-mines gnome-online-accounts gnome-power-manager gnome-screenshot gnome-session-bin gnome-session-canberra gnome-session-common gnome-settings-daemon gnome-settings-daemon-common gnome-shell gnome-shell-common gnome-shell-extension-appindicator gnome-shell-extension-desktop-icons gnome-shell-extension-ubuntu-dock gnome-startup-applications gnome-sudoku gnome-system-monitor gnome-terminal gnome-terminal-data gnome-themes-extra gnome-themes-extra-data gnome-todo gnome-todo-common gnome-user-docs gnome-user-docs-ru gnome-video-effects language-pack-gnome-en language-pack-gnome-en-base language-pack-gnome-ru language-pack-gnome-ru-base language-selector-gnome libgail18 libgail18 libgail-common libgail-common libgnome-autoar-0-0 libgnome-bluetooth13 libgnome-desktop-3-19 libgnome-games-support-1-3 libgnome-games-support-common libgnomekbd8 libgnomekbd-common libgnome-menu-3-0 libgnome-todo libgoa-1.0-0b libgoa-1.0-common libpam-gnome-keyring libsoup-gnome2.4-1 libsoup-gnome2.4-1 nautilus-extension-gnome-terminal pinentry-gnome3 yaru-theme-gnome-shell

然后,我运行了autopurge命令sudo apt autopurge。接下来,我desktop install再次运行sudo apt install ubuntu-desktop命令,然后运行updateupgrade commands,最后运行sudo reboot,当它启动时,它启动到 20.10/

现在,它有多稳定?我不知道,因为我还在检查一切。如果我发现任何异常,我会发表进一步的评论。

相关内容