The error is explained via Photo below The Images are attached for reference

I am a newbie to Kali Linux and couldn't get around this, so your help would be very beneficial.

  • 1
    You have the literal line echo ... in there, which should have been an echo to that file, not a literal string to put in there.
    – Chris Down
    Commented Feb 14, 2021 at 15:41
  • 3
    It appears that you followed some instructions incorrectly. You appear to have put the command that you are supposed to run inside the sources.list. Perhaps Kali Linux isn’t an ideal distro for learning Linux?
    – jsbillings
    Commented Feb 14, 2021 at 15:43
  • 2
    Please post text as text. So that it is accessible. e.g. Big enough to read, readable by blind people, searchable, … Commented Feb 14, 2021 at 17:15
  • 1
    How much experience do you have with other Gnu/Linuxes? Commented Feb 14, 2021 at 17:15

2 Answers 2


Lines #1 and #2 in the sources list file are offensive. Edit the file, and leave the following line (remove the rest):

deb http://http.kali.org/kali kali-rolling main non-free contrib

The line under Additional sources is OK. You can leave it there.

  • How to fix it ? Commented Feb 14, 2021 at 15:46
  • I edited the answer with a solution Commented Feb 14, 2021 at 15:51

The error message is quite explicit: The first line in sources.list contains the word echo. This is a syntax error. In fact, the file looks quite jumbled. After fixing the first line, you will have more work to do.

  • Sir, Can you put some more light onto the Topic, specifically on how to resolve this issue ? As I am new here and still learning. Help much appreciated. Commented Feb 14, 2021 at 15:45
  • @ShlokBharadwaj I suggest you read this: kali.org/docs/introduction/should-i-use-kali-linux
    – jsbillings
    Commented Feb 14, 2021 at 15:47
  • 1
    @ShlokBharadwaj please don't use Kali if you are new. Kali is not a normal operating system. It is a tool designed for experts and should only be used by experts. Anything you can do in Kali, you can also do with a normal linux, so please use a regular Linux while you're learning. If you don't know how to resolve a problem as simple as this, you really really shouldn't be using Kali. What you are doing is like trying to learn how to drive on a formula one car.
    – terdon
    Commented Feb 14, 2021 at 15:48
  • Remove all the lines that contain tor and you should be fine. However, if you are unable to understand and fix this issue on your own, you won't have much fun with Kali and stumble from error to error. I suggest you first invest some time learning the basics of Linux, in particular Debian. Commented Feb 14, 2021 at 15:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .