在尝试对Debian进行定期更新之后,我最终得到了以下问题。
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:
e2fsprogsapt策略为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,但是由于某种原因它无法运行。由于我有一些杰西的后援,问题可能就在那里,但我不知道确切的问题是什么。
这是我的sources.list
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发布于 2018-09-01 13:48:48
这个
1 not fully installed or removed.apt输出中的行可能是指e2fsprogs,因为它不会出现在其他地方(因此它必须是挂起的配置才能运行它的postinst )。这意味着e2fsprogs不配置自己的原因与以前的一些apt操作有关。
要解除这种情况,编辑/var/lib/dpkg/info/e2fsprogs.postinst并将update-initramfs -u行更改为/usr/sbin/update-initramfs -u,因为这就是上面检查的内容。然后运行sudo dpkg --configure --pending;如果成功完成,您应该能够再次使用apt而没有错误(至少没有与e2fsprogs相关的错误)。
至于根本原因,可能是/usr/sbin不再在您的根路径上。如果是这样的话,我希望其他的维护脚本会失败.
https://unix.stackexchange.com/questions/466243
复制相似问题