I tried to delete file 'lock' file in directory /var/lib/apt/lists with with sudo and with sudo -s, but system shows message that operation not permitted, also I can't open /var/lib/apt/list/partial, also operation not permitted. What's the reason of this problem?

  • 4
    Better question: Why are trying to do that? What problems are you trying to solve ? – GabrielaGarcia Nov 12 '18 at 12:03
  • Maybe the files are locked? – Babblo Nov 12 '18 at 13:51
  • Does rebooting solve it? – Biswapriyo Nov 12 '18 at 16:40
  • rebooting doesn't solve it, files not locked, I can delete a and i atributes from file, also owner of lock file is root. I need to delete this file because I think this file block apt-get update command – karpon Nov 12 '18 at 19:05
  • Can you do sudo rm /var/lib/apt/lists/* -vf? And then update? – Aulis Ronkainen Nov 12 '18 at 20:28

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.