How to fix "Malformed entry 1 in list file /etc/apt/sources.list.d/pgdg.list (Component)" error?

Viewed 1306

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

2 Answers

Try this:

  1. Remove the list -> sudo rm /etc/apt/sources.list.d/pgdg.list
  2. Retry to import it again, but first check if you have everything installed that is required (for example you could use lsb_release in your URL or similar things)

Regardless of what I do, I still get this error: Malformed entry 1 in list file /etc/apt/sources.list.d/wine-obs.list (Suite) E: The list of sources could not be read.

running on the windows store ubuntu version codename: bionic

Related