Debian 升级失败 - 现在无法使用 sudo

Debian 升级失败 - 现在无法使用 sudo

我试图将 VPS 从 Buster 升级到 Bookworm。

我按照以下步骤操作:

   44  20/Aug - 21:26:11 sudo apt update && sudo apt upgrade -y
   45  20/Aug - 21:26:38 sudo apt --purge autoremove
   46  20/Aug - 21:26:48 sudo vi /etc/apt/sources.list
   47  20/Aug - 21:27:48 sudo apt update
   48  20/Aug - 21:29:05 sudo vi /etc/apt/sources.list
   49  20/Aug - 21:29:38 sudo apt update
   50  20/Aug - 21:30:15 sudo apt upgrade --without-new-pkgs -y
   51  20/Aug - 21:32:36 sudo apt full-upgrade -y

对sources.list 进行的额外编辑是为了处理新的安全存储库结构。

升级失败并出现错误:

Setting up libc6:amd64 (2.36-9+deb12u1) ...
/usr/bin/perl: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
dpkg: error processing package libc6:amd64 (--configure):
 installed libc6:amd64 package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 libc6:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

在尝试调试/解决问题时,我发现我无法再 sudo / 访问 root 帐户(禁用密码登录 root )。我收到以下错误:

$ sudo su
sudo: account validation failure, is your account locked?

有任何想法吗?

相关内容