1.趕上了The list of sources could not be readchrome
N: Ignoring file 'google-chrome.list.6' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'google-chrome.list.3' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'google-chrome.list.10' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'google-chrome.list.7' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'google-chrome.list.8' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'google-chrome.list.5' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'google-chrome.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'google-chrome.list.4' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'google-chrome.list.2' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'google-chrome.list.9' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension E: Malformed line 1 in source list /etc/apt/sources.list.d/google-chromw.list (type) E: The list of sources could not be read.
2.解決方法-刪除指定文件google
sudo rm /etc/apt/sources.list.d/google-chrome.list.*
注意:注意目錄名和文件名spa