Page 1 of 2

Chromium missing from stretch

Posted: Thu Aug 17, 2017 5:47 pm
by cgeiser
I just installed from a fresh download of the Raspbian Stretch image. When I log in to the GUI there is no browser available. I thought maybe chromium was missing from the image so I tried installing it but get the message that it is already installed.

Code: Select all

sudo apt-get install chromium-browser 
gives me this:

Code: Select all

Reading package lists... Done
Building dependency tree
Reading state information... Done
chromium-browser is already the newest version (56.0.2924.84-0ubuntu0.14.04.1.1000).
0 upgraded, 0 newly installed, 0 to remove and 795 not upgraded.
Next I've tried to manually start it:

Code: Select all

chromium-browser
and get this:

Code: Select all

-bash: chromium-browser: command not found
Any tips?

Thanks

Re: Chromium missing from stretch

Posted: Sat Aug 19, 2017 1:03 pm
by DirkS
cgeiser wrote:
Thu Aug 17, 2017 5:47 pm

Code: Select all

sudo apt-get install chromium-browser 
gives me this:

Code: Select all

Reading package lists... Done
Building dependency tree
Reading state information... Done
chromium-browser is already the newest version (56.0.2924.84-0ubuntu0.14.04.1.1000).
0 upgraded, 0 newly installed, 0 to remove and 795 not upgraded.
Are you sure you downloaded / installed the latest version from https://www.raspberrypi.org/downloads/raspbian/ dated 2017-08-16?
The pre-installed version of chromium on that image is 60.x
You can also see that there are 795 packages waiting to be upgraded. I wouldn't expect there to be that many straight after the RPF Stretch release.

Re: Chromium missing from stretch

Posted: Sat Aug 19, 2017 1:25 pm
by runboy93
I think this happens with Jessie -> Stretch upgrade.

Re: Chromium missing from stretch

Posted: Wed Nov 22, 2017 11:42 pm
by boltronics
The main sources.list repositories are:

Code: Select all

deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian/ stretch main contrib non-free rpi
While these lines contain most OS packages, chromium-browser is actually an extra package from archive.raspberrypi.org, so you'll also want these lines in your sources.list configuration:

Code: Select all

deb http://archive.raspberrypi.org/debian/ stretch main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspberrypi.org/debian/ stretch main
The chromium-browser package should now be available to you for installation.

Code: Select all

apt-cache policy chromium-browser
chromium-browser:
  Installed: 60.0.3112.89-0ubuntu0.14.04.1.1010
  Candidate: 60.0.3112.89-0ubuntu0.14.04.1.1010
  Version table:
 *** 60.0.3112.89-0ubuntu0.14.04.1.1010 500
        500 http://archive.raspberrypi.org/debian stretch/main armhf Packages
        100 /var/lib/dpkg/status
        

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 10:07 am
by amilino

Code: Select all

60.0.3112.89-0ubuntu0.14.04.1.1010
This version does not work on latest Raspbian stretch, just updated OS with

Code: Select all

rpi-update
and Chromium-browser is not starting.

Any idea how to install version 62 on stretch, apparently it is not in the archive repository? I don't want to install it manually, it must be in repository!

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 10:58 am
by SurferTim
Try this from a terminal. Works for me.

Code: Select all

chromium-browser
Edit: My bad. I have a script that launches chromium full screen. It is chromium-browser that works.

FYI, I'm using v56 so I can watch Netflix and Amazon Prime.

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 11:10 am
by amilino
Command not found.

And if I type

Code: Select all

chromium-browser
I get

Code: Select all

cannot open shared object file: Error 36
and some strange signs.

Before I did reinstall I had message

Code: Select all

illegal instruction
.

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 11:15 am
by SurferTim
I just checked the repository, and it shows chromium-browser as a candidate using v60.0.3112.89-0ubuntu.14.04.1.1010

Edit: Use this to determine installed and candidate versions

Code: Select all

sudo apt-cache policy chromium-browser

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 11:21 am
by amilino
Yes, that is the one I have installed from this repo

Code: Select all

deb http://archive.raspbian.org/raspbian/ stretch main contrib non-free rpi
.

What shoud I do to make it working I tried this:

Code: Select all

sudo rm -vf /var/lib/apt/lists/*

sudo apt-get clean
sudo apt-get autoclean

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo apt-get clean
sudo apt-get autoclean

sudo apt-get install chromium-browser

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 11:23 am
by SurferTim
Did you run this? What does it show?

Code: Select all

sudo apt-cache policy chromium-browser

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 11:31 am
by amilino
Of course.

Code: Select all

Linux raspberrypi 4.9.66-v7+ #1059 SMP Fri Dec 1 15:38:42 GMT 2017 armv7l

pi@raspberrypi:~ $ sudo apt-cache policy chromium-browser
chromium-browser:
  Installed: 60.0.3112.89-0ubuntu0.14.04.1.1010+1
  Candidate: 60.0.3112.89-0ubuntu0.14.04.1.1010+1
  Version table:
 *** 60.0.3112.89-0ubuntu0.14.04.1.1010+1 500
        500 http://archive.raspberrypi.org/debian stretch/main armhf Packages        100 /var/lib/dpkg/status
pi@raspberrypi:~ $

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 11:39 am
by SurferTim
If chromium won't run, you must have a bad OS install. Don't know what else to tell you. Chromium has not failed to run on any of my several installs.

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 11:55 am
by amilino
Hm, but how, everything else is working fine. I started with fresh stretch install. Is it possible that update of rpi did mess things up? How to force rpi-update?

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 12:02 pm
by SurferTim
You might have to remove chromium and reinstall it. I haven't tried this,so no guarantee. You may need to reboot between these.

Code: Select all

sudo apt-get purge chromium-browser
sudo apt-get install chromium-browser

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 12:23 pm
by amilino
Without rebooting between this is what I get.

Code: Select all

pi@raspberrypi:~ $ sudo apt-get install chromium-browser
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  webaccounts-chromium-extension unity-chromium-extension adobe-flashplugin
The following NEW packages will be installed:
  chromium-browser
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 58.4 MB of archives.
After this operation, 175 MB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian stretch/main armhf chromium-browser armhf 60.0.3112.89-0ubuntu0.14.04.1.1010+1 [58.4 MB]
Fetched 58.4 MB in 2min 40s (363 kB/s)
(Reading database ... 91610 files and directories currently installed.)
Preparing to unpack .../chromium-browser_60.0.3112.89-0ubuntu0.14.04.1.1010+1_armhf.deb ...
Unpacking chromium-browser (60.0.3112.89-0ubuntu0.14.04.1.1010+1) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/chromium-browser_60.0.3112.89-0ubuntu0.14.04.1.1010+1_armhf.deb (--unpack):
 cannot copy extracted data for './usr/lib/chromium-browser/chromium-browser' to '/usr/lib/chromium-browser/chromium-browser.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
 /var/cache/apt/archives/chromium-browser_60.0.3112.89-0ubuntu0.14.04.1.1010+1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 12:26 pm
by SurferTim
I don't know what you have installed or modified, but something is seriously wrong. Sounds like you need to reinstall your OS on the SD card.

Check your download. Insure the SHA-256 value is correct on the unpacked img file.

Edit: My bad the sha-256 checksum is for the zip file, not the img file.

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 12:34 pm
by amilino
I will never do rpi-update again.

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 12:37 pm
by SurferTim
amilino wrote:
Sat Dec 02, 2017 12:34 pm
I will never do rpi-update again.
I don't do the rpi-update any more. I was informed it could mess up your install. I do only these now.

Code: Select all

sudo apt-get update
sudo apt-get upgrade

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 2:08 pm
by fruitoftheloom
amilino wrote:
Sat Dec 02, 2017 12:34 pm
I will never do rpi-update again.

Since about 3 years ago rpi-update installs a Testing Kernel / Firmware and should only be used under advisement only if you understand how to repair the damage it can cause to Raspbian OS. You must have been reading very old instructions !!

I always undertake the following:

Code: Select all

sudo apt-get update
sudo apt-get dist upgrade

https://linux.die.net/man/8/apt-get


Looks like it is time to start afresh ??

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 2:11 pm
by amilino
I have 5 days old backup of SD card.

But what is the right instruction to update rpi or is it not advisable at all?

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 3:04 pm
by DougieLawson
DO NOT run rpi-update unless a) you understand what it does b) you have a good backup of your SDCard c) you can restore that backup in minutes rather than hours.

It gets the latest testing kernel and latest testing bootcode, with BRANCH=next it gets a 4.14.3 kernel that was built yesterday.

Re: Chromium missing from stretch

Posted: Sat Dec 02, 2017 3:18 pm
by fruitoftheloom
amilino wrote:
Sat Dec 02, 2017 2:11 pm
I have 5 days old backup of SD card.

But what is the right instruction to update rpi or is it not advisable at all?


My post above as stated in recent Blog:

https://www.raspberrypi.org/blog/stretc ... an-update/

Re: Chromium missing from stretch

Posted: Tue Dec 05, 2017 10:20 am
by amilino
Ok, so after two days of testing I decided to remove

Code: Select all

sudo apt-get upgrade
it is also outdated command. I had some issues with dependencies and some other errors.

Other issue is this line inside raspi.list:

Code: Select all

deb http://archive.raspberrypi.org/debian/ stretch main ui
It just downloaded pcmanfm which is having less features then the previous one. No bookmarks, no default view in setting. Very, very strange.
This verson sucks: 1.2.5-3+rpi3

Also I had issues with Kodi and again some illegal operation errors. So I hope that removing this archive.raspberrypi.org will fix things. Will let you know about my results once I repeat things with excluded things.

Re: Chromium missing from stretch

Posted: Tue Dec 05, 2017 12:01 pm
by SurferTim
Don't remove "sudo apt-get upgrade". I highly recommend running that.

Don't use "sudo rpi-update". They are different.

Re: Chromium missing from stretch

Posted: Tue Dec 05, 2017 12:12 pm
by amilino
After removing archive.raspberrypi.org source everything is updated fine. System is not updated so pcmanfm is having nice features which I don't want to lose. Kodi is also working fine. Now I will run sudo apt-get upgrade to see if things will stay like this. Yes everything is fine no new upgrades.