In the Terminal whole doing sudo apt-get update I am often getting the message

ignoring 'get deb.list.bck in directory '/etc/apt/sources.list.d' as it has invalid filename extension

What is the correct extension?


Check for the file ended with deb.list.bck in /etc/apt/sources.list.d directory.If you found any then move it to another directory(Home).

It allow only the files ended with .list, .list.save, .list.bak.


Try this simple command to move all the files ended with .bck in /etc/apt/sources.list.d directory to your ~/Desktop directory.

sudo find /etc/apt/sources.list.d/ -type f -name "*.bck" -exec mv {} ~/Desktop \;

That looks like a backup you made once of your deb.list file - even though I have checked and I don't have such a file in my setup - which explains the .bck extension.

Can you please confirm if you have a deb.list file in there?


The correct extension is .list and .list.save (for backups).


We can also fix this issue like this:

sudo mv /etc/apt/sources.list.d/deb.list.bck /etc/apt/sources.list.d/deb.list

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.