LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error when using Update Manager (https://www.linuxquestions.org/questions/linux-newbie-8/error-when-using-update-manager-4175654963/)

Iankahn 06-01-2019 09:16 AM

Error when using Update Manager
 
This morning I had a message from Update Manager on my system (Linux Mint 18.3) that I had an update available. So, I ran the update. Update Manager reported the update installed correctly, but when I clicked "OK", the following error pops up:

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

I also get this if I try to refresh Update Manager to see if there are any other relevant updates for my system. I can't find anything on-line that doesn't sound like complete gibberish to me, and I've worked in IT for over 25 years (admittedly, on the M$ side of things). I still consider myself a newbie to Linux, and could use any help anyone can provide, to resolve this issue.

Thanks in advance!

Ian Kahn
Roswell, GA

ugjka 06-01-2019 09:24 AM

It looks like you have added Google Chrome repository twice

From the errors it looks like that the following files...
Code:

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

...point to the same repository!

Can you please post the contents from both files, to see if they are the same?

The solution probably would be to remove either of one, but we need to investigate how did you to that state in the first place.

thinknix 06-01-2019 09:25 AM

Those are warnings, not errors, so they won't stop packages from installing. It looks like you've got a duplicate apt source for google chrome. I would compare the two files mentioned in the warning messages, if the files are identical, delete one and the warning should go away. If they are not identical and you need more help post the content of those two files.

Iankahn 06-01-2019 10:33 AM

Re; Error when using Update Manager
 
Thanks, everyone for the replies. Here are the contents of the two files:

/etc/apt/sources.list.d/google-chrome.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


/etc/apt/sources.list.d/chrome.list:

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

It looks like, to everyone's point, they are the same. How do I correct this? Is it safe to just delete one of the files? Comment out the contents of one and leave it? Any help is much appreciated.

Thank you.

Ian Kahn
Roswell, GA

hazel 06-01-2019 10:39 AM

Never just delete a system configuration file. You could bork your system. As root, move it to a safe place (for example root's home directory). Then try the update again. If all goes smoothly, you have solved your problem. If not, you can always move the file back to where you took it from, then try doing the same with the other file.

hydrurga 06-01-2019 10:41 AM

The second file is the older one unless you manually created it (Chrome automatically creates the first one nowadays).

Delete the second one with:

Code:

sudo rm /etc/apt/sources.list.d/chrome.list

Iankahn 06-01-2019 12:42 PM

Re; Error when using Update Manager
 
Thanks, everyone for the help. I moved chrome.list to a different folder, then refreshed Update Manager again. No more warnings! I'll keep the file on my system, in a safe place, for a few days before I delete it.

I appreciate all the quick, helpful advice, and on a weekend, no less!

Regards,

Ian Kahn
Roswell, GA


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