$ sudo apt install -f linux-image-4.4.0-38-generic
Setting up linux-image-4.4.0-38-generic (4.4.0-38.57) ...
Running `depmod`.
sh: 1: /usr/sbin/mkinitrd: not found
Failed to create initrd image.
dpkg: error processing package linux-image-4.4.0-38-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
linux-image-4.4.0-38-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
$apt-cache policy linux-image-4.4.0-38-generic
linux-image-4.4.0-38-generic:
Installed: 4.4.0-38.57
Candidate: 4.4.0-38.57
Version table:
*** 4.4.0-38.57 500
500 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
100 /var/lib/dpkg/status
中唯一的文件/etc/depmod.d/ubuntu.conf
:
search updates ubuntu built-in
至于 deb 检查,sudo debsums -cs
过去曾发现有上百万个缺失文件,但我重新安装了所有软件包。以下是剩余的错误:
/usr/lib/python3/dist-packages/cupshelpers/__pycache__/__init__.cpython-35.pyc
/usr/lib/python3/dist-packages/cupshelpers/__pycache__/config.cpython-35.pyc
/usr/lib/python3/dist-packages/cupshelpers/__pycache__/cupshelpers.cpython-35.pyc
/usr/lib/python3/dist-packages/cupshelpers/__pycache__/installdriver.cpython-35.pyc
/usr/lib/python3/dist-packages/cupshelpers/__pycache__/openprinting.cpython-35.pyc
/usr/lib/python3/dist-packages/cupshelpers/__pycache__/ppds.cpython-35.pyc
/usr/lib/python3/dist-packages/cupshelpers/__pycache__/xmldriverprefs.cpython-35.pyc
由于 mkinit 没有给出任何结果,因此 initram 出现的所有错误如下:
我执行的sudo apt -f install
命令与之前的结果相同。我甚至不确定是否有日志文件