Sunday, September 24, 2023
 Popular · Latest · Hot · Upcoming
rated 0 times [  48] [ 0]  / answers: 1 / hits: 19720  / 8 Months ago, fri, february 10, 2023, 8:49:13

Installing Google Chrome causes a third-party software source to be added from which Google Chrome upgrades can be retrieved:

$ cat /etc/apt/sources.list.d/google-chrome.list
# You may comment out this entry, but any other modifications may be lost.
deb stable main

$ head -n 9 /var/lib/apt/lists/
Origin: Google, Inc.
Label: Google
Suite: stable
Codename: stable
Version: 1.0
Date: Tue, 04 Oct 2011 00:57:43 +0000
Architectures: i386 amd64
Components: main
Description: Google chrome-linux repository.

$ grep '^Package: ' /var/lib/apt/lists/
Package: google-chrome-beta
Package: google-chrome-stable
Package: google-chrome-unstable

How can I enable unattended upgrades from this repository?

More From » upgrade


  1. Install unattended upgrades:

    sudo apt-get install unattended-upgrades

  2. Enable unattended updates on the Google Chrome repo by editing the unattended upgrades list and adding the Google Chrome repo in it:

    sudo gedit /etc/apt/apt.conf.d/50unattended-upgrades

    Add "Google LLC:stable"; to the allowed origins:

    Unattended-Upgrade::Allowed-Origins {
    "${distro_id} ${distro_codename}-security";
    // "${distro_id} ${distro_codename}-updates";
    // "${distro_id} ${distro_codename}-proposed";
    // "${distro_id} ${distro_codename}-backports";
    "Google LLC:stable";

  3. Test

    Use sudo unattended-upgrade --dry-run to test, if all came clear you should be having updates to Google Chrome installed without any intervention from you.

To check that it's working tail the log after the dry run:

cat /var/log/unattended-upgrades/unattended-upgrades.log

and you should see something along the lines of this in your log:

2011-10-11 18:03:23,292 INFO Allowed origins are: ['o=Ubuntu,a=oneiric-security', 'o=Google, Inc.,a=stable']

You can change the configuration of the unattended updates by editing the file /etc/apt/apt.conf.d/10periodic, options for the configuration are in the /etc/cron.daily/apt script header. Read them to configure the frequency of the unattended updates.

[#43210] Saturday, February 11, 2023, 8 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 345
Total Questions: 122
Total Answers: 121

Location: Spain
Member since Wed, Nov 23, 2022
11 Months ago
steaocyte questions