When I tried to remove monodevelop, I got these errors:

root@So-so:~# sudo apt-get autoremove monodevelop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package monodevelop is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up monodoc-browser (2.10-1) ...
generating monodoc index...
grep: /etc/gre.d/*.conf: No such file or directory

Unhandled Exception: System.TypeLoadException: A type load exception has occurred.
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: A type load exception has occurred.
dpkg: error processing monodoc-browser (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

How can I fix this?

2 Answers 2


Try typing sudo apt-get purge monodoc-browser first


Firstly, you are using an invalid command to remove one package. To remove the monodevelop package, you should use apt-get remove monodevelop.

Secondly, you should attempt to purge monodoc-browser, which is trying to finish installing itself. Try using apt-get remove --purge monodoc-browser.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.