Raspberry Pi installs higher versions of Chromium and Chromedriver

Author: Mintimate

Blog: https://www.mintimate.cn
Mintimate's Blog, just to share with you

Chromium is an open source version of Google Chrome. Unlike Chrome, many codes of Chromium are provided by the open source community.

Google does not release an arm version of desktop Chrome; therefore, if you want to install the browser on the arm64 version of Debian on the Raspberry Pi, it is recommended to install Chromium.

As of 2022.01, the official Chromium source of the Raspberry Pi is version 89, but the latest version of Chromium is version 95.本文就教大家怎么安装高版本的Chromium。

Tutorials are for Debian systems, not limited to Debian-based systems (eg: Ubuntu).

Get a higher version of Chromium

You can choose to go to the Chromium official website , download the Chromium source code and compile it; but this is too troublesome (and not easy to manage):
Chromium official compilation tutorial

Therefore, I recommend downloading the official precompiled version of Chromium, and then use the package manager to install and manage it.

Debian precompiled version Chromium download: http://ports.ubuntu.com/pool/universe/c/chromium-browser
Debian precompiled version of Chromium

select download file

What do we need to download? Generally:

  • chromium-codecs-ffmpeg-extra_******arm64.deb: The ffmpeg file that chromium depends on.
  • chromium-browser*****arm64.deb: Chromium main file.
  • chromium-chromedriver******_arm64.deb: chromedrive driver, if you don’t need code to drive chromium, you don’t need to install it.

For example, download the 95.0 version of chromium:
download these
copy the download address, we go to the Raspberry Pi, use wgetthe download:

# 下载chromium-browser
wget 'http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser_95.0.4638.69-0ubuntu0.18.04.1_arm64.deb'
# 下载chromium-codecs-ffmpeg-extra
wget 'http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-codecs-ffmpeg-extra_95.0.4638.69-0ubuntu0.18.04.1_arm64.deb'
# 下载chromium-chromedriver
wget 'http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-chromedriver_95.0.4638.69-0ubuntu0.18.04.1_arm64.deb'

Download to Raspberry Pi

package manager installation

Now, we use Debain's package manager ( dpkgthat is, package manager for Debian) to install, and the installation sequence is:
chromium-codecs-ffmpeg-extra–> chromium-browser-> chromium-chromedriver.

So, we use dkgto install as:

# chromium-codecs-ffmpeg-extra
sudo dpkg -i chromium-codecs-ffmpeg-extra_95.0.4638.69-0ubuntu0.18.04.1_arm64.deb
# chromium-browser
sudo dpkg -i chromium-browser_95.0.4638.69-0ubuntu0.18.04.1_arm64.deb
# chromium-chromedriver
sudo dpkg -i chromium-chromedriver_95.0.4638.69-0ubuntu0.18.04.1_arm64.deb

Execution result: To be on the safe side, we run the update of the package manager
dpkg install
again :apt

sudo apt update
sudo apt upgrade

apt-update
At this point, our Chromium and chromedriver are installed.

You may encounter dependency problems during the installation process, because some newer lib packages may be installed on your Raspberry Pi. You can try to run apt-get -f installor aptitude installsolve it.

Outcome Test

Finally, let's test it out:

# 查看chromedriver版本
chromedriver -v
# 查看chromium版本
chromium-browser -version

view version
At this point, the installation of the higher version of Chromium and Chromedriver on the Raspberry Pi is complete~~
Finally, happy new year~
happy new year

Guess you like

Origin blog.csdn.net/weixin_43890033/article/details/122313492