I restored a container from an rsync backup and I'm experiencing some errors, I think it's viewing older packages in some way that don't exist.
apt upgrade output:
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.
12 not fully installed or removed.
Need to get 0 B/231 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package linux-image-extra-virtual (--configure):
dependency problems - leaving unconfigured
dpkg: error processing package snap-confine (--configure):
package snap-confine is not ready for configuration
cannot configure (current status 'half-installed')
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried doing a dpkg --configure -a and apt autoremove but those don't appear to help