Error: No matching repo to modify: google-chrome

This is what I am doing, following the official docs:

√ ; sudo dnf up fedora-workstation-repositories
Last metadata expiration check: 2:39:10 ago on Tue 03 Jan 2023 09:44:20 GMT.
Dependencies resolved.
Nothing to do.
Complete!
√ ; sudo dnf config-manager --set-enabled google-chrome
Error: No matching repo to modify: google-chrome.
✗ 1 ;

Any idea?

1 Like

the correct command to install the third-party repository is

sudo dnf install fedora-workstation-repositories

see Tree - rpms/fedora-workstation-repositories - src.fedoraproject.org

For Chromium, you can just install it without adding additional repositories to your system:

sudo dnf install chromium
2 Likes

I get the same error:

√ ; sudo dnf install fedora-workstation-repositories
Last metadata expiration check: 0:03:06 ago on Tue 03 Jan 2023 12:41:07 GMT.
Package fedora-workstation-repositories-35-4.fc37.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
√ ; sudo dnf config-manager --set-enabled google-chrome
Error: No matching repo to modify: google-chrome.
✗ 1 ; sudo dnf install google-chrome
Last metadata expiration check: 0:04:18 ago on Tue 03 Jan 2023 12:41:07 GMT.
No match for argument: google-chrome
Error: Unable to find a match: google-chrome
✗ 1 ; sudo dnf install google-chrome-stable
Last metadata expiration check: 0:05:02 ago on Tue 03 Jan 2023 12:41:07 GMT.
No match for argument: google-chrome-stable
Error: Unable to find a match: google-chrome-stable
✗ 1 ;
1 Like

1.) sudo dnf update --refresh
2) sudo dnf install google-chrome-stable --enablerepo=google-chrome

If that doesn’t work, please show us
ls -l /etc/yum.repos.d/
sudo cat /etc/yum.repos.d/google-chrome.repo

2 Likes

AH! This worked:

dnf reinstall fedora-workstation-repositories
dnf config-manager --set-enabled google-chrome
dnf install google-chrome-stable

The trick was to re-install fedora-workstation-repositories.

2 Likes

Your assistance is greatly appreciated!