You’ll have a similar error on Windows if you remove an application’s folders and you try to use the uninstaller. The uninstaller relies on information you just removed. Either use the uninstaller OR delete all files relevant to the application, not both.
I prefer POL - has easy to use regedit and it is easier to manage virtual drives on it.