标签归档:chrome

安装google key.pub

https://www.google.com/linuxrepositories/

The Linux Package Signing Key

Google’s Linux packages are signed with a GNU Privacy Guard (GPG) key. Google’s packages will automatically configure your package manager to verify product updates with the public signing key, but you may also install it separately if, for instance, you want to verify the integrity of an initial package download. Follow the instructions below to manually configure your package manager to use the key.

Key Details

Command line key installation for APT

On an APT-based system (Debian, Ubuntu, etc.), download the key and then use apt to install it.

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

Recent versions of apt-get will automatically attempt to verify packages on download. If an appropriate key is not found or if the package is corrupted, you will get a message like the following:

WARNING: The following packages cannot be authenticated!
packagename

Command line key installation for RPM

On an RPM-based system (Fedora, SUSE, Mandriva, RHEL, etc.), download the key and then use rpm to install it.

wget https://dl.google.com/linux/linux_signing_key.pub
sudo rpm --import linux_signing_key.pub

You can verify the key installation by running:

rpm -qi gpg-pubkey-7fac5991-*

To manually verify an RPM package, you can run the command:

rpm --checksig -v packagename.rpm
Advertisements

feodra安装google chrome步骤

1.首先从网上搜索,在百度云盘之类的地方下载一个rpm版本的google chrome安装上
2.然后创建 yum 安装需要的源 repo

位置
/etc/yum.repos.d/google-chrome.repo

内容
[google-chrome]
name=google-chrome – \$basearch
baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

之后可以yum update更新到最新版本的chrome

然后,由于没有导入 Public key

你会发现这样的报错”Public key for google-chrome-stable_current_x86_64.rpm is not installed”

需要导入这个key

rpm –import https://dl-ssl.google.com/linux/linux_signing_key.pub

由于无法访问google

所以这个key下载不下来

可以在本地建立一个linux_signing_key.pub的文件。

通过翻墙代理,访问上面的https://dl-ssl.google.com/linux/linux_signing_key.pub

把这个页面的内容复制到linux_signing_key.pub中,再用 rpm –import ./linux_signing_key.pub

来导入。

导入后,可正常更新!

参考文献:https://ask.fedoraproject.org/en/question/7444/google-chrome-doesnt-install-on-my-fedora-box/