apt upgrade on new image fails (nullboot)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
New
|
Undecided
|
Unassigned |
Bug Description
This is on a brand new instance
# rm -rf /var/lib/
# apt upgrade -y -o Dpkg::Options:
...
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nullboot (0.4.0-
2023/05/22 18:26:16 cannot trust boot assets used for current boot: open /sys/kernel/
dpkg: error processing package nullboot (--configure):
installed nullboot package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
nullboot
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
This is the first command run on a brand new Ubuntu 22.04 image in Azure China.
The same issue does not occur in non-China Azure.
The package could not be removed, reinstalled, or installed as 0.4.0-0ubuntu0.
Any workarounds or recommendations appreciated.
As a workaround I added `apt hold nullboot` beforehand, which unblocked me.