Malformed line 1 in source list /etc/apt/sources.list.d/mssql.list while installing MSSQL on UBUNTU

I am trying to install MSSQL drivers on UBUNTU server from the root user. But getting error. Please guide.

root@redie:~# apt-get install mssql-server mssql-tools -y
E: Malformed line 1 in source list /etc/apt/sources.list.d/mssql.list (type)
E: The list of sources could not be read.
E: Malformed line 1 in source list /etc/apt/sources.list.d/mssql.list (type)
E: The list of sources could not be read.

I had placed the relevant files at required location. Not sure of the issue in concern.