Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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.
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.
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.