Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Trying to install Chrome browser on Debian Stretch

Ask for help with issues regarding the Installations of the Debian O/S.
Message
Author
elton-w
Posts: 51
Joined: 2017-10-15 18:57
Location: Montréal, Québec, CANADA

Trying to install Chrome browser on Debian Stretch

#1 Post by elton-w »

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

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: trying to install chrome browawe on Debian Stretch

#2 Post by L_V »

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

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: trying to install chrome browawe on Debian Stretch

#3 Post by arochester »

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).

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: trying to install chrome browawe on Debian Stretch

#4 Post by GarryRicketson »

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
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: trying to install chrome browawe on Debian Stretch

#5 Post by stevepusser »

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.
MX Linux packager and developer

elton-w
Posts: 51
Joined: 2017-10-15 18:57
Location: Montréal, Québec, CANADA

Re: trying to install chrome browawe on Debian Stretch

#6 Post by elton-w »

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: 51
Joined: 2017-10-15 18:57
Location: Montréal, Québec, CANADA

Re: trying to install chrome browawe on Debian Stretch

#7 Post by elton-w »

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: 51
Joined: 2017-10-15 18:57
Location: Montréal, Québec, CANADA

Re: trying to install chrome browawe on Debian Stretch

#8 Post by elton-w »

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: 51
Joined: 2017-10-15 18:57
Location: Montréal, Québec, CANADA

Re: trying to install chrome browawe on Debian Stretch

#9 Post by elton-w »

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
http://forums.debian.net/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

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

Re: trying to install chrome browawe on Debian Stretch

#10 Post by RU55EL »

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
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: trying to install chrome browawe on Debian Stretch

#11 Post by sunrat »

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
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: trying to install chrome browawe on Debian Stretch

#12 Post by stevepusser »

Pinpointing the problem is not difficult when the error message tells us exactly what line of what file it lies in.
MX Linux packager and developer

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

Re: trying to install chrome browawe on Debian Stretch

#13 Post by RU55EL »

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
[...]
[...]

elton-w
Posts: 51
Joined: 2017-10-15 18:57
Location: Montréal, Québec, CANADA

Re: trying to install chrome browawe on Debian Stretch

#14 Post by elton-w »

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

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: trying to install chrome browawe on Debian Stretch

#15 Post by GarryRicketson »

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.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: trying to install chrome browawe on Debian Stretch

#16 Post by GarryRicketson »

I just now selected the "Notify when Replies" option, and the box at the bottom,
in Options , is now checked, so it appears to be working.
Won't know for sure until some one replies here though.

------------- edited --------------
It seems to be working fine for me, I started receiving notices on every post
I have replied to.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: trying to install chrome browawe on Debian Stretch

#17 Post by debiman »

^ by email or by some other means?

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: trying to install chrome browawe on Debian Stretch

#18 Post by GarryRicketson »

I receive them by e-mail.
Last edited by GarryRicketson on 2017-10-21 13:26, edited 1 time in total.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Trying to install chrome browser on Debian Stretch

#19 Post by debiman »

elton-w, maybe the notification mails are in your spam folder?

elton-w
Posts: 51
Joined: 2017-10-15 18:57
Location: Montréal, Québec, CANADA

Re: trying to install chrome browawe on Debian Stretch

#20 Post by elton-w »

GarryRicketson wrote: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.
Thank you so much!
I'm not frequent in any forums, turning on notifications will not overwhelm me. So I got your response in my email today.
I've only logged in today to briefly check my email.
Having difficulty concentrating while being being plagued with severe toothache pain .
(Should be back online after seeing the dentist next week Monday.) :-/
Registered Linux User #193975-85134

Post Reply