Try with sudo tee to write in sources.list.d