$ 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
Os únicos arquivos em /etc/depmod.d/ubuntu.conf
:
search updates ubuntu built-in
Quanto às verificações de deb, sudo debsums -cs
costumava encontrar um milhão de arquivos perdidos, mas eu reinstalei todos os pacotes. Aqui estão os erros restantes:
/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
Aqui estão todos os erros com o initram, porque o mkinit não criou nada:
Eu fiz o comando sudo apt -f install
ter o mesmo resultado de antes. Eu nem tenho certeza se há um arquivo de log