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 ?
2 Answers
There are two things to do to replicate sfc /scannow:
sudo debsums -s(sudo apt install debsumsto 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 -sato check configuration files as well.sudo apt reinstall [package]will reinstall the package, reinstalling the file.
I found a guide pretty easily with google search: https://help.ubuntu.com/community/FilesystemTroubleshooting
Have you seen that guide?
-
I was trying to correct OS files. Not sure this guide is the one I am looking for. Dec 7, 2016 at 21:39
-
You are asking for an equivalent of Windows's sfc. I think you are searching for fsck which is explained in that guide. There still might other tools.– TiriPonDec 7, 2016 at 21:43
-
I see. I could'nt quite understand what that guide says. I am not a pro with this. Thanks for the input. Dec 7, 2016 at 21:48
-
From what I read so far, it simply correct partition related errors. Just like the disc check we used to get in XP. I could be wrong though. Dec 7, 2016 at 21:49
-