Code 1:
sudo dpkg -r google-chromeor
sudo apt-get remove google-chrome
Code 2, when commands similar to the above failed.
First:
grep -nsR "google" /etc/apt sudo apt-key list
If having difficulties with the package name, one can use the following command.
dpkg -S /opt/google
Then find the list and key information for google-chrome respectively, after which try the code below. Please note that the contents after "rm" and "del" depends on the out put of code 2 above.
sudo rm /etc/apt/sources.list.d/google-chrome.list sudo apt-key del 7FAC5991 sudo apt-get update
At last we can remove the chrome again, with code 1.