0

I am trying to update Ubuntu 16.04 by using the command

$ sudo apt-get update

But the following error message occurs ---

E: Malformed entry 58 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.

Why does this happen? Also I am unable to install gnuplot-x11.

karel
  • 114,770
Bapi Saha
  • 459
  • 3
  • 11
  • 25

1 Answers1

0

The error message is clear:

Malformed entry 58 in list file /etc/apt/sources.list

You will need to edit /etc/apt/sources.list and check for the failure.

frlan
  • 1,030
  • 5
  • 17
  • how do I edit the file ? please tell me in detail . @ frlan – Bapi Saha Nov 22 '16 at 16:16
  • You could use a command-line text editor, like nano or vi (although vi is rather complex if you don't know how). Or, you can use a GUI text editor like Gedit, Kate, or VS Code. Any one that you have installed would work, I'd suggest nano. Also it is best-practice to use sudoedit instead of sudo nano – cocomac Apr 25 '22 at 03:31