Shell Person Help me keep the shell people alive.

7May/104

Install Google Chrome in Debian Lenny

This is simple.

First, get the package

Go to http://www.google.com/chrome/eula.html and select the 32-bit .deb for Debian/Ubuntu, then click "Accept and Install". This will download google-chrome-beta_current_i386.deb.

Optional: Prevent Chrome from adding the Google repository

If you want Chrome to keep itself up-to-date, don't do this step. However, if you just want to check Chrome out without changing too much, you might want to type the following command at the command line:

sudo touch /etc/default/google-chrome

Install with DPKG

In the directory where you downloaded Chrome:

sudo dpkg --install google-chrome-beta_current_i386.deb

In my case, I didn't have the necessary dependencies, so I got the following errors:

james@tv:~$ sudo dpkg --install google-chrome-beta_current_i386.deb
Selecting previously deselected package google-chrome-beta.
(Reading database ... 24475 files and directories currently installed.)
Unpacking google-chrome-beta (from google-chrome-beta_current_i386.deb) ...
dpkg: dependency problems prevent configuration of google-chrome-beta:
 google-chrome-beta depends on libgconf2-4; however:
  Package libgconf2-4 is not installed.
 google-chrome-beta depends on libxslt1.1; however:
  Package libxslt1.1 is not installed.
 google-chrome-beta depends on libxss1; however:
  Package libxss1 is not installed.
 google-chrome-beta depends on xdg-utils (>= 1.0.1); however:
  Package xdg-utils is not installed.
dpkg: error processing google-chrome-beta (--install):
 dependency problems - leaving unconfigured
Processing triggers for menu ...
Processing triggers for man-db ...
Errors were encountered while processing:
 google-chrome-beta

You can fix that with apt-get, like so:

sudo apt-get -f install

This will grab all of the dependencies Chrome needs. Here's the output (you'll need to type "y" when prompted):

james@tv:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  gconf2-common libgconf2-4 libidl0 liborbit2 libxslt1.1 libxss1 shared-mime-info xdg-utils
Suggested packages:
  desktop-file-utils libgnome2-0 exo-utils libgnomevfs2-bin kdelibs4c2a konqueror
The following NEW packages will be installed:
  gconf2-common libgconf2-4 libidl0 liborbit2 libxslt1.1 libxss1 shared-mime-info xdg-utils
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 3047kB of archives.
After this operation, 11.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.us.debian.org lenny/main gconf2-common 2.22.0-1 [1532kB]
Get:2 http://ftp.us.debian.org lenny/main libidl0 0.8.10-0.1 [87.6kB]
Get:3 http://ftp.us.debian.org lenny/main liborbit2 1:2.14.13-0.1 [249kB]
Get:4 http://ftp.us.debian.org lenny/main libgconf2-4 2.22.0-1 [242kB]
Get:5 http://ftp.us.debian.org lenny/main libxslt1.1 1.1.24-2 [227kB]
Get:6 http://ftp.us.debian.org lenny/main libxss1 1:1.1.3-1 [11.9kB]
Get:7 http://ftp.us.debian.org lenny/main xdg-utils 1.0.2-6.1 [54.3kB]
Get:8 http://ftp.us.debian.org lenny/main shared-mime-info 0.30-2 [644kB]
Fetched 3047kB in 7s (433kB/s)
Selecting previously deselected package gconf2-common.
(Reading database ... 24798 files and directories currently installed.)
Unpacking gconf2-common (from .../gconf2-common_2.22.0-1_all.deb) ...
Selecting previously deselected package libidl0.
Unpacking libidl0 (from .../libidl0_0.8.10-0.1_i386.deb) ...
Selecting previously deselected package liborbit2.
Unpacking liborbit2 (from .../liborbit2_1%3a2.14.13-0.1_i386.deb) ...
Selecting previously deselected package libgconf2-4.
Unpacking libgconf2-4 (from .../libgconf2-4_2.22.0-1_i386.deb) ...
Selecting previously deselected package libxslt1.1.
Unpacking libxslt1.1 (from .../libxslt1.1_1.1.24-2_i386.deb) ...
Selecting previously deselected package libxss1.
Unpacking libxss1 (from .../libxss1_1%3a1.1.3-1_i386.deb) ...
Selecting previously deselected package xdg-utils.
Unpacking xdg-utils (from .../xdg-utils_1.0.2-6.1_all.deb) ...
Selecting previously deselected package shared-mime-info.
Unpacking shared-mime-info (from .../shared-mime-info_0.30-2_i386.deb) ...
Processing triggers for man-db ...
Setting up gconf2-common (2.22.0-1) ...

Creating config file /etc/gconf/2/path with new version
Setting up libidl0 (0.8.10-0.1) ...
Setting up liborbit2 (1:2.14.13-0.1) ...
Setting up libgconf2-4 (2.22.0-1) ...
Setting up libxslt1.1 (1.1.24-2) ...
Setting up libxss1 (1:1.1.3-1) ...
Setting up xdg-utils (1.0.2-6.1) ...
Setting up google-chrome-beta (5.0.375.29-r46008) ...
Setting up shared-mime-info (0.30-2) ...
Processing triggers for menu ...

Now, I'm not sure if this last step is actually necessary, but I figured it couldn't hurt to repeat the original dpkg command, just to make sure it works with no errors (again, in the directory where you downloaded the .deb):

sudo dpkg --install google-chrome-beta_current_i386.deb

This time it worked fine:

james@tv:~$ sudo dpkg --install google-chrome-beta_current_i386.deb
(Reading database ... 25041 files and directories currently installed.)
Preparing to replace google-chrome-beta 5.0.375.29-r46008 (using google-chrome-beta_current_i386.deb) ...
Unpacking replacement google-chrome-beta ...
Setting up google-chrome-beta (5.0.375.29-r46008) ...
Processing triggers for menu ...
Processing triggers for man-db ...

Launch Chrome

google-chrome
Comments (4) Trackbacks (1)
  1. Thanks much. I thought it would be a lot of manual work, but sudo apt-get -f install
    worked like a charm. :)

  2. Glad it was helpful.

  3. Thanks!

    Makes a nice change for a guide for Linux to actually work

  4. Wow – that was helpful – Thanks for the post.


Leave a comment

(required)