Permission denied error for /etc/sources.list

by Adam   Last Updated September 11, 2019 22:02 PM

This file is not found at the location /etc/sources.list when I use the command:

locate sources.list

Instead this file is found at


And when I attempt to view /etc/sources.list with cat or nano as root I get the error:

bash: /etc/sources.list:Permission denied

How can I be getting a permission denied error when I am root? This was not the case previously, and neither is it the case on my other Ubuntu LTS 18.04 installations.

Tags : bash permissions

Related Questions

bash: ./name.exe: Permission denied

Updated May 15, 2015 22:00 PM

setuid bit doesn't work

Updated August 20, 2015 18:01 PM

Permission problems while copying files

Updated September 11, 2015 12:01 PM