Ubuntu – deb command-not-found

While installing New Relic‘s server monitoring on my Ubuntu server. After entering following command given at New Relics installtion instrcutions

I was getting this this error “deb command no found”, after searching for solution on internet I found following answer

Deb is not a command. You need to edit your /etc/apt/sources.list file and add the line

to the end of the file.