That directory *must* exists. What if you go one level at a time: cd /etc cd apt cd sources.list.d Where does it fail?