I was trying to install the latest version of mono... but now somehow my package manager is broken with the error: Error: Broken Count > 0.

When I try to install any package using the software manager GUI I get an error:

"Unable to install 'Synaptic Package Manager': Error while installing package: trying to overwrite '/usr/lib/mono/msbuild/15.0 which is also in package msbuild-sdkresolver 1"

When I try and do sudo apt --fix-broken install I get the error:

Trying to overwrite '/usr/lib/mono/msbuild/15.0', which is also in package msbuild-sdkresolver 1:15.4+xamarinxplat.2017.
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

And this results in a general package system broken error when trying to run the software updater graphically: package system broken oh no

How do I fix my mono install and package manager?

  • Have you tried removing mono completely first. It seems like you have two packages that have the same dependency – stratus Dec 3 at 23:02
  • I tried removing mono (I confirmed it was gone by typing mono -V and the command is not found). The problem still persists when I call sudo apt --fix-broken install – Leftover Salad Dec 3 at 23:21
  • I think another problem is that I still have a bunch of libmono-.deb and mono-.deb files kicking around in /var/cache/apt/archives? – Leftover Salad Dec 3 at 23:26
  • Still after apt purge mono-*; apt autoremove; apt install -f? Already tried dpkg-reconfigure -a? – Pablo Bianchi Dec 3 at 23:47
  • The problem is when I run apt autoremove I get an error: The following packages have unmet dependencies: mono-complete : Depends: ca-certificates-mono (= but is installed mono-devel : Depends: ca-certificates-mono (= but is installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). – Leftover Salad Dec 3 at 23:49

Your Answer

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

Browse other questions tagged or ask your own question.