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
  • 7
  • 37
  • 63
  • not working. Can you please take a look at the updated question? – Mona Jalal Jan 24 '16 at 23:58
  • 3
    Welcome to Raspberry Pi! Whilst this may theoretically answer the question, it would be preferable to include some explanation here, e.g. what do these commands do? (It was automatically flagged as low quality due to its length.) – Ghanima Jan 25 '16 at 00:40
  • @aaron you might wanna add my answer to your tutorial for those who are using Jessie – Mona Jalal Jan 25 '16 at 00:44
  • 5
    As of September 2016 chromium-browser (Chromium 51) is available through the standard Jessie distribution. – Stacey Campbell Oct 01 '16 at 17:46
  • As of August 2017, chromium-browser package on raspbian Stretch matches the latest available version (Chromium 60) – Quentin S. Aug 26 '17 at 16:34
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,730
  • 4
  • 39
  • 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
  • 25
  • 34
DFaze
  • 51
  • 2
  • 1
    I did the update and upgrade before running it and still the same error! – Mona Jalal Jan 24 '16 at 22:54
  • Have you tryed apt-get install chro and then press tabkey? you'll have a list of package starting with that... my rasp find chromium, chromium-browser ... isn't it the "browser" that you need? – DFaze Jan 24 '16 at 23:04
  • Pressing tab key doesn't suggest anything – Mona Jalal Jan 24 '16 at 23:05
  • What do you think could be wrong? – Mona Jalal Jan 24 '16 at 23:06
  • 1
    first make sure that bash-completion is installed:

    sudo apt-get install bash-completion or maybe sudo apt-get install --reinstall bash-completion and watch in your user directory (/home/pi by default) if you find a .bashrc file. if not, copy it from cp /etc/skel/.bashrc ~/

    – DFaze Jan 24 '16 at 23:17
  • so yeah I didn't have .bashrc in home and the last comment helped. but still chromium isn't a choice. Which one should I go with? pi@raspberrypi ~ $ sudo apt-get install chro chromium-bsu chromium-l10n chrootuid chromium-bsu-data chronicle chromium-inspector chrony – Mona Jalal Jan 24 '16 at 23:48
  • 1
    oh sorry...! i was testing on my Wheezy Rasp... on the Jessie one ... I have the same problem as you...! may try this link : https://www.raspberrypi.org/forums/viewtopic.php?t=121195 they show how to download the package and install it ;) – DFaze Jan 25 '16 at 00:23
  • should I add something here? /etc/apt/sources.list and what should I add? – Mona Jalal Jan 25 '16 at 00:34
  • 1
    You don't need. The link I recommend is not so old and you only have to follow directives in "code section" : wget 3 packages and dpkg (install package) them – DFaze Jan 25 '16 at 00:45
  • Great, it runs! failing that mark my answer as resolved , Could You please tag a +1 ;) see you – DFaze Jan 25 '16 at 08:26
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,898
  • 7
  • 46
  • 56
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
  • 321
  • 1
  • 3
  • 9
  • links are dead :( – Enrique San Martín Mar 05 '18 at 01:12
  • http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser-l10n_64.0.3282.167-0ubuntu1_all.deb -- http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser_64.0.3282.167-0ubuntu1_armhf.deb -- http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-codecs-ffmpeg-extra_64.0.3282.167-0ubuntu1_armhf.deb – Enrique San Martín Mar 05 '18 at 01:15