-1

I tried use remove malformed by doing follow this: How do I remove a malformed line from my sources.list?, but it's not successful.

And after I type: sudo apt update, the result is still not change:

This is:

E: The list of sources could not be read.

E: Malformed entry 1 in list file /etc/apt/sources.list.d/dotnetdev.list (Component)

E: The list of sources could not be read.

know dont
  • 103

1 Answers1

2

Simply remove the file with

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

This repostitory is for 16.10, you are on 18.04 now.

According to https://apt-mo.trafficmanager.net/repos/dotnet-release/dists/ there is no repository for 18.04 (bionic).

mook765
  • 15,925