New issue
Advanced search Search tips

Issue 874441 link

Starred by 1 user

Issue metadata

Status: Started
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Bug



Sign in to add a comment

Package configuration mess in Ubuntu

Reported by teo8...@gmail.com, Aug 15

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

Steps to reproduce the problem:
1. I have both Chrome and Chrome Beta installed on my Ubuntu system through the package repositories
2. I ran:

sudo apt-get update

What is the expected behavior?
No warning

What went wrong?
There are a few warning related to Chrome beta:

The output ends with:

``````````
Reading package lists... Done
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 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/google-chrome-beta.list:3 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/google-chrome-beta.list:3 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/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 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/google-chrome-beta.list:3 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/google-chrome-beta.list:3 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/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and /etc/apt/sources.list.d/google-chrome.list:3
`````````````````

Regardless of whether these can be safely ignored or not, they should be cleaned up. I have never touched those files.

Did this work before? Yes not sure

Chrome version: 68.0.3440.106  Channel: beta
OS Version: 
Flash Version:
 
Labels: Needs-Triage-M68
Cc: thestig@chromium.org
Labels: -Pri-2 Pri-3
Owner: thomasanderson@chromium.org
Status: Assigned (was: Unconfirmed)
I notice this on my machine too.  +thestig is there any way to get debian packages to share files, so that we could have a single /etc/apt/sources.list.d/google-chrome-beta.list ?
I noticed this on my machine 3. I don't know the answer. Maybe try creating 2 packages that both provide the exact same /etc/apt/sources.list.d/google-chrome.list file, install them both, and see what happens?
I expect providing the same file path in two different packages to fail, but there may be a slim chance that dpkg can figure it out if the file contents are the same. Probably wishful thinking on my part.

A better suggestion is to use /etc/alternatives, just like we do with /usr/bin/google-chrome.
Labels: -Type-Bug-Regression -Needs-Triage-M68 Type-Bug
Status: Started (was: Assigned)
Thanks, /etc/alternatives does seem like the right choice!

Sign in to add a comment