# Problem
when I want to run 'sudo apt-get update', I get the following messages:
$ sudo apt-get update
Citire liste de pachete... 0%
Citire liste de pachete... Terminat
Se construiește arborele de dependență
Se citesc informațiile de stare... Terminat
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:5
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:5
...
# Solution
main, universe, multiverse, restricted are different components of the Sections portion in a sources.list entry and can not be duplicated for a given entry (same Type (e.g. deb), URI (e.g. http://archive.ubuntu.com/ubuntu/).
In your /etc/apt/sources.list, you have duplicate components (main, restricted, universe) in lines 2 and 5:
deb http://archive.ubuntu.com/ubuntu focal main universe
deb http://archive.ubuntu.com/ubuntu focal main universe restricted multiverse
As line 5 is a superset of line 2, you can remove line 2 using your favorite editor or use sed:
$ sudo sed -i '2d' /etc/apt/sources.list
Or comment out the 2nd line:
$ sudo sed -i '2 s/^/# /' /etc/apt/sources.list
# Reference
[StackExchange] How to fix error W: Target Packages (main/binary-amd64/Packages) is configured multiple times in my sources.list file?: https://askubuntu.com/questions/760746/how-to-fix-error-w-target-packages-main-binary-amd64-packages-is-configured-m