Cannot remove or reinstall broken openemr

rdh61 wrote on Saturday, February 04, 2012:

Hi,
While attempting to upgrade from openemr 3.2.0-1 to 4.1.0-1 on ubuntu 10.04, I managed to break the latter. Now I can neither remove or reinstall it. The error message tells me that: "cannot remove/upgrade the package because openemr is not installed at /var/www.
How can I resolve this?
Many thanks.