How do I fix Chrome apt sources when upgrading from 22.04 to 24.04?

Paddy I’m not sure where you are currently on the source issue:
This is how I got it working:

 sudo /usr/bin/wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/google.gpg >/dev/null
gpg: WARNING: unsafe permissions on homedir '/home/me/.gnupg'

Not the same error, after update:

Warning: https://dl.google.com/linux/chrome/deb/dists/stable/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/google.asc are ignored as the file is not readable by user executing gpgv.
Warning: https://dl.google.com/linux/chrome/deb/dists/stable/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/google.asc are ignored as the file has an unsupported filetype.
Warning: https://dl.google.com/linux/chrome/deb/dists/stable/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/google.gpg are ignored as the file is not readable by user executing gpgv.
Warning: https://dl.google.com/linux/chrome/deb/dists/stable/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/google.gpg are ignored as the file has an unsupported filetype.

This worked for me.

sudo apt modernize-sources

This is shown after:

The following files need modernizing:
  - /etc/apt/sources.list
  - /etc/apt/sources.list.d/google-chrome.list

Modernizing will replace .list files with the new .sources format,
add Signed-By values where they can be determined automatically,
and save the old files into .list.bak files.

This command supports the 'signed-by' and 'trusted' options. If you
have specified other options inside [] brackets, please transfer them
manually to the output files; see sources.list(5) for a mapping.

For a simulation, respond N in the following prompt.
Rewrite 2 sources? [Y/n] y
Modernizing /etc/apt/sources.list...

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


After update:

sudo apt update
Hit:1 http://archive.ubuntu.com/ubuntu questing InRelease
Hit:2 http://archive.ubuntu.com/ubuntu questing-updates InRelease              
Hit:3 http://security.ubuntu.com/ubuntu questing-security InRelease            
**Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease**                  
Hit:5 http://archive.ubuntu.com/ubuntu questing-backports InRelease            
Hit:6 http://archive.ubuntu.com/ubuntu questing-proposed InRelease
Hit:7 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu plucky InRelease
Hit:8 https://ppa.launchpadcontent.net/heyarje/makemkv-beta/ubuntu plucky InRelease
Hit:9 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu plucky InRelease
Hit:10 https://ppa.launchpadcontent.net/teejee2008/foss/ubuntu noble InRelease
All packages are up to date.    

Something like this:

sudo grep -r google  /etc/apt | grep -v amd64 
/etc/apt/sources.list.d/google-chrome.sources:URIs: https://dl.google.com/linux/chrome/deb/
/etc/apt/sources.list.d/google-chrome.sources:Signed-By: /etc/apt/trusted.gpg.d/google-chrome.gpg
grep: /etc/apt/trusted.gpg.d/google-chrome.gpg: binary file matches
grep: /etc/apt/trusted.gpg.d/google.gpg: binary file matches


3 Likes