14

I used the command $ sudo apt-get install chromium and it didn't work. I'm using Raspberry Jessie. When I ran the command I got this:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package chromium is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  chromium-inspector chromium-bsu

E: Package 'chromium' has no installation candidate
Axel Beckert
  • 1,240
  • 14
  • 27
Allim
  • 143
  • 1
  • 1
  • 5

5 Answers5

28

It's in the raspberrypi.org repository for Raspbian now.

sudo apt-get install chromium-browser
Axel Beckert
  • 1,240
  • 14
  • 27
Ben Cline
  • 396
  • 3
  • 4
23

This answer is outdated and should no more be followed. See https://raspberrypi.stackexchange.com/a/56231/42933 for—since October 2016—the most appropriate answer.

As already shown in the previous answer, the general idea is to use Chromium builds from Ubuntu. Using their staging repository for Chromium security updates is probably not the only way, but not a bad choice either:

  • Always up-to-date.
  • Only contains Chromium and doesn't contain any unrelated packages.

To add that PPA to your Raspbian Jessie or Debian Jessie on a Raspberry Pi 2 or 3 (won't work on the Raspberry Pi 1), add the vivid version of https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage to your /etc/apt/sources.list or create a new file at /etc/apt/sources.list.d/chromium-ppa.list with the following lines (source repository commented out as by default on Raspbian):

deb http://ppa.launchpad.net/canonical-chromium-builds/stage/ubuntu vivid main 
#deb-src http://ppa.launchpad.net/canonical-chromium-builds/stage/ubuntu vivid main 

Ubuntu 15.10 Vivid is the Ubuntu release which is closest to Debian/Raspbian 8 Jessie and hence doesn't need any additional non-Raspbian/-Debian packages to be installed to fulfill dependencies. (Ubuntu 15.04 Vivid itself is no more supported, but Chromium builds are still generated for it for some reason unknown to me. If that stops, you might want to switch to either Ubuntu 14.04 LTS Trusty or Ubuntu 15.10 Wily and install the few additional dependencies from normal Ubuntu repositories.)

To being able to verify the downloaded packages, you need to import the according GnuPG key into APT. By using the full fingerprint as key-id when downloading and importing the key you can be as sure to have the right key as with comparing the fingerprint after downloading:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DB69B232436DAC4B50BDC59E4E1B983C5B393194

Please verify the above fingerprint against the one published on https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage to be sure to allow the right key to install packages on your system.

Finally you just need to update the package list and install the chromium-browser package:

sudo apt update
sudo apt install chromium-browser

After that you can already call chromium-browser on the commandline. But to see it also in the menu, etc., you might want to log out and in again or just reboot.

Axel Beckert
  • 1,240
  • 14
  • 27
6

Axel Beckert is correct in his answer, however any version of Chromium after 48 wont run on armhf (which is what Raspberry Pi 2 & 3 use) because of this bug: https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1563184

To correct this I modified DolbyOver's answer as follows:

wget https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage/+build/8883797/+files/chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb
wget https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage/+build/8883797/+files/chromium-codecs-ffmpeg_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb
wget https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage/+build/8883797/+files/chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb
wget https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage/+build/8883797/+files/chromium-chromedriver_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb

sudo apt-get install -f

sudo dpkg -i chromium-codecs-ffmpeg_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb chromium-chromedriver_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb

Use this method until the bug above has been fixed.

th317erd
  • 161
  • 1
  • 1
2
wget https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage/+build/7916060/+files/chromium-browser_45.0.2454.85-0ubuntu0.15.04.1.1181_armhf.deb
wget https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage/+build/7916060/+files/chromium-codecs-ffmpeg-extra_45.0.2454.85-0ubuntu0.15.04.1.1181_armhf.deb
sudo dpkg -i chromium-codecs-ffmpeg-extra_45.0.2454.85–0ubuntu0.15.04.1.1181_armhf.deb chromium-browser_45.0.2454.85–0ubuntu0.15.04.1.1181_armhf.deb

and then

sudo apt-get install -f

and then

sudo dpkg -i chromium-codecs-ffmpeg-extra_45.0.2454.85–0ubuntu0.15.04.1.1181_armhf.deb chromium-browser_45.0.2454.85–0ubuntu0.15.04.1.1181_armhf.deb
DolbyOver
  • 70
  • 3
0

Ben's answer about raspberrypi.org repos didn't work for me because it tries to pull in raspberrypi-bootloader and other packages that I wasnt willing to install.

What I ended up doing is pull Chromium from Ubuntu, but through the package manager to have updates and verification.

I'm using jessie and trusty as of today, but it should work for newer releases as well.

  • Add trusty repos:

    deb http://ports.ubuntu.com trusty main universe multiverse
    deb http://ports.ubuntu.com trusty-updates main universe multiverse
    
  • Setup default release for apt:

    echo 'APT::Default-Release "jessie";' > /etc/apt/apt.conf.d/10release
    
  • Add Ubuntu keys to apt's truststore:

    apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 3B4FE6ACC0B21F32
    
  • Update and instal

    apt-get update
    apt-get install chromium-browser/trusty chromium-browser-l10n/trusty chromium-codecs-ffmpeg-extra/trusty
    

Using -t trusty instead of /trusty might be preferrable in some cases (e.g., you want to pull in all dependencies as well)

GnP
  • 181
  • 4