I am a beginner in Ubuntu.I executed the following command:sudo rm /var/lib/apt/lists/lock due to the solution I got from here.Now my system gets hanged more frequently while running several applications. I dont know if its because I deleted lock folder or not because in that solution provided they said deleting lock can have serious consequences So can someone please suggest a means to restore it. Only this folder is missing.
Accidentally deleted lock folder
ubuntu;lock
If you have deleted a folder by accident, just restore it from your backups.If you do not have any backups, you shouldn't delete random folders in the first place.Furthermore, it's often suboptimal to follow random advice from the internet, without thinking through its consequences. A good read on this topic is DontBreakDebian (Ubuntu is based on Debian; but keep in mind that the two are not the same).Finally: the /var/lib/apt/lists/lock file (not folder) is solely used by apt (and its various frontends). It helps preventing multiple instances of apt to run in parallel (to keep you from installing packages while another install process is running - which could lead to an inconsistent package database).Software that is not related to package management will not work any more stable or unstable if this folder is missing (or not).So your real problem (system lockups,...) is not related to this folder.