How to fix error W: Target Packages (main/binary-amd64/Packages) is configured multiple times in my sources.list file? [duplicate]

Target Packages (main/binary-amd64/Packages) is configured
Target Packages (main/binary-amd64/Packages) is configured


In this tutorial post we will try to fix "Target Packages (main/binary-amd64/Packages) is configured" on Ubuntu 20.04 LTS. If you have recently installed some packages/software's like VSCode or Python, etc and after updating Ubuntu getting some this type of error in the terminals.

To fix the error first of all we do reset the repository by the following steps.


Reset your repositories like this:

IMPORTANT: First verify that you have software-properties-gtk installed (you can run software-properties-gtk -h to verify that you get a help-message)

Then, for safer side we will take a backup of sources.list file. To do so here I'm making a copy of
sources.list file,
  1. sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak

  2. sudo software-properties-gtk

  3. Pick your options

  4. Save.

  5. Update Ubuntu

Once everything is working, you can then delete your backup with sudo rm -rf /etc/apt/sources.list.bak.

Do tick all option in Software and Updates.

W: Target Packages (main/binary-amd64/Packages) is configured multiple

Conclusion:-

This article will work on Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS.Please let me know in this comment box if you are facing any kind of issue when applying above steps.

Comments

Popular posts from this blog

Failed to establish the VPN connection. This may be caused by a mismatch in the TLS version.

To make SSL VPN connection work, please turn off IE security configuration | vetechno

How to install Mysql 8.0.29 on Ubuntu 22.04 LTS | vetechno