Source List Error Ubuntu 12.04 LTS?

I accidentally added handbrake in the wrong place. So now when I run sudo apt-get update, it says E: Malformed line 3 in source list /etc/apt/sources.list.d/handbrake.list (dist parse)

E: The list of sources could not be read.

I need to remove the handbrake one, how do I do so?

1 Answer

Relevance
  • 8 years ago
    Favorite Answer

    You can either remove the file it's complaining about like this

    sudo rm /etc/apt/sources.list.d/handbrake.list

    Or you can edit that file and see if you can fix the problem on line 3

Still have questions? Get your answers by asking now.