W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Contents-deb (main/Contents-i386) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'file:/var/cache/apt-build/repository apt-build InRelease' doesn't support architecture 'i386'
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Contents-deb (main/Contents-i386) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:15 and /etc/apt/sources.list:25
As you can see it's fricken annoying
My /etc/apt/sources.list looks like:
# deb cdrom:[Debian GNU/Linux testing _Bookworm_ - Official Snapshot amd64 NETINST 20220502-15:11]/ bookworm main
# deb cdrom:[Debian GNU/Linux testing _Bookworm_ - Official Snapshot amd64 NETINST 20220502-15:11]/ bookworm main
deb http://deb.debian.org/debian/ testing main contrib non-free
deb-src http://deb.debian.org/debian/ testing main contrib non-free
deb http://security.debian.org/debian-security/ testing-security main contrib non-free
deb-src http://security.debian.org/debian-security/ testing-security main contrib non-free
# Debug pacakges
deb http://deb.debian.org/debian-debug/ testing-debug main
# Firmware updates
deb https://deb.debian.org/debian bookworm main non-free-firmware
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
deb http://deb.debian.org/debian/ bookworm contrib non-free main
deb-src http://deb.debian.org/debian/ bookworm contrib non-free main #Added by software-properties
I can't see where anything is defined multiple time on either line 15 or 25 so how do I clear this up?
Thanks in advance for help.
It depends. Do you want to stay with testing forever or just until bookworm goes stable which will be soon.
Change everything to testing or everything to bookworm. Don't mix the 2 or you will eventually run into trouble.
This was interesting - #Added by software-properties
Below is all you need. Decide whether you want to use testing or change them to bookworm and just use what's below. Everything else is a bit less than necessary and is causing your apt issues
Note that I also commented out source repos. No disrespect but if you're not compiling from source there's no reason to have source repos mapped and this will speed up apt updates a tiny bit. Feel free to uncomment if you like.
# deb cdrom:[Debian GNU/Linux testing _Bookworm_ - Official Snapshot amd64 NETINST 20220502-15:11]/ bookworm main
# deb cdrom:[Debian GNU/Linux testing _Bookworm_ - Official Snapshot amd64 NETINST 20220502-15:11]/ bookworm main
deb http://deb.debian.org/debian/ testing main contrib non-free
#deb-src http://deb.debian.org/debian/ testing main contrib non-free
deb http://security.debian.org/debian-security/ testing-security main contrib non-free
#deb-src http://security.debian.org/debian-security/ testing-security main contrib non-free
# Debug pacakges
deb http://deb.debian.org/debian-debug/ testing-debug main
# Firmware updates
deb https://deb.debian.org/debian bookworm main non-free-firmware
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
#deb http://deb.debian.org/debian/ testing contrib non-free main
#deb-src http://deb.debian.org/debian/ testing contrib non-free main #Added by software-properties