17

I am following a tutorial that is based on a Chrome extension so I have to install Chrome. When I tried the following command:

sudo apt-get install chromium 

I get the following error:

E: Package 'chromium' has no installation candidate.

I understand that it could be an architecture problem but what is the solution in my case? I am using a Raspberry Pi 2 Model B.

sudo apt-get install chromium-browser
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package chromium-browser 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

E: Package 'chromium-browser' has no installation candidate

The same goes when trying to install chromium. Also I get this when pressing tab:

pi@raspberrypi ~ $ sudo apt-get install chro
chromium-bsu        chromium-l10n       chrootuid
chromium-bsu-data   chronicle           
chromium-inspector  chrony 
Mona Jalal
  • 499
  • 2
  • 4
  • 12

6 Answers6

12

Try sudo apt-get install chromium-browser

Patrick Cook
  • 6,365
  • 8
  • 38
  • 63
9

For the Raspberry Pi Model 3 with Raspbian Jessie, copy and paste these 5 lines individually into the terminal:

sudo apt-get update
wget -qO - http://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add -
echo "deb http://dl.bintray.com/kusti8/chromium-rpi jessie main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install chromium-browser
goobering
  • 10,750
  • 4
  • 40
  • 64
7

Use these commands to install chromium-browser on Jessie (not Wheezy):

wget https://dl.dropboxusercontent.com/u/87113035/chromium-browser-l10n_45.0.2454.85-0ubuntu0.15.04.1.1181_all.deb
wget https://dl.dropboxusercontent.com/u/87113035/chromium-browser_45.0.2454.85-0ubuntu0.15.04.1.1181_armhf.deb
wget https://dl.dropboxusercontent.com/u/87113035/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
sudo dpkg -i chromium-browser-l10n_45.0.2454.85-0ubuntu0.15.04.1.1181_all.deb chromium-browser_45.0.2454.85-0ubuntu0.15.04.1.1181_armhf.deb

^answer is from @dfaze comment's link

Mona Jalal
  • 499
  • 2
  • 4
  • 12
4

This happens when you try to install a package APT doesn't know about. When you add software sources and run apt-get update, your system APT database is updated with all the packages on the repositories listed in the software sources list.

Then when you try to install a package, apt checks the package name in its database, finds it and checks the name of the repo from where it got it. It then downloads the package from that repo.

It is always useful to run apt-get update before doing apt-get install XXX, to ensure you get the latest software version that is on repo.

Bex
  • 2,929
  • 3
  • 26
  • 34
DFaze
  • 51
  • 2
1

I can confirm that, as of this post, sudo apt-get install chromium-browser works on Ubuntu MATE 15.10 on the Raspberry Pi 3.

Jacobm001
  • 11,904
  • 7
  • 47
  • 58
Eric Beyer
  • 11
  • 1
1
wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser-l10n_48.0.2564.82-0ubuntu0.15.04.1.1193_all.deb
wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb
wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb


sudo dpkg -i chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb
sudo dpkg -i chromium-browser-l10n_48.0.2564.82-0ubuntu0.15.04.1.1193_all.deb chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb

All credits go here.


Ansible version:

- hosts: all
  vars:
    chromium_version: 48.0.2564.82
    ubuntu_version: 15.04.1.1193
  tasks:
    # --- Install Chromium Browser ---
    - name: Download chromium packages
      get_url:
        url: "http://ports.ubuntu.com/pool/universe/c/chromium-browser/{{ item }}"
        dest: /home/pi/Downloads/
        owner: pi
        group: pi
      with_items:
        - "chromium-codecs-ffmpeg-extra_{{ chromium_version }}-0ubuntu0.{{ ubuntu_version }}_armhf.deb"
        - "chromium-browser_{{ chromium_version }}-0ubuntu0.{{ ubuntu_version }}_armhf.deb"
        - "chromium-browser-l10n_{{ chromium_version }}-0ubuntu0.{{ ubuntu_version }}_all.deb"

    - name: Install chromium packages
      apt:
        deb: "/home/pi/Downloads/{{ item }}"
      with_items:
        - "chromium-codecs-ffmpeg-extra_{{ chromium_version }}-0ubuntu0.{{ ubuntu_version }}_armhf.deb"
        - "chromium-browser_{{ chromium_version }}-0ubuntu0.{{ ubuntu_version }}_armhf.deb"
        - "chromium-browser-l10n_{{ chromium_version }}-0ubuntu0.{{ ubuntu_version }}_all.deb"
    # --- END: Install Chromium Browser ---

Find a project integration here.

NOTE
I would strongly encourage to add a checksum check (not present in the Ansible version as well) since the files are downloaded over http.

czerasz
  • 331
  • 1
  • 3
  • 9