Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

wassim@wassim-HP-250-G1-Notebook-PC:~$ sudo apt-get update
[sudo] password for wassim: 
E: Malformed line 1 in source list /etc/apt/sources.list.d/google.list (dist parse)
E: The list of sources could not be read.
wassim@wassim-HP-250-G1-Notebook-PC:~$ sudo apt-get upgarde
E: Invalid operation upgarde
wassim@wassim-HP-250-G1-Notebook-PC:~$ ^C
wassim@wassim-HP-250-G1-Notebook-PC:~$ 
share|improve this question

marked as duplicate by Braiam, Avinash Raj, karel, Danatela, Eric Carvalho May 30 at 10:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Are you looking for a fix on your source list? –  Virusboy May 30 at 1:42
    
You need to check the file : /etc/apt/sources.list.d/google.list Please try the following command and copy the content of the file here : cat /etc/apt/sources.list.d/google.list –  Ahmed Sghaier May 30 at 1:43
    
wassim@wassim-HP-250-G1-Notebook-PC:~$ sudo apt-get update [sudo] password for wassim: E: Malformed line 1 in source list /etc/apt/sources.list.d/google.list (dist parse) E: The list of sources could not be read. wassim@wassim-HP-250-G1-Notebook-PC:~$ sudo apt-get upgarde E: Invalid operation upgarde wassim@wassim-HP-250-G1-Notebook-PC:~$ ^C wassim@wassim-HP-250-G1-Notebook-PC:~$ cat /etc/apt/sources.list.d/google.liste cat: /etc/apt/sources.list.d/google.liste: No such file or directory wassim@wassim-HP-250-G1-Notebook-PC:~$ ^C –  simo 32 May 30 at 1:48
    
You will need to try sudo apt-get upgrade for the second command (not upgarde). Your sources look to be messed up as well. When was the last time this worked? –  No Time May 30 at 1:49
    
@simo32 you have a typo: /etc/apt/sources.list.d/google.liste should be /etc/apt/sources.list.d/google.list –  No Time May 30 at 1:55

1 Answer 1

up vote 0 down vote accepted

You need to fix your google sources file /etc/apt/sources.list.d/google.list

try :

sudo gedit /etc/apt/sources.list.d/google.list

and replace the line "deb dl.google.com/linux/chrome/dep/stable main" in that file with the following :

deb http://dl.google.com/linux/chrome/deb/ stable main

a space is needed before stable and before that it is "deb" instead of "dep"

now you can do a "sudo apt-get update" with no errors

PS : you can use nano or vim.tiny or another editor instead of gedit if you prefer.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.