Here, I'd recommended manually deleting the partial, damaged packages and the packages which depend upon them, or, deleting all packages (except firmware) and reinstalling them. For the latter, I'd provided three example commands to record the current packages, delete all, then install replacements. I'd also noted the locate(1) database had been damaged and suggested two methods for repairs.
rockworldmi[jaypatelani] elected to reinstall. Internet connectivity was inconsistent, and the problem reoccurred.