To clean and fix broken file you can use these commands

broken file linux - swipestra.com
Fix Broken File- Linux


So, Here is
How to clean and fix broken files in Linux Ubuntu with a simple command. which will clean your systems broken files applications and many more with some basic Linux command

sudo dpkg --configure -a

sudo apt-get install -f

You can answer yes to any type of prompt and let it try to resolve the issue for u

So based on this try this command it would clean up your system

sudo sh -c "apt-get update;apt-get dist-upgrade;apt-get autoremove;apt-get autoclean"

So, these can help you to clean and fix the broken file in Linux and Ubuntu