LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Error fix? (https://www.linuxquestions.org/questions/linux-general-1/error-fix-4175621813/)

hapibeli 01-17-2018 12:19 PM

Error fix?
 
How do I fix this error?
Thanks all.

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/additional-repositories.list:2
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/additional-repositories.list:2
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/additional-repositories.list:2
W: Target Translations (main/i18n/Translation-en_CA) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/additional-repositories.list:2
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/additional-repositories.list:1 and /etc/apt/sources.list.d/additional-repositories.list:2

jsbjsb001 01-17-2018 12:31 PM

Your not really giving us a lot to go on here. Have a look at the second link in my signature and provide more details, to help us help you.

colorpurple21859 01-17-2018 12:47 PM

what is in you /etc/apt/sources.list compared to what is in /etc/apt/souces.d/???

Habitual 01-18-2018 01:05 PM

teminal >
Code:

sudo apt edit-sources
and look for duplicate entries.

hapibeli 01-19-2018 01:09 PM

Thank you colorpurple21859 and Habitual.
If I find the duplicate entries, which do I keep?
Thank you both.

hydrurga 01-19-2018 01:11 PM

Please paste the output from the following command so that we can see which repositories you're using:

Code:

inxi -r

hydrurga 01-19-2018 01:14 PM

Quote:

Originally Posted by Habitual (Post 5808099)
teminal >
Code:

sudo apt edit-sources
and look for duplicate entries.

On Mint, this only opens /etc/apt/sources.list for edit. It doesn't deal with the repositories in the /etc/apt/sources.list.d directory, which is more relevant for the OP's problem.

hapibeli 01-24-2018 10:29 AM

inxi -r
Repos: Active apt sources in file: /etc/apt/sources.list.d/additional-repositories.list
deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main
deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main
Active apt sources in file: /etc/apt/sources.list.d/flexiondotorg-youtube-dl-gui-xenial.list
deb http://ppa.launchpad.net/flexiondoto...-dl-gui/ubuntu xenial main
deb-src http://ppa.launchpad.net/flexiondoto...-dl-gui/ubuntu xenial main
Active apt sources in file: /etc/apt/sources.list.d/graphics-drivers-ppa-xenial.list
deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial main
deb-src http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial main
Active apt sources in file: /etc/apt/sources.list.d/indicator-brightness-ppa-xenial.list
deb http://ppa.launchpad.net/indicator-b...ess/ppa/ubuntu xenial main
deb-src http://ppa.launchpad.net/indicator-b...ess/ppa/ubuntu xenial main
Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
deb http://packages.linuxmint.com sonya main upstream import backport #id:linuxmint_main
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ xenial partner
Active apt sources in file: /etc/apt/sources.list.d/opera-stable.list
deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
Active apt sources in file: /etc/apt/sources.list.d/rolfbensch-sane-git-xenial.list
deb http://ppa.launchpad.net/rolfbensch/sane-git/ubuntu xenial main
deb-src http://ppa.launchpad.net/rolfbensch/sane-git/ubuntu xenial main
Active apt sources in file: /etc/apt/sources.list.d/skype-stable.list
deb [arch=amd64] https://repo.skype.com/deb stable main
Active apt sources in file: /etc/apt/sources.list.d/ubuntu-wine-ppa-xenial.list
deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial main
deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial main

pan64 01-24-2018 10:43 AM

these are not errors, but warnings (that is the W at the beginning of those lines).
You can remove anyone of the duplicates, as you like.

hydrurga 01-24-2018 02:26 PM

Ok, according to your output, you need to:

. delete one of the two identical lines in /etc/apt/sources.list.d/additional-repositories.list.

. decide whether you are going to use the wine repo in /etc/apt/sources.list.d/additional-repositories.list or the one in /etc/apt/sources.list.d/ubuntu-wine-ppa-xenial.list. Delete the repo you don't want. This wasn't related to the problem you experienced, but you may have problems if you keep both Wine repos. To help you with the decision, the latter repo is now deprecated (see https://launchpad.net/~ubuntu-wine/+archive/ubuntu/ppa).

Note that repositories can be managed by running Software Sources from the Mint menu.


All times are GMT -5. The time now is 10:07 PM.