Trying to install Chrome browser on Debian Stretch

Help with issues regarding installation of Debian

Re: Trying to install Chrome browser on Debian Stretch

Postby sunrat » 2017-10-25 23:33

What Steve said above ^, it's the reason for your apt-get error.
Fix that first (as I said, we're still wondering where that line came from).
dpkg will not install dependencies, so to use that you need to install dependencies first ie. libappindicator1
gdebi should install dependencies, God knows why it didn't work.
“ 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 browser on Debian Stretch

Postby stevepusser » 2017-10-26 01:38

Gdebi will install dependencies, so obviously whatever this "Debian software installer" really is, it's stupid if it's just using "dpkg -i". The lack of any terminal or other helpful error message makes me think it's some GNOME thing.

You can now also use apt on the command line to install local deb files and pull in dependencies; its advantage over gdebi is that you can use it to install multiple debs in one go that can depend on one another. Its disadvantage is a trickier syntax.
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 browser on Debian Stretch

Postby stevepusser » 2017-10-26 01:59

It seems that GNOME software sets up as the default app for standalone debs, but it currently can't install them. Doesn't appear anyone is going to fix the bug in Debian: https://bugs.debian.org/cgi-bin/bugrepo ... bug=851856

Ubuntu also shipped a bugged version of that with some recent releases, but they have more interest in fixing it.
Last edited by stevepusser on 2017-10-26 19:19, edited 1 time in total.
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

[SOLVED] Re: Trying to install Chrome browser on Debian Stre

Postby elton-w » 2017-10-26 16:19

stevepusser wrote:You must still remove line #19 from your /etc/apt/sources.list file. It is incorrect and causing the error, as has been clearly stated several times already. You can use Synaptic if installed to manage your repositories from a GUI.

It is possible to disable a line by commenting it out, but since you are going to have a working line in another file, remove it altogether.

I forgot to mention that I am not skilled using the nano editor.

The line has now been removed ans /etc/apt/sources.list now reads:
Code: Select all
#

# deb cdrom:[Debian GNU/Linux 9.1.0 _Stretch_ - Official amd64 DVD Binary-1 201$

#deb cdrom:[Debian GNU/Linux 9.1.0 _Stretch_ - Official amd64 DVD Binary-1 2017$

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


Even after correcting the sources.list file, there is still a dependency problem.
I don't know which package I need to install to resolve this.


Code: Select all
elton@debian:~/Downloads$  sudo dpkg -i google-chrome-stable_current_amd64.deb
[sudo] password for elton:
(Reading database ... 219041 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (62.0.3202.62-1) over (62.0.3202.62-1) ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
 google-chrome-stable depends on libappindicator1; however:
  Package libappindicator1 is not installed.

dpkg: error processing package google-chrome-stable (--install):
 dependency problems - leaving unconfigured
Processing triggers for menu (2.1.47+b1) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
 google-chrome-stable
elton@debian:~/Downloads$
[/codeelton@debian:~/Downloads$  sudo dpkg -i google-chrome-stable_current_amd64.deb
[sudo] password for elton:
(Reading database ... 219041 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (62.0.3202.62-1) over (62.0.3202.62-1) ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
 google-chrome-stable depends on libappindicator1; however:
  Package libappindicator1 is not installed.

dpkg: error processing package google-chrome-stable (--install):
 dependency problems - leaving unconfigured
Processing triggers for menu (2.1.47+b1) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
 google-chrome-stable
elton@debian:~/Downloads$


Also as suggested, I did:
Code: Select all
elton@debian:~/Downloads$ sudo dpkg -i google-chrome-stable_current_amd64.deb
(Reading database ... 219066 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (62.0.3202.62-1) over (62.0.3202.62-1) ...
Setting up google-chrome-stable (62.0.3202.62-1) ...
Processing triggers for menu (2.1.47+b1) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for man-db (2.7.6.1-2) ...
elton@debian:~/Downloads$


SUCCESS!!!
The Google Chrome browser is installed and working.
Thanks for your help and also to my friend Tiago Bortoletto Vaz of Team Debian for his help too.
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 browser on Debian Stretch

Postby stevepusser » 2017-10-26 19:24

In the future, you can just install gdebi and use it on the command line, or its gdebi-gtk GUI, since it will automatically install missing dependencies if available, or refuse to install them if it's an incompatible package. Dpkg will happily half-install incompatible packages and then you'll have a semi-broken system--this has led to innumerable posts here.
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 browser on Debian Stretch

Postby debiman » 2017-10-28 08:01

sudo dpkg -i google-chrome-stable_current_amd64.deb

interestingly, the exact same command has been used twice - first time it errored, 2nd time it worked.
User avatar
debiman
 
Posts: 1619
Joined: 2013-03-12 07:18

Re: Trying to install Chrome browser on Debian Stretch

Postby sunrat » 2017-10-28 08:43

debiman wrote:sudo dpkg -i google-chrome-stable_current_amd64.deb

interestingly, the exact same command has been used twice - first time it errored, 2nd time it worked.

I noticed that. There is some crucial information missing here, such as OP installed the missing dependency before the second try, as advised.
Otherwise the definition of insanity needs to be revised:
https://www.brainyquote.com/quotes/quot ... 33991.html
“ 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 browser on Debian Stretch

Postby justinmk85 » 2017-11-23 12:43

I have installed chrome another way it didn't have any errors for me. See this site https://www.linuxbabe.com/desktop-linux ... e-easy-way
justinmk85
 
Posts: 23
Joined: 2017-11-18 18:40

Re: Trying to install Chrome browser on Debian Stretch

Postby sunrat » 2017-11-23 22:00

justinmk85 wrote:I have installed chrome another way it didn't have any errors for me. See this site https://www.linuxbabe.com/desktop-linux ... e-easy-way

Rube Goldberg would be proud of you!

The easiest way is :
- download from https://www.google.com/chrome/browser/desktop/
- change to your Downloads directory and install with
Code: Select all
apt install ./google-chrome-stable_current_amd64.deb

Use tab completion so you don't have to type the full name.
This will add the key, install dependencies, add the repo for automatic updates and install all in one command. :wink: 8)
“ 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

Previous

Return to Installation

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable