Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: Google Chrome Update Key Validation Error

  1. #21
    Join Date
    Jun 2008
    Location
    Belgium
    Posts
    45

    Default Re: Google Chrome Update Key Validation Error

    btw, about the automatic chrome updates: I recently noticed the google chrome package installs a daily cron, check out /etc/cron.daily/google-chrome

  2. #22

    Default Re: Google Chrome Update Key Validation Error

    Quote Originally Posted by mxttie View Post
    btw, about the automatic chrome updates: I recently noticed the google chrome package installs a daily cron, check out /etc/cron.daily/google-chrome
    Except the link in the file, http://dl.google.com/linux/chrome/rpm/stable no longer exists.

  3. #23
    Join Date
    Jun 2008
    Location
    Belgium
    Posts
    45

    Default Re: Google Chrome Update Key Validation Error

    Quote Originally Posted by ajwillis View Post
    Except the link in the file, http://dl.google.com/linux/chrome/rpm/stable no longer exists.
    It does exist, it's the webserver which pretends it does not exist ("security" i guess?)

    I validated this by adding the repo manually. Just go to Yast and add a repo by url. If you look at the script, you see the default architecture is added,so the full url is:
    Code:
    https://dl.google.com/linux/chrome/rpm/stable/x86_64
    then list the packages in the repo:

    Code:
    zypper pa -r <google repo number>
    it does contain google chrome!

  4. #24

    Default Re: Google Chrome Update Key Validation Error: Scripted Fix

    Hello All...

    I've gotten tired of running through the steps here to fix this issue so I wrote a script that makes it easier to deal with. Feel free to use it, mod it, whatever... References for the things I looked up are at the bottom of the script. If you use it please note that it is provided as is and I'm not responsible if your computer has trouble with it. I hope it is helpful! Works very well on my system. I saved it as "chromefix" in ~/bin.

    Hope this helps!!!

    tele2win

    Code:
    #!/bin/bash
    
    echo -e "\e[31m-----------------------------------------------------------------------------\e[0m"
    echo -e "\e[31mThis script seeks to assist in fixing the issues related to Google\e[0m"
    echo -e "\e[31mfrequently changing their RPM signing keys for the Chrome web browser.\e[0m"
    echo -e "\e[31mPlease note that this script will delete the signing key and rpm installation\e[0m"
    echo -e "\e[31mfiles for Google Chrome from your user's 'Downloads' folder.\e[0m"
    echo -e "\e[31mIf you don't want this, hit 'Ctrl-C' to end this script.\e[0m"
    echo -e "\e[31mRun at your own risk!!  PROVIDED AS IS!!!\e[0m"
    echo -e "\e[31mRefrences included at the bottom.  --tele2win\e[0m"
    echo -e "\e[31m--------------------------------Starting-------------------------------------\e[0m"
    
    read -n 1 -s -r -p "Press any key to continue or Ctl-C to quit!"
    
    echo -e "\e[31mRemoving Google Chrome Stable RPM...\e[0m"
    sudo rpm -e $(rpm -qa | grep google-chrome)
    
    echo -e "\e[31mDeleting the software repository for Google Chrome...\e[0m"
    sudo zypper rr http://dl.google.com/linux/chrome/rpm/stable/x86_64
    
    echo -e "\e[31mDiscovering, listing, and removing old Google RPM GPG keys...\e[0m"
    sudo rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n' | grep Google | awk '{ print $1 }' | sudo xargs rpm -e
    
    echo -e "\e[31mDeleting "/etc/default/google-chrome" so the newer repo will be added when the new Google Chrome RPM is installed...\e[0m"
    sudo rm /etc/default/google-chrome
    
    echo -e "\e[31mChanging to your user's 'Downloads' directory...\e[0m"
    cd ~/Downloads
    
    echo -e "\e[31mRemove the old signing key file in 'Downloads'...\e[0m"
    rm ~/Downloads/linux_signing_key.pub
    
    echo -e "\e[31mRemove the old Google Chrome Stable RPM...\e[0m"
    rm ~/Downloads/google-chrome-stable_current_x86_64.rpm
    
    echo -e "\e[31mDownloading the new signing key...\e[0m"
    wget https://dl-ssl.google.com/linux/linux_signing_key.pub
    
    echo -e "\e[31mDownloading google-chrome-stable_current_x86_64.rpm...\e[0m"
    wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
    
    echo -e "\e[31mInstalling the RPM signing key...\e[0m"
    sudo rpm --import linux_signing_key.pub
    
    echo -e "\e[31mInstalling google-chrome-stable_current_x86_64.rpm...\e[0m"
    sudo rpm -ivh google-chrome-stable_current_x86_64.rpm
    
    echo -e "\e[31mUpdating zypper's google-chrome repo signing key...  Answer 'yes' below...\e[0m"
    sudo zypper refresh google-chromeecho -e "\e[31mYou are done!  Please logout and then back in.\e[0m"
    echo -e "\e[31mIf things didn't work try running the script again.\e[0m"
    echo -e "\e[31mPlease note that if syntax, URLs, repo-names, or filenames change that this script will no longer work.\e[0m"
    
    #References 
    # https://forums.opensuse.org/showthread.php/526290-Google-Chrome-Update-Key-Validation-Error - Talks about this issue. Thanks All!
    # https://en.opensuse.org/images/1/17/Zypper-cheat-sheet-1.pdf - zypper command-line usage
    # https://linuxconfig.org/how-to-list-import-and-remove-archive-signing-keys-on-centos-7 - rpm key management and listing
    # https://stackoverflow.com/questions/17137269/bash-take-nth-column-in-a-text-file - awk usage to get command line output
    # https://www.howtoforge.com/tutorial/linux-xargs-command/ - xargs usage to run commands
    # https://www.google.com/chrome/browser/thankyou.html?statcb=1 - static link for downloading google-chrome-stable at page bottom
    # https://misc.flogisoft.com/bash/tip_colors_and_formatting - tip colors and formatting for bash

  5. #25

    Default Re: Google Chrome Update Key Validation Error: Scripted Fix EDITED!!!!

    SORRY!!!! Goofed up on pasting the code part in my previous message... PLEASE USE THIS ONE... Error is at the bottom of the script.
    echo -e "\e[31mUpdating zypper's google-chrome repo signing key... Answer 'yes' below...\e[0m"
    sudo zypper refresh google-chromeecho -e "\e[31mYou are done! Please logout and then back in.\e[0m"

    SHOULD BE
    echo -e "\e[31mUpdating zypper's google-chrome repo signing key... Answer 'yes' below...\e[0m"
    sudo zypper refresh google-chrome

    echo -e "\e[31mYou are done! Please logout and then back in.\e[0m"

    CORRECTED BELOW

    Code:
    #!/bin/bash
    
    echo -e "\e[31m-----------------------------------------------------------------------------\e[0m"
    echo -e "\e[31mThis script seeks to assist in fixing the issues related to Google\e[0m"
    echo -e "\e[31mfrequently changing their RPM signing keys for the Chrome web browser.\e[0m"
    echo -e "\e[31mPlease note that this script will delete the signing key and rpm installation\e[0m"
    echo -e "\e[31mfiles for Google Chrome from your user's 'Downloads' folder.\e[0m"
    echo -e "\e[31mIf you don't want this, hit 'Ctrl-C' to end this script.\e[0m"
    echo -e "\e[31mRun at your own risk!!  PROVIDED AS IS!!!\e[0m"
    echo -e "\e[31mRefrences included at the bottom.  --tele2win\e[0m"
    echo -e "\e[31m--------------------------------Starting-------------------------------------\e[0m"
    
    read -n 1 -s -r -p "Press any key to continue or Ctl-C to quit!"
    
    echo -e "\e[31mRemoving Google Chrome Stable RPM...\e[0m"
    sudo rpm -e $(rpm -qa | grep google-chrome)
    
    echo -e "\e[31mDeleting the software repository for Google Chrome...\e[0m"
    sudo zypper rr http://dl.google.com/linux/chrome/rpm/stable/x86_64
    
    echo -e "\e[31mDiscovering, listing, and removing old Google RPM GPG keys...\e[0m"
    sudo rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n' | grep Google | awk '{ print $1 }' | sudo xargs rpm -e
    
    echo -e "\e[31mDeleting "/etc/default/google-chrome" so the newer repo will be added when the new Google Chrome RPM is installed...\e[0m"
    sudo rm /etc/default/google-chrome
    
    echo -e "\e[31mChanging to your user's 'Downloads' directory...\e[0m"
    cd ~/Downloads
    
    echo -e "\e[31mRemove the old signing key file in 'Downloads'...\e[0m"
    rm ~/Downloads/linux_signing_key.pub
    
    echo -e "\e[31mRemove the old Google Chrome Stable RPM...\e[0m"
    rm ~/Downloads/google-chrome-stable_current_x86_64.rpm
    
    echo -e "\e[31mDownloading the new signing key...\e[0m"
    wget https://dl-ssl.google.com/linux/linux_signing_key.pub
    
    echo -e "\e[31mDownloading google-chrome-stable_current_x86_64.rpm...\e[0m"
    wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
    
    echo -e "\e[31mInstalling the RPM signing key...\e[0m"
    sudo rpm --import linux_signing_key.pub
    
    echo -e "\e[31mInstalling google-chrome-stable_current_x86_64.rpm...\e[0m"
    sudo rpm -ivh google-chrome-stable_current_x86_64.rpm
    
    echo -e "\e[31mUpdating zypper's google-chrome repo signing key...  Answer 'yes' below...\e[0m"
    sudo zypper refresh google-chrome
    
    echo -e "\e[31mYou are done!  Please logout and then back in.\e[0m"
    echo -e "\e[31mIf things didn't work try running the script again.\e[0m"
    echo -e "\e[31mPlease note that if syntax, URLs, repo-names, or filenames change that this script will no longer work.\e[0m"
    
    #References 
    # https://forums.opensuse.org/showthread.php/526290-Google-Chrome-Update-Key-Validation-Error - Talks about this issue. Thanks All!
    # https://en.opensuse.org/images/1/17/Zypper-cheat-sheet-1.pdf - zypper command-line usage
    # https://linuxconfig.org/how-to-list-import-and-remove-archive-signing-keys-on-centos-7 - rpm key management and listing
    # https://stackoverflow.com/questions/17137269/bash-take-nth-column-in-a-text-file - awk usage to get command line output
    # https://www.howtoforge.com/tutorial/linux-xargs-command/ - xargs usage to run commands
    # https://www.google.com/chrome/browser/thankyou.html?statcb=1 - static link for downloading google-chrome-stable at page bottom
    # https://misc.flogisoft.com/bash/tip_colors_and_formatting - tip colors and formatting for bash

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •