Target Packages (stable/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:4 code example

Example 1: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/pgdg.list:1 and /etc/apt/sources.list.d/pgdg.list:2

chmod a+x aptsources-cleanup.pyz

Example 2: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/pgdg.list:1 and /etc/apt/sources.list.d/pgdg.list:2

sudo apt install python3-apt