The problem is that
/usr/lib/freecad/Mod is a system-managed location, so modifying it yourself can break the system's ability to manage it. The place you should put such files is
~/.FreeCAD/Mod, so if you have anything you want in the /usr/lib/freecad/Mod location, move it to ~/.FreeCAD/Mod.
Since your system is in a semi-broken state, I think the best thing to do is to clear things out completely. Run
which should get rid of every FreeCAD package you have.
Then just to make sure everything's completely gone run
Code: Select all
sudo rm -rf /usr/share/freecad && sudo rm -rf /usr/lib/freecad
Then install freecad again.