title: E: Malformed entry 1 in list file /etc/apt/sources.list.d/docker.list (Component)
body: <p>I started a new class and I am new in using Linux. I use debian and I follow to teacher guide to install git and docker. I entered all the commands in the terminal until I had some error.</p>
  <ol>
  <li><p><code>sudo apt install git</code> worked</p>
  </li>
  <li></li>
  </ol>
  <pre><code>git config --global user.name &quot;Ion Popescu&quot;
  git config --global user.email &quot;ion.popescu@gmail.com&quot;
  git config --global core.editor vim
  git config --global core.pager more
  git config --global help.autocorrect true 
  </code></pre>
  <p>all worked</p>
  <ol start="3">
  <li><p><code>sudo apt-get -y remove docker docker-engine docker.io</code> worked</p>
  </li>
  <li></li>
  </ol>
  <pre><code>sudo apt update
  sudo apt install -y apt-transport-https ca-certificates wget
  sudo apt install -y software-properties-common ssh
  </code></pre>
  <p>worked all of them</p>
  <p>5.</p>
  <pre><code>wget https://download.docker.com/linux/debian/gpg
  sudo apt-key add gpg
  </code></pre>
  <p>worked</p>
  <ol start="6">
  <li><code>echo &quot;deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable&quot; | sudo tee -a /etc/apt/sources.list.d/docker.list</code> worked</li>
  </ol>
  <p>Now I have to enter these lines but I get an error after the first one</p>
  <p>7.</p>
  <pre><code>sudo apt update
  sudo apt-cache policy docker-ce
  sudo apt -y install docker-ce
  </code></pre>
  <p>E: Malformed entry 1 in list file /etc/apt/sources.list.d/docker.list (Component)
  E: The list of sources could not be read.</p>
  <p>How to solve this?</p>