I updated ubuntu from 18.04 to 20.04 jammy. After the update, a red stop sign appeared and I am unable to update anything at all. Whatever I try, I get the following message:
E: Malformed entry 2 in list file /etc/apt/sources.list.d/google.list (Component)
E: The list of sources could not be read.
How to solve? I am basic ubuntu user
/etc/apt/sources.list.d/
is empty (user add files exist there) – guiverc Apr 14 '23 at 11:32/etc/apt/sources.list.d/google.list
this file, and is in line 2. Someone withsudo
rights on the system has added that file, as that directory is empty on a clean/new install. It contains invalid data on line 2 which needs correction, we cannot see what is on it, thus cannot advise on what's there, except it was added by user withsudo
privileges. – guiverc Apr 14 '23 at 11:39cat /etc/apt/sources.list.d/google.list
to view what is inside the file, but given its not essential I'd just erase it. Editing and adding a "#" to the beginning of line 2 will turn that line into a comment, meaning that line will be ignored, however the system stopped reading the file at line 2 when an error existed, so subsequent lines may also contain errors too. Please don't share screenshots, but copy/paste the contents of text files. – guiverc Apr 14 '23 at 11:52{}
tool of the editor field. – Bodo Apr 14 '23 at 11:53