An error occurs each time I try to start "Software Management". It starts downloading package info from the repository and after some time leaves an error message saying "History - SQL logic error or
missing database". I tried to delete the repositories so that I can reconfigure them. However, I can not delete Main update repository. Please suggest.

Thank you.