A possible workaround (I've removed mine by applying the patched version to /var/lib/dpkg/info/nvidia-glx.postrm so I can't test this) however it might work by:
There may be a catch with this (which results in the same error occurring) - in that the files will be owned by xlibmesa instead of nvidia-glx. In this case you can try reinstalling nvidia-glx, then purging/removing (the setting up of the ownership of these files is done by the preinst script).
A possible workaround (I've removed mine by applying the patched version to /var/lib/ dpkg/info/ nvidia- glx.postrm so I can't test this) however it might work by:
1. removing nvidia-glx-new
2. purging/removing nvidia-glx
3. reinstall nvidia-glx-new
There may be a catch with this (which results in the same error occurring) - in that the files will be owned by xlibmesa instead of nvidia-glx. In this case you can try reinstalling nvidia-glx, then purging/removing (the setting up of the ownership of these files is done by the preinst script).