Trying to install Chrome browser on Debian Stretch

Help with issues regarding installation of Debian

Trying to install Chrome browser on Debian Stretch

Postby elton-w » 2017-10-15 19:43

A few months ago Debian 9.1.0 "Stretch" was installed for me during DebConf 17 on my Lenovo50-45. Prevuously, I had been using Mint Liinux 18.1.
Searching the forums, I found this link:
http://forums.debian.net/viewtopic.php?t=131432.

However I am unsuccessful at this point:
Code: Select all
elton@debian:~$ sudo apt-get install google-chrome-stable
E: Type 'http://dl.google.com/linux/chrome/deb/' is not known on line 19 in source list /etc/apt/sources.list
E: The list of sources could not be read.
E: Type 'http://dl.google.com/linux/chrome/deb/' is not known on line 19 in source list /etc/apt/sources.list
E: The list of sources could not be read.


... what am I doing wrong?
Registered Linux User #193975-85134
elton-w
 
Posts: 33
Joined: 2017-10-15 18:57
Location: Montréal, Québec, CANADA

Re: trying to install chrome browawe on Debian Stretch

Postby L_V » 2017-10-15 20:25

elton-w wrote: ... what am I doing wrong?

Before installing, it is better to check first if what you want to install is available in Debian repository
Code: Select all
apt-cache search google-chrome-stable

If it returns nothing, no chance !
Try this:
Code: Select all
apt-cache search --names-only chromium
L_V
 
Posts: 717
Joined: 2007-03-19 09:04

Re: trying to install chrome browawe on Debian Stretch

Postby arochester » 2017-10-15 20:40

1) You seem to have followed the problem rather than the solution.

Look at the first post by Head_on_a_Stick. The Chrome repository should end up in sources.list.d and not the sources.list.

2) Debian uses Chromium by default over Chrome. Chromium is very Chrome-like. It has most of the Chrome buttons and bells.

...You might be better to use Chromium instead (unless you have a particular reason for not doing so).
"Something to be aware of: Debian is a core or source distribution. This means there are many Debian-based distributions. THEY ARE NOT DEBIAN."
arochester
 
Posts: 1112
Joined: 2010-12-07 19:55

Re: trying to install chrome browawe on Debian Stretch

Postby GarryRicketson » 2017-10-15 21:06

Show us exactly what you have in your /etc/apt/sources.list
and the /etc/apt/sources.list .d/
Note: the sources.list.d is a directory, not a file, but you should
have a file for this, if you followed the instructions correctly.

This is not correct, and is not what the instructions show.
Code: Select all
http://dl.google.com/linux/chrome/deb/


As all ready suggested,
It would be better, in my opinion, if you just use Chromium, the default
until you get a better understanding of how Debian, and the packages , sources.list, etc all work.
User avatar
GarryRicketson
 
Posts: 4460
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: trying to install chrome browawe on Debian Stretch

Postby stevepusser » 2017-10-16 01:33

Yes, you have a malformed line in sources.list for the Google repo, no doubt it's missing the "deb" at the beginning. Maybe that helper at the DebConf was distracted. But just download the Chrome deb from Google if you really want that version and install it, part of the install process will add the repo in a file in that sources.list.d folder automatically. You should edit /etc/apt/sources.list to remove that malformed line.

Along with Chromium, Slimjet is another Chromium-based browser that I like, but they don't maintain a repo. You currently have to download and install a deb with every new version to stay updated.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8938
Joined: 2009-10-06 05:53

Re: trying to install chrome browawe on Debian Stretch

Postby elton-w » 2017-10-17 21:37

To all who kindly esponded to this post: my aplogies, but somehow I did not enable notifications, so only today I thought of checking for replies and suggestions.
I will ow attempt to reply to your comments (for which I thank you)
Registered Linux User #193975-85134
elton-w
 
Posts: 33
Joined: 2017-10-15 18:57
Location: Montréal, Québec, CANADA

Re: trying to install chrome browawe on Debian Stretch

Postby elton-w » 2017-10-17 21:41

L_V wrote:
elton-w wrote: ... what am I doing wrong?

Before installing, it is better to check first if what you want to install is available in Debian repository
Code: Select all
apt-cache search google-chrome-stable

If it returns nothing, no chance !
Try this:
Code: Select all
apt-cache search --names-only chromium

This is what I got:
Code: Select all
elton@debian:~$ apt-cache search google-chrome-stable
E: Type 'http://dl.google.com/linux/chrome/deb/' is not known on line 19 in source list /etc/apt/sources.list
E: The list of sources could not be read.
elton@debian:~$ apt-cache search --names-only chromium
E: Type 'http://dl.google.com/linux/chrome/deb/' is not known on line 19 in source list /etc/apt/sources.list
E: The list of sources could not be read.

:(
Registered Linux User #193975-85134
elton-w
 
Posts: 33
Joined: 2017-10-15 18:57
Location: Montréal, Québec, CANADA

Re: trying to install chrome browawe on Debian Stretch

Postby elton-w » 2017-10-17 21:50

arochester wrote:1) You seem to have followed the problem rather than the solution.

Look at the first post by Head_on_a_Stick. The Chrome repository should end up in sources.list.d and not the sources.list.

2) Debian uses Chromium by default over Chrome. Chromium is very Chrome-like. It has most of the Chrome buttons and bells.

...You might be better to use Chromium instead (unless you have a particular reason for not doing so).

I am aware of Chromium (and used it in the past with Linux Mint). However, one of the reasons for my "insistence" in using Google's official browser, rather than the community-developed one, is because I've had issues linking some apps with chromium/ One example is JSTorrent.
Registered Linux User #193975-85134
elton-w
 
Posts: 33
Joined: 2017-10-15 18:57
Location: Montréal, Québec, CANADA

Re: trying to install chrome browawe on Debian Stretch

Postby elton-w » 2017-10-17 22:09

GarryRicketson wrote:Show us exactly what you have in your /etc/apt/sources.list
and the /etc/apt/sources.list .d/
Note: the sources.list.d is a directory, not a file, but you should
have a file for this, if you followed the instructions correctly.

This is not correct, and is not what the instructions show.
Code: Select all
http://dl.google.com/linux/chrome/deb/


As all ready suggested,
It would be better, in my opinion, if you just use Chromium, the default
until you get a better understanding of how Debian, and the packages , sources.list, etc all work.

This is the contents of: sources.list:
Code: Select all
#

# deb cdrom:[Debian GNU/Linux 9.1.0 _Stretch_ - Official amd64 DVD Binary-1 20170722-11:31]/ stretch contrib main

#deb cdrom:[Debian GNU/Linux 9.1.0 _Stretch_ - Official amd64 DVD Binary-1 20170722-11:31]/ stretch contrib main

deb http://security.debian.org/debian-security stretch/updates main contrib
deb-src http://security.debian.org/debian-security stretch/updates main contrib

# stretch-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
deb http://deb.debian.org/debian/ stretch-updates main contrib
deb http://deb.debian.org/debian/ stretch main contrib non-free
# deb-src http://deb.debian.org/debian/ stretch-updates main contrib
deb http://deb.debian.org/debian/ stretch-backports main contrib non-free
http://dl.google.com/linux/chrome/deb/ stable main


OTOH, the directory sources.list.d is empty.

Also, my attempts at installation were as follows:
===============================================================================
[SOLVED] Installing Google Chrome in Debian Stretch
viewtopic.php?t=131432
and
How to Install Google Chrome on Debian the Easy Way
https://www.linuxbabe.com/desktop-linux ... e-easy-way

In both instances the procedure(s) fail at this point:
"$ sudo apt-get update
E: Type 'http://dl.google.com/linux/chrome/deb/' is not known on line 19 in source list /etc/apt/sources.list
E: The list of sources could not be read."
===================================================================================

I'm somewhat ashamed to admit that I tend to do things via the GUI rather than from a console session.
Though I know the latter is faster. My "excuse" is that I am a poor typist, and quite prone to typos.
Registered Linux User #193975-85134
elton-w
 
Posts: 33
Joined: 2017-10-15 18:57
Location: Montréal, Québec, CANADA

Re: trying to install chrome browawe on Debian Stretch

Postby RU55EL » 2017-10-17 23:34

stevepusser wrote:Yes, you have a malformed line in sources.list for the Google repo, no doubt it's missing the "deb" at the beginning. [...]


Yep, you hit the nail on the head with that one!

The last line of the original posters sources.list file:
Code: Select all
http://dl.google.com/linux/chrome/deb/ stable main


elton-w, you should read sources.list at Debian Wiki.
User avatar
RU55EL
 
Posts: 334
Joined: 2014-04-07 03:42
Location: /home/russel

Re: trying to install chrome browawe on Debian Stretch

Postby sunrat » 2017-10-17 23:38

http://dl.google.com/linux/chrome/deb/ stable main
This line in sources.list should have deb at the start:
Code: Select all
deb http://dl.google.com/linux/chrome/deb/ stable main
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2056
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: trying to install chrome browawe on Debian Stretch

Postby stevepusser » 2017-10-18 01:39

Pinpointing the problem is not difficult when the error message tells us exactly what line of what file it lies in.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8938
Joined: 2009-10-06 05:53

Re: trying to install chrome browawe on Debian Stretch

Postby RU55EL » 2017-10-18 02:40

stevepusser wrote:Pinpointing the problem is not difficult when the error message tells us exactly what line of what file it lies in.

Good point.
elton-w wrote:[...]
Code: Select all
elton@debian:~$ sudo apt-get install google-chrome-stable
E: Type 'http://dl.google.com/linux/chrome/deb/' is not known on line 19 in source list /etc/apt/sources.list
[...]
[...]
User avatar
RU55EL
 
Posts: 334
Joined: 2014-04-07 03:42
Location: /home/russel

Re: trying to install chrome browawe on Debian Stretch

Postby elton-w » 2017-10-18 16:45

before proceeding any further, would someone kindly guide me with this:
I have goon into my User Control and enabled:
Notify me upon replies by default [Apparently it's off by default]. This was done after I created the original post

I am still not receiving notifications or updates to this thread.
1) It has been quite a long while that I have been in any forums whatsoever.
2) This is my first posting / first involvement of any kind HERE (i.e. in the Debin Forums).

Thank you for your patience with me....
Registered Linux User #193975-85134
elton-w
 
Posts: 33
Joined: 2017-10-15 18:57
Location: Montréal, Québec, CANADA

Re: trying to install chrome browawe on Debian Stretch

Postby GarryRicketson » 2017-10-18 16:57

When you start a topic, or are replying, look at the bottom of the post editor:
Notify me when a reply is posted
Make sure the box is checked,
if you want to be notified about replies.
If it is not checked, you will not receive a notification.

I do not use the automatic option, in the "user control" panel, I guess I could try it, to see. Probably you should have started a different topic, here:
http://forums.debian.net/viewforum.php?f=12
In order to avoid de-railing (interrupting) this topic. Also make sure your e-mail
address is correct, if that is not correct , obviously you would not receive notifications.
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4460
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable