You are not logged in.

#1 2020-01-16 02:45:00

schwim
Member
From: Western NC, US
Registered: 2015-09-29
Posts: 253
Website

Shenanigans afoot (apt oddities)

Hi there folks!

I restarted my BL this evening and figured perhaps it was time to do an update so I updated my repos:

[sudo] password for schwim:
Get:1 http://deb.debian.org/debian stretch-backports InRelease [91.8 kB]
Hit:2 http://eu.pkg.bunsenlabs.org/debian stretch-backports InRelease             
Hit:3 https://packages.microsoft.com/repos/vscode stable InRelease
Ign:4 https://deb.debian.org/debian stretch InRelease
Hit:5 https://deb.debian.org/debian-security stretch/updates InRelease
Get:6 https://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Hit:8 https://deb.debian.org/debian stretch Release           
Get:9 https://mega.nz/linux/MEGAsync/Debian_9.0 ./ InRelease [1,306 B]
Hit:7 https://eu.pkg.bunsenlabs.org/debian helium InRelease
Fetched 184 kB in 2s (81.7 kB/s)
Reading package lists... Done
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/vscode.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/vscode.list:3
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/vscode.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/vscode.list:3
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/vscode.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/vscode.list:3
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/vscode.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/vscode.list:3

The errors look to have something to do with vscode but I've had it installed for a long time and never saw this error before.  Can anyone tell me what I should do to rectify this?

Thanks for your time!

Last edited by schwim (2020-01-16 02:46:37)


Schw.im! A social site with an identity crisis.

Offline

#2 2020-01-16 08:06:20

ohnonot
...again
Registered: 2015-09-29
Posts: 4,305
Website

Re: Shenanigans afoot (apt oddities)

It's just a Warning, no actual problems. Don't try to fix what isn't broken!

But since you insist, it's telling you clearly what is wrong:

<Something> is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list.d/vscode.list:3

It's even telling you on which line of the file it is.
You really need us to tell you what to do next?

Offline

#3 2020-01-16 13:13:06

schwim
Member
From: Western NC, US
Registered: 2015-09-29
Posts: 253
Website

Re: Shenanigans afoot (apt oddities)

Oh, I would never insist had I known it wasn't an error smile  I guess what confuses me is that when I look at sources.list, I don't see multiple lines of the same repos:

#

# deb cdrom:[Debian GNU/Linux 9.8 _Helium_ - Snapshot amd64 LIVE/INSTALL Binary 20190706-19:28]/ stretch contrib main non-free

# deb cdrom:[Debian GNU/Linux 9.8 _Helium_ - Snapshot amd64 LIVE/INSTALL Binary 20190706-19:28]/ stretch contrib main non-free

deb https://deb.debian.org/debian stretch main non-free contrib
# deb-src https://deb.debian.org/debian stretch main non-free contrib

## Debian security updates
deb https://deb.debian.org/debian-security stretch/updates main contrib non-free

# stretch-updates, previously known as 'volatile'
deb https://deb.debian.org/debian stretch-updates main contrib non-free
# deb-src https://deb.debian.org/debian stretch-updates main contrib non-free
deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main
# deb-src [arch=amd64] https://packages.microsoft.com/repos/vscode stable main

I'm wondering what it's telling me about line 16(vscode) and just curious as to what might have caused it as code has been installed for a long time with none of these warnings during update.


Schw.im! A social site with an identity crisis.

Offline

#4 2020-01-16 13:20:24

clusterF
Member
Registered: 2019-05-07
Posts: 509

Re: Shenanigans afoot (apt oddities)

what its telling you is there is something going on in /etc/apt/sources.list.d/vscode.list

post the output of

/etc/apt/sources.list.d/vscode.list

only if it is not sensitive data of course.

I think it might be related to having both

deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main

and

/etc/apt/sources.list.d/vscode.list

You need to decide which to keep.

Last edited by clusterF (2020-01-16 13:36:39)


"Ad Astra Incrementis"

git: clusterF

Offline

#5 2020-01-16 13:42:45

schwim
Member
From: Western NC, US
Registered: 2015-09-29
Posts: 253
Website

Re: Shenanigans afoot (apt oddities)

Oh I see, I guess a code update at some point placed a second source in there at some point.

Thanks very much for the clarification!


Schw.im! A social site with an identity crisis.

Offline

#6 2020-01-16 13:46:32

clusterF
Member
Registered: 2019-05-07
Posts: 509

Re: Shenanigans afoot (apt oddities)

schwim wrote:

Oh I see, I guess a code update at some point placed a second source in there at some point.

Thanks very much for the clarification!

Probably dont touch anything as ohnonot mentions unless you have modified /etc/apt/ if not then maybe vscode wants to have its repo in /etc/apt/sources.list.d/


"Ad Astra Incrementis"

git: clusterF

Offline

#7 2020-01-16 23:55:57

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 234

Re: Shenanigans afoot (apt oddities)

schwim wrote:

Oh I see, I guess a code update at some point placed a second source in there at some point.

Many packages not in debian ad file in /et/apt/sources.list.d. BunsenLabs does. So does also Google.

When installing GoogleChrome, the package adds /etc/apt/sources.list.d/google-chrome.list. I want everything in sources.list and uncomment sources.list.d-files. Next update of Chrome, enables google-chrome.list, if I not edit /etc/default/google-chrome:

repo_add_once="false"
repo_reenable_on_distupgrade="false"

I don't know about Microsoft's packages, thy could have same policy.


// Regards rbh

Online

Board footer

Powered by FluxBB