There are a lot of answers related somewhat to this question, but doesn't seem to help as I didn't had this error before. This error came after upgrading to Ubuntu Impish from 21.04
$ sudo apt-get update
[sudo] password for kirti:
E: Malformed entry 2 in list file /etc/apt/sources.list.d/pgdg.list (Suite)
E: The list of sources could not be read.
$ cat /etc/apt/sources.list.d/pgdg.list
deb http://apt.postgresql.org/pub/repos/apt impish-pgdg main
deb http://apt.postgresql.org/pub/repos/apt/
impish-pgdg main
$
I had postgresql installed before update. Though, postgresql works fine I'm not able to perform certain tasks on terminal, let it be a simple update
Can somebody please help me?
Also I don't know why by default it is selected as postgresql
in ubuntu update.
pgdg.list
? This will make it easier to spot the error – matigo Dec 22 '21 at 03:38#
on lines 2 and 3, then save. – user535733 Dec 22 '21 at 03:53