Error in sudo apt-get update (N: Ignoring file 'google.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension)

when I run

sudo apt-get update

I get this :

Reading package lists... Done
N: Ignoring file 'google.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'gcl' in directory '/etc/apt/sources.list.d/' as it has no filename extension

I tried to fix it by

sudo mv /etc/apt/sources.list.d/google-chrome.list /etc/apt/sources.list.d/gcl

but I received this :

mv: cannot stat '/etc/apt/sources.list.d/google-chrome.list': No such file or directory

how to fix this ?

9

1 Answer

Fix it this way...

cd /etc/apt/sources.list.d/ # change directory

sudo mv gcl google-chrome.list # rename it back to original

sudo rm -i google.list.save.1 # delete this bad .save file

ls -al *chrome*.list # confirm you only have one such .list file

Update #1:

  • The contents of the /etc/apt/sources.list.d/google-chrome.list file that you deleted was:

sudo -H gedit /etc/apt/sources.list.d/google-chrome.list # recreate this file

deb [arch=amd64] stable main

  • And the file at /etc/, should have the following line modified:

sudo -H gedit /etc/ # edit this file

Change this:

REPOCONFIG="deb stable main"

To this:

REPOCONFIG="deb [arch=amd64] stable main"
3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like