Author Topic: Trying to Install Google Chrome  (Read 1286 times)

Trying to Install Google Chrome
« on: 23 December, 2020, 05:41:38 pm »
I'm trying to install Google Chrome on a professionally refurbished Dell Latitude D530 with a command which has worked on other Debian machines, but not this time.  I have downloaded google-chrome-stable_current_amd64.deb to a folder called Software, and then I'm running dpkg as follows:

Code: [Select]
root@delldebian:~# dpkg -i /home/martin/Software/google-chrome-stable_current_amd64.deb
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin

What's going on?

Re: Trying to Install Google Chrome
« Reply #1 on: 23 December, 2020, 10:37:56 pm »
What does PATH look like?  Run

  echo $PATH

How did you get root? If you run a plain

  su

then you get root but not root's environment. If you run

  su -

you get root's environment. If you use sudo the environment behaviour is configurable.

Re: Trying to Install Google Chrome
« Reply #2 on: 24 December, 2020, 01:05:50 am »
I use GDebi Package Installer for installing deb files, on Ubuntu but I'd expect it works on Debian as well.

fuaran

  • rothair gasta
Re: Trying to Install Google Chrome
« Reply #3 on: 24 December, 2020, 03:20:57 am »
Why not just install Chromium?
It is mostly the same as Chrome, and should be available in the Debian repositories.

Re: Trying to Install Google Chrome
« Reply #4 on: 24 December, 2020, 04:58:10 am »
Something does look wrong with that root shell. How did you enter that shell?
Also would it not be more normal in debian to   sudo dpkg   

Another thought - has that shell or the Chrome install scripts gotten itself int a chroot environment,
which does not have ldconfig etc. etc.

quixoticgeek

  • Mostly Harmless
Re: Trying to Install Google Chrome
« Reply #5 on: 24 December, 2020, 10:16:10 am »

In recent debians, the $PATH of root has been annoyingly devoid of much of the useful stuff, which is a right pain in the arse.

add the directories to your path, and away you go.

J
--
Beer, bikes, and backpacking
http://b.42q.eu/

Re: Trying to Install Google Chrome
« Reply #6 on: 24 December, 2020, 04:03:08 pm »
Thanks for all the replies.

The command echo $PATH, whether in root or not, shows:
Code: [Select]
martin@delldebian:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

I think I probably got there via su + password.

I succeeded in the end by using:
Code: [Select]
apt install ./home/martin/Software/LibreOffice_7.0.4.2_Linux_x86-64_deb.DEBS *.deb

Learning all the time... 

Re: Trying to Install Google Chrome
« Reply #7 on: 24 December, 2020, 06:00:07 pm »
The command echo $PATH, whether in root or not, shows:
Code: [Select]
martin@delldebian:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

I think I probably got there via su + password.

Yes, a plain "su" gives you root but not root's environment, so you retain the PATH of the non-root user. If you use "su -" then you will get root with root's environment which includes root's PATH.

If you use sudo that will typically also give you root with root's environment.