Page 1 of 1

<SOLVED> Update manager: Target is configured multiple times

Posted: Mon Apr 23, 2018 6:49 pm
by bitgael
Just installed 18.3 Sylvia 64 bit, looks awesome! But I'm getting the following error whenever I try to update:

Code: Select all

W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/brave-xenial.list:1 and /etc/apt/sources.list.d/brave-xenial.list:2
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/brave-xenial.list:1 and /etc/apt/sources.list.d/brave-xenial.list:2
W: Target Translations (main/i18n/Translation-en_IE) is configured multiple times in /etc/apt/sources.list.d/brave-xenial.list:1 and /etc/apt/sources.list.d/brave-xenial.list:2
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/brave-xenial.list:1 and /etc/apt/sources.list.d/brave-xenial.list:2
Any idea how I can resolve this? I saw a thread on github suggesting that brave might be causing it (which I do have installed) but brave isn't mentioned in the above list.

Re: Update manager: Target is configured multiple times

Posted: Mon Apr 23, 2018 6:57 pm
by Sir Charles
Hi,
In a terminal, run:

Code: Select all

gksudo xed /etc/apt/sources.list.d/brave-xenial.list
in order to open thebrave-xenial.list and delete all the duplicates. Every source should be specified only once. Close the file and update:

Code: Select all

apt update

Re: Update manager: Target is configured multiple times

Posted: Tue Apr 24, 2018 1:48 pm
by Flemur
bitgael wrote:
Mon Apr 23, 2018 6:49 pm

Code: Select all

W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/brave-xenial.list:1 and /etc/apt/sources.list.d/brave-xenial.list:2
Any idea how I can resolve this? I saw a thread on github suggesting that brave might be causing it (which I do have installed) but brave isn't mentioned in the above list.
You probably have two version of the same file "brave-xenial.list" (:1 and :2 ?)
What does this return?

Code: Select all

ls -l /etc/apt/sources.list.d/brave*
if two files listed, then try the below, and if this returns nothing, the two files are the same: delete one of them (then "update" the repo cache):

Code: Select all

diff /etc/apt/sources.list.d/brave*

Re: Update manager: Target is configured multiple times

Posted: Wed Apr 25, 2018 2:39 pm
by bitgael
Marziano wrote:
Mon Apr 23, 2018 6:57 pm
Hi,
In a terminal, run:

Code: Select all

gksudo xed /etc/apt/sources.list.d/brave-xenial.list
in order to open thebrave-xenial.list and delete all the duplicates. Every source should be specified only once. Close the file and update:

Code: Select all

apt update
Thanks! That seems to have solved the problem, there was indeed a duplicated line

Re: <SOLVED> Update manager: Target is configured multiple times

Posted: Wed Apr 25, 2018 2:49 pm
by Sir Charles
:D to hear you got it working!
Cheers