After the error reported, the upgrade process gave the following output
The upgrade has aborted. Your system could be in an unusable state. A
recovery will run now (dpkg --configure -a).
Setting up ntp (1:4.2.8p15+dfsg-1ubuntu2) ...
ntp-systemd-netif.service is a disabled or a static unit not run
Public bug reported:
That was during upgrade from Ubuntu 20.04 LTS to Ubuntu 22.4 LTS
ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: ntp 1:4.2.8p15+dfsg-1ubuntu2
ProcVersionSignature: Ubuntu 5.4.0-173.191-generic 5.4.265
Uname: Linux 5.4.0-173-generic x86_64
ApportVersion: 2.20.11-0ubu