Debian 测试中的 e2fsprogs 问题 - 无法升级软件包

Debian 测试中的 e2fsprogs 问题 - 无法升级软件包

在尝试对 Debian Buster 进行定期更新后,我最终遇到了以下问题。

The following package was automatically installed and is no longer required:
  libraw16
Use 'apt autoremove' to remove it.
The following NEW packages will be installed:
  libraw19
The following packages will be upgraded:
  brave console-setup console-setup-linux e2fslibs glib-networking glib-networking-common glib-networking-services inkscape keyboard-configuration libcom-err2 libcomerr2
  libcupsfilters1 libgegl-0.4-0 libgsl23 libgslcblas0 libllvm6.0 liborcus-0.13-0 libqt5qml5 libqt5quick5 librsvg2-2 librsvg2-common libss2 libwpg-0.3-3 libzmq5 logrotate
  skypeforlinux slack-desktop
27 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/262 MB of archives.
After this operation, 2,084 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Reading changelogs... Done
Preconfiguring packages ...
Setting up e2fsprogs (1.44.4-2) ...
/var/lib/dpkg/info/e2fsprogs.postinst: 8: /var/lib/dpkg/info/e2fsprogs.postinst: update-initramfs: not found
dpkg: error processing package e2fsprogs (--configure):
 installed e2fsprogs package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 e2fsprogs

apt 策略返回以下内容initramfs-tools

initramfs-tools:
  Installed: 0.132
  Candidate: 0.132
  Version table:
 *** 0.132 990
        990 http://ftp.ro.debian.org/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status
     0.120+deb8u3 500
        500 http://ftp.debian.org/debian jessie/main amd64 Packages

所以,看起来,我确实有update-initramfs,但由于某种原因它不会运行。由于我有一些杰西向后移植,问题可能就在那里,但我不知道确切的问题是什么。

这是我的来源列表

deb http://ftp.ro.debian.org/debian/ buster main non-free contrib
deb-src http://ftp.ro.debian.org/debian/ buster main non-free contrib

deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security buster/updates main contrib non-free

deb http://ftp.ro.debian.org/debian/ buster-updates main contrib non-free
deb-src http://ftp.ro.debian.org/debian/ buster-updates main contrib non-free

答案1

1 not fully installed or removed.

输出中的行apt可能指的是e2fsprogs,因为它不会出现在其他地方(因此它必须等待配置才能postinst运行)。这意味着无法自行配置的原因与之前的某些操作e2fsprogs有关。apt

要解除这种情况,请编辑该行/var/lib/dpkg/info/e2fsprogs.postinst并将其更改为,因为这是上面检查的内容。然后运行;如果成功完成,您应该能够再次使用而不会出现错误(至少不会出现与.update-initramfs -u/usr/sbin/update-initramfs -usudo dpkg --configure --pendingapte2fsprogs

至于根本原因,可能是它/usr/sbin不再位于您的根路径上。如果说在这种情况下,我预计其他维护者脚本将会失败......

相关内容