Target packages configure multiple times

Quick to answer questions about finding your way around LMDE as a new user.
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.
Locked
runfox

Target packages configure multiple times

Post by runfox »

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
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.
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: Target packages configure multiple times

Post by MrEen »

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:

Code: Select all

cat /etc/apt/sources.list.d/additional-repositories.list
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.
runfox

Re: Target packages configure multiple times

Post by runfox »

Hi Mr. Een,

Here's the output from the command:
runfox

Re: Target packages configure multiple times

Post by runfox »

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
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: Target packages configure multiple times

Post by MrEen »

Whoops, I hadn't spotted they were from 2 different files. Now this one:

Code: Select all

cat /etc/apt/sources.list.d/official-package-repositories
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.
runfox

Re: Target packages configure multiple times

Post by runfox »

Ok, here's the output from the second cat command:

cat: /etc/apt/sources.list.d/official-package-repositories: No such file or directory
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: Target packages configure multiple times

Post by MrEen »

I messed up on the Copy. It should be this:

Code: Select all

cat /etc/apt/sources.list.d/official-package-repositories.list
runfox

Re: Target packages configure multiple times

Post by runfox »

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
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: Target packages configure multiple times

Post by MrEen »

Okay, I assume the latter list is what came as is with your install, so I would remove the first one with this command:

Code: Select all

sudo rm /etc/apt/sources.list.d/additional-repositories.list
Then run apt update and all should be good.
runfox

Re: Target packages configure multiple times

Post by runfox »

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
runfox

Re: Target packages configure multiple times

Post by runfox »

nevermind, i was able to remove it from the sftware sources gui tool. Thanks a lot for your help! situation has been resolved.
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: Target packages configure multiple times

Post by MrEen »

Let's see if this shows where it is:

Code: Select all

ls -l /etc/apt/sources.list.d
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: Target packages configure multiple times

Post by MrEen »

runfox wrote: Sat Jan 23, 2021 3:26 pm nevermind, i was able to remove it from the sftware sources gui tool. Thanks a lot for your help! situation has been resolved.
Great! Happy to help. :D
Locked

Return to “Beginner Questions”