Author: Mintimate
Blog: https://www.mintimate.cn
Mintimate's Blog, just to share with you
shortcut directory
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):
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
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:
copy the download address, we go to the Raspberry Pi, use wget
the 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'
package manager installation
Now, we use Debain's package manager ( dpkg
that is, package manager for Debian) to install, and the installation sequence is:
chromium-codecs-ffmpeg-extra
–> chromium-browser
-> chromium-chromedriver
.
So, we use dkg
to 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
again :apt
sudo apt update
sudo apt upgrade
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 install
oraptitude install
solve it.
Outcome Test
Finally, let's test it out:
# 查看chromedriver版本
chromedriver -v
# 查看chromium版本
chromium-browser -version
At this point, the installation of the higher version of Chromium and Chromedriver on the Raspberry Pi is complete~~
Finally, happy new year~