kernel - Error while installing or configuring packages: cannot stat '/boot/vmlinuz-4.4.0-45-generic' - Ask Ubuntu


i have ubuntu 16.04 64b , have errors when try install package or using sudo dpkg --configure -a

reading package lists... done building dependency tree        reading state information... done 0 upgraded, 0 newly installed, 0 remove , 126 not upgraded. 3 not installed or removed. after operation, 0 b of additional disk space used.`  ...   setting linux-signed-image-4.4.0-45-generic (4.4.0-45.66) ... cp: cannot stat '/boot/vmlinuz-4.4.0-45-generic': no such file or directory dpkg: error processing package linux-signed-image-4.4.0-45-generic (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of linux-signed-image-generic:  linux-signed-image-generic depends on linux-signed-image-4.4.0-45-generic; however:   package linux-signed-image-4.4.0-45-generic not configured yet. dpkg: error processing package linux-signed-image-generic (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-signed-generic:  linux-signed-generic depends on linux-signed-image-generic (= 4.4.0.45.48); however:   package linux-signed-image-generic not configured yet. dpkg: error processing package linux-signed-generic (--configure):  dependency problems - leaving unconfigured no apport report written because error message indicates followup error previous failure.                                                                                                          no apport report written because error message indicates followup error previous failure.             setting liboctomap1.6v5 (1.6.8+dfsg-2.1) ... setting octomap-tools (1.6.8+dfsg-2.1) ... processing triggers libc-bin (2.23-0ubuntu3) ... errors encountered while processing:  linux-signed-image-4.4.0-45-generic  linux-signed-image-generic  linux-signed-generic  

i have tried:

sudo apt-get update sudo apt-get autoremove 

and same errors.

dpkg list is:

sudo dpkg --list 'linux-image*' desired=unknown/install/remove/purge/hold | status=not/inst/conf-files/unpacked/half-conf/half-inst/trig-await/trig-pend |/ err?=(none)/reinst-required (status,err: uppercase=bad) ||/ name                                         version                     architecture                description +++-============================================-===========================-===========================-============================================================================================= un  linux-image                                  <none>                      <none>                      (no description available) rc  linux-image-4.4.0-31-generic                 4.4.0-31.50                 amd64                       linux kernel image version 4.4.0 on 64 bit x86 smp ii  linux-image-4.4.0-42-generic                 4.4.0-42.62                 amd64                       linux kernel image version 4.4.0 on 64 bit x86 smp ii  linux-image-4.4.0-45-generic                 4.4.0-45.66                 amd64                       linux kernel image version 4.4.0 on 64 bit x86 smp rc  linux-image-extra-4.4.0-31-generic           4.4.0-31.50                 amd64                       linux kernel modules version 4.4.0 on 64 bit x86 smp ii  linux-image-extra-4.4.0-42-generic           4.4.0-42.62                 amd64                       linux kernel modules version 4.4.0 on 64 bit x86 smp ii  linux-image-extra-4.4.0-45-generic           4.4.0-45.66                 amd64                       linux kernel modules version 4.4.0 on 64 bit x86 smp ii  linux-image-generic                          4.4.0.45.48                 amd64                       generic linux kernel image 

if linux-signed-i 4.4.0-45.66 amd64 signed kernel image generic iu linux-signed-i 4.4.0.45.48 amd64 signed generic linux kernel image

dpkg -s linux-signed-image-4.4.0-45-generic package: linux-signed-image-4.4.0-45-generic status: install ok half-configured priority: optional section: utils installed-size: 21 maintainer: canonical kernel team <kernel-team@lists.ubuntu.com> architecture: amd64 source: linux-signed version: 4.4.0-45.66 depends: sbsigntool, linux-image-4.4.0-45-generic (= 4.4.0-45.66) description: signed kernel image generic kernel image generic. version of signed canonical's uefi signing key. built-using: linux (= 4.4.0-45.66)

i have tried reinstall packagebut same error:

sudo apt-get -f install linux-signed-image-4.4.0-45-generic ... setting linux-signed-image-4.4.0-45-generic (4.4.0-45.66) ... cp: cannot stat '/boot/vmlinuz-4.4.0-45-generic': no such file or directory dpkg: error processing package linux-signed-image-4.4.0-45-generic (--configure): ...

so have problem in linux-signed-image-4.4.0-45-generic half-configured because there no /boot/vmlinuz-4.4.0-45-generic file. guess happen after fixed uefi boot problem using boot-repair. how can solve it? in advance

short version of answer;
boot selected kernel know have been running well, check output of

$ uname -a

make sure keep version of kernel (linux-image... above) ,

$ sudo apt-get purge ...

... on packages list other version numbers, including 4.4.0-45 version (i'm assuming cannot run/booted).

when have purged unused ones, should able re-install 4.4.0-45, boot , optionally remove used one.

i'd recommend keep at least 1 version other latest, (that know work) safety/backup/repair...

why?
guess have run out of space on /boot ... or possibly somewhere else - above should free space in relevant places, regardless of problem is.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User