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
.
OR
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?
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