Target packages configure multiple times
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums within the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums within the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Target packages configure multiple times
Hi all,
I am getting a bunch of warnings that say I have some stuff configured multiple times when I update. How do I resolve this?
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/official-package-repositories.list:7
I am getting a bunch of warnings that say I have some stuff configured multiple times when I update. How do I resolve this?
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/official-package-repositories.list:7
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Target packages configure multiple times
Hi runfox, and welcome to the forum.
Most likely you followed some commands for adding a PPA, and happened to do one of them twice. Let's see the output from running this in the terminal:
You should see that the first line will essentially match the seventh line. There could be some subtle differences in the lines, so it would be best to see them before instructing you on how to remove one of them.
Most likely you followed some commands for adding a PPA, and happened to do one of them twice. Let's see the output from running this in the terminal:
Code: Select all
cat /etc/apt/sources.list.d/additional-repositories.list
Re: Target packages configure multiple times
Hi Mr. Een,
Here's the output from the command:
Here's the output from the command:
Re: Target packages configure multiple times
Hi Mr. Een,
Here's the output from the command:
deb http://deb.debian.org/debian buster-backports main
I probably should have included that I am using mint debbie 4
Here's the output from the command:
deb http://deb.debian.org/debian buster-backports main
I probably should have included that I am using mint debbie 4
Re: Target packages configure multiple times
Whoops, I hadn't spotted they were from 2 different files. Now this one:
This is the one that should have the same thing on line 7.
And after your next reply, I will move this thread to the LMDE section.
Code: Select all
cat /etc/apt/sources.list.d/official-package-repositories
And after your next reply, I will move this thread to the LMDE section.
Re: Target packages configure multiple times
Ok, here's the output from the second cat command:
cat: /etc/apt/sources.list.d/official-package-repositories: No such file or directory
cat: /etc/apt/sources.list.d/official-package-repositories: No such file or directory
Re: Target packages configure multiple times
I messed up on the Copy. It should be this:
Code: Select all
cat /etc/apt/sources.list.d/official-package-repositories.list
Re: Target packages configure multiple times
Here's the output for the second version of the second cat command:
deb http://packages.linuxmint.com debbie main upstream import backport
deb https://deb.debian.org/debian/ buster main contrib non-free
deb https://deb.debian.org/debian/ buster-updates main contrib non-free
deb http://security.debian.org/ buster/updates main contrib non-free
deb https://deb.debian.org/debian/ buster-backports main contrib non-free
deb http://packages.linuxmint.com debbie main upstream import backport
deb https://deb.debian.org/debian/ buster main contrib non-free
deb https://deb.debian.org/debian/ buster-updates main contrib non-free
deb http://security.debian.org/ buster/updates main contrib non-free
deb https://deb.debian.org/debian/ buster-backports main contrib non-free
Re: Target packages configure multiple times
Okay, I assume the latter list is what came as is with your install, so I would remove the first one with this command:
Then run
Code: Select all
sudo rm /etc/apt/sources.list.d/additional-repositories.list
apt update
and all should be good.Re: Target packages configure multiple times
Mr. Een,
First of all thanks for helping me fix this. Deleting the repo stopped the "configured multiple times" warning message.
I got a new warning:
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 InRelease' doesn't support architecture 'i386'
How do i delete this mongodb repo? It is from a failed manual install of rocketchat
First of all thanks for helping me fix this. Deleting the repo stopped the "configured multiple times" warning message.
I got a new warning:
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 InRelease' doesn't support architecture 'i386'
How do i delete this mongodb repo? It is from a failed manual install of rocketchat
Re: Target packages configure multiple times
nevermind, i was able to remove it from the sftware sources gui tool. Thanks a lot for your help! situation has been resolved.
Re: Target packages configure multiple times
Let's see if this shows where it is:
Code: Select all
ls -l /etc/apt/sources.list.d
Re: Target packages configure multiple times
Great! Happy to help.