sfc /scannow for Ubuntu

In Windows, sfc /scannow will check the system files with those available in OS disk and replace faulty, missing files. Is there anything similar available for Ubuntu 16.04 ?


Solution 1:

There are two things to do to replicate sfc /scannow:

  1. sudo debsums -s (sudo apt install debsums to install it) will list system files that have been changed or corrupted as well as what packages they come from. If none are listed, all system files are fine.

Use sudo debsums -sa to check configuration files as well. 0. sudo apt reinstall [package] will reinstall the package, reinstalling the file.