Missing or corrupt packages

okay that’s the issue, you’re still using kernel 5.12 but this is no longer valid . try to update the kernel first before updating the rest