Linux Lite Forums
Packages configured multiple times etc/apt/sources.list.d/google-chrome.list:1 - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5)
+--- Forum: Installing Software (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=18)
+--- Thread: Packages configured multiple times etc/apt/sources.list.d/google-chrome.list:1 (/showthread.php?tid=4118)



Packages configured multiple times etc/apt/sources.list.d/google-chrome.list:1 - maciaccio - 06-01-2017

After install on HP-dv8000 laptop, I installed a couple prog's through SPM. I installed Chrome browser thru command line found on LL forum.

Next day when opening Synaptic Pkg Mgr, I get an "error occurred" msg box filled about 20 errors:

"W: Target Packages (main/binary-amd64/Packages) is configured multiple times in etc/apt/sources.list.d/google-chrome.list:3 and  etc/apt/sources.list.d/google.list:1"

and

"W: Target Translations.......etc, etc, etc...."

All the errors are related to Google Chrome. Do you need the entire log posted?

What is this, and does it require a fix? If so, please advise.

Thanks



Re: Packages configured multiple times etc/apt/sources.list.d/google-chrome.list:1 - maciaccio - 06-01-2017


W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:2
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/google.list:1 and /etc/apt/sources.list.d/google.list:2
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:2
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:2
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:2
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:3
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/google.list:1 and /etc/apt/sources.list.d/google.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:3
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:3
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:4
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/google.list:1 and /etc/apt/sources.list.d/google.list:4
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:4
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:4
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:4
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:5
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/google.list:1 and /etc/apt/sources.list.d/google.list:5
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:5
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:5
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:5



Re: Packages configured multiple times etc/apt/sources.list.d/google-chrome.list:1 - torreydale - 06-01-2017

Google Chrome can be installed simply by going to the Google Chrome website (https://www.google.com/chrome/).  What command in the forum did you use to install it?


Re: Packages configured multiple times etc/apt/sources.list.d/google-chrome.list:1 - maciaccio - 06-01-2017

Honestly, it was around 2 am two nights ago, and I am trying to remember exactly what I did. I have done a "forensic review" of my browser history in Firefox and Chrome (from main pc & laptop) to retrace my steps. I think there may have been an issue with Chrome download thru Firefox or the installer, so I searched for "install google chrome on Linux Lite".

My Firefox history did show a link to the Chrome download page immediately followed by "Welcome to Chrome" page and then two pages - for a couple extensions I use - auto-loaded after they auto-installed. So it looks like it was done thru browser, but I can't be 100% on that, because I vaguely remember using terminal. Firefox "Downloads" shows only one: google-chrome-stable_current_amd64.deb

Right after that, I installed a few Chrome themes, 4 or 5. Not sure if that's relevant, but thought with multiple redundancies or whatever, maybe that is related??

------

Worst case scenario, I was not on LL forum as I thought, but was here: http://linuxg.net/google-chome-has-been-updated-to-version-42-0-2311-135/ and I may have used this to install Chrome:

$ sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'

$ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

$ sudo apt-get update

$ sudo apt-get install google-chrome-stable



-------

Thanks for your time.



Re: Packages configured multiple times etc/apt/sources.list.d/google-chrome.list:1 - maciaccio - 06-01-2017

FWIW, as I try to investigate this...

SPM was showing the error msg, not at startup, but after I hit "Reload".

I looked in: etc/apt/sources.list.d/google.list

deb http://dl.google.com/linux/chrome/deb/ stable main
deb http://dl.google.com/linux/chrome/deb/ stable main
deb http://dl.google.com/linux/chrome/deb/ stable main
deb http://dl.google.com/linux/chrome/deb/ stable main
deb http://dl.google.com/linux/chrome/deb/ stable main


Since there were five entries, similar to the redundancy error msg, i.e.: "list:5..."  I deleted four of them (had to open as Admin to save.)


I looked in: etc/apt/sources.list.d/chrome-google.list

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main


I left this alone. Reboot. Open Syn Pkg Man.

Now there are only four error msg's:
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1


SPM shows: "84742 packages listed, 1838 installed, 0 broken, 0 to install/upgrade, 0 to remove"


Edit>

On a hunch, I commented out the remaining entry in:

etc/apt/sources.list.d/google.list

#deb http://dl.google.com/linux/chrome/deb/ stable main


Open Chrome, everything seems fine.

Open Syn Pkg Mgr, Reload and there are no error messages!

google-chrome-stable, installed version: 58.0.3029.110-1

18 packages listed, 1838 installed, 0 broken, 0 to install/upgrade, 0 to remove

Apparently I have solved this. I am not sure: why it happened or how to avoid it reoccurring; if my fix is innocuous or will cause other issues; or if this is widespread or unique to my experience.

Maybe someone should check my work. Wink




Re: Packages configured multiple times etc/apt/sources.list.d/google-chrome.list:1 - ralphy - 06-01-2017


From Terminal:


Code:
sudo rm -f /etc/apt/sources.list.d/google.list


You don't need the same sources in two different files; that's the error.


Re: Packages configured multiple times etc/apt/sources.list.d/google-chrome.list:1 - maciaccio - 06-01-2017

(06-01-2017, 10:32 PM)ralphy link Wrote: From Terminal:


Code:
sudo rm -f /etc/apt/sources.list.d/google.list


You don't need the same sources in two different files; that's the error.

That would have been easier.

I wonder why it was in both files then? Maybe it is related to the GDeb pkg installer not working the 1st time and  then using terminal? Was put in both files by the two different install processes? I'm guessing here...


Re: Packages configured multiple times etc/apt/sources.list.d/google-chrome.list:1 - ralphy - 06-01-2017


It was on a second file google.list because it was manually added in the initial install.


Quote:$ sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'


Google Chrome installer will add google-chrome.list to sources hence giving you the double sources issue. Next time, just browse to Google.com, download it and manually install the deb package using gdeb.


Cheers!