apt upgrade fails with an error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Running now lubuntu 20.04 daily image.
While doing sudo apt update and sudo apt upgrade this error encountered.
----------------
Processing triggers for initramfs-tools (0.136ubuntu1) ...
update-initramfs: Generating /boot/initrd.
cp: cannot create regular file '/var/tmp/
E: /usr/share/
update-initramfs: failed for /boot/initrd.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
-------------
This happened yesterday and today.
Please look into this error.
It also happens here.
user@laptop:/$ sudo apt upgrade img-5.4. 0-14-generic mkinitramfs_ fmVQNe/ usr/share/ plymouth/ themes/ spinner/ watermark. png': No such file or directory initramfs- tools/hooks/ plymouth failed with return 1. img-5.4. 0-14-generic with 1.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up initramfs-tools (0.136ubuntu1) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.136ubuntu1) ...
update-initramfs: Generating /boot/initrd.
cp: cannot create regular file '/var/tmp/
E: /usr/share/
update-initramfs: failed for /boot/initrd.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
user@laptop:/$