丢失 Ubuntu 升级 18.04.LTS 会话 sudo do-release-upgrade -d

丢失 Ubuntu 升级 18.04.LTS 会话 sudo do-release-upgrade -d

在升级到 18.04 LTS 时,有人问我这个问题

Configuration file '/etc/sysctl.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** sysctl.conf (Y/I/N/O/D/Z) [default=N] ? 

我不小心点击了Ctrl-C现在我无法重新启动该过程,这让我

Checking for a new Ubuntu release
Upgrades to the development release are only 
available from the latest supported release.

我试过了sudo screen -D -r,但是屏幕没有安装,我的机器不允许我安装它,说

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

我该如何修复它?

答案1

感谢 Arul Selvan你的帖子

尝试过

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get update
sudo apt-get dist-upgrade

因此,重启后我看到的是黑屏。

创建安装U盘并启动,创建启动修复日志

http://paste.ubuntu.com/p/M2yv3dXjqs/

不确定如何继续。如果我去维修,它会说

当前会话处于传统模式。请重新启动计算机,并在 EFI 会话中使用此软件。这将启用此功能。例如,使用 Boot-Repair-Disk-64bit 的 live-USB (www.sourceforge.net/p/boot-repair-cd),确保您的 BIOS 设置为以 EFI 模式启动 USB。

所以我所做的是将 USB 磁盘上的 BIOS 更改为 EFI 模式,重新启动到活动磁盘并再次安装启动修复。

https://help.ubuntu.com/community/Boot-Repair

它解决了我的问题。

相关内容