Поиск по блогу

пятница, 29 мая 2015 г.

Как установить Google Chrome Stable Version On Kali (Debian, Ubuntu)

Этот тот случай, когда надо бы использовать репозиторий разработчика. Но не везло мне с репозиторием Гугла. Не хотел дистрибутив Chrome устанавливаться без ошибок. Наверное, не очень то мне и хотелось... Но вот приспичило, и установил с помощью волшебного удара в бубен apt-get install -f. Надо его запомнить.

Сначала проверяем подключенные репозитории

In [ ]:
root@kali:/home/kiss/Downloads# apt-get install google-chrome-stable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 google-chrome-stable : Depends: libappindicator1 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Потом пытаемся с понтом (wget) забрать пакет с Гугла

In [ ]:
root@kali:/home/kiss/Downloads# wget -c https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
--2015-05-28 22:04:12--  https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
Resolving dl.google.com (dl.google.com)... 173.194.122.231, 173.194.122.228, 173.194.122.227, ...
Connecting to dl.google.com (dl.google.com)|173.194.122.231|:443... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

Что-то подсказывает мне, что Гугл не любит такого юзер-агента. Не мудрствуя лукаво я скопировал ссылку https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb в адресную строку браузера. И Гугл не стал капризничать ...все загрузилось.

Теперь идем самым простым путем (как в ссылке выше):

In [ ]:
root@kali:/home/kiss/Downloads# dpkg -i google-chrome-*.deb
(Reading database ... 431174 files and directories currently installed.)
Preparing to replace google-chrome-stable 43.0.2357.65-1 (using google-chrome-stable_current_i386(1).deb) ...
Unpacking replacement google-chrome-stable ...
dpkg: warning: downgrading google-chrome-stable from 43.0.2357.81-1 to 43.0.2357.65-1
Preparing to replace google-chrome-stable 43.0.2357.81-1 (using google-chrome-stable_current_i386.deb) ...
Unpacking replacement google-chrome-stable ...
More than one copy of package google-chrome-stable has been unpacked
 in this run !  Only configuring it once.
dpkg: dependency problems prevent configuration of google-chrome-stable:
 google-chrome-stable depends on libappindicator1; however:
  Package libappindicator1 is not installed.

dpkg: error processing google-chrome-stable (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for man-db ...
Processing triggers for menu ...
Errors were encountered while processing:
 google-chrome-stable
In [ ]:
И кажется, что все пропало **dependency problems - leaving unconfigured**, но здесь надо ударить в волшебный бубен:
In [ ]:
root@kali:/home/kiss/Downloads# apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  indicator-application libappindicator1 libappindicator3-1 libdbusmenu-glib4 libdbusmenu-gtk3-4
  libdbusmenu-gtk4 libindicator3-7 libindicator7
The following NEW packages will be installed:
  indicator-application libappindicator1 libappindicator3-1 libdbusmenu-glib4 libdbusmenu-gtk3-4
  libdbusmenu-gtk4 libindicator3-7 libindicator7
0 upgraded, 8 newly installed, 0 to remove and 22 not upgraded.
1 not fully installed or removed.
Need to get 582 kB of archives.
After this operation, 1,184 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://http.kali.org/kali/ kali/main libdbusmenu-glib4 i386 0.6.2-1 [109 kB]
Get:2 http://http.kali.org/kali/ kali/main libdbusmenu-gtk4 i386 0.6.2-1 [94.5 kB]
Get:3 http://http.kali.org/kali/ kali/main libindicator7 i386 0.5.0-1 [55.7 kB]
Get:4 http://http.kali.org/kali/ kali/main libappindicator1 i386 0.4.92-2 [55.6 kB]
Get:5 http://http.kali.org/kali/ kali/main libdbusmenu-gtk3-4 i386 0.6.2-1 [94.7 kB]
Get:6 http://http.kali.org/kali/ kali/main libindicator3-7 i386 0.5.0-1 [55.7 kB]
Get:7 http://http.kali.org/kali/ kali/main libappindicator3-1 i386 0.4.92-2 [55.6 kB]
Get:8 http://http.kali.org/kali/ kali/main indicator-application i386 0.5.0-1 [61.6 kB]
Fetched 582 kB in 3s (181 kB/s)                 
Selecting previously unselected package libdbusmenu-glib4:i386.
(Reading database ... 431174 files and directories currently installed.)
Unpacking libdbusmenu-glib4:i386 (from .../libdbusmenu-glib4_0.6.2-1_i386.deb) ...
Selecting previously unselected package libdbusmenu-gtk4:i386.
Unpacking libdbusmenu-gtk4:i386 (from .../libdbusmenu-gtk4_0.6.2-1_i386.deb) ...
Selecting previously unselected package libindicator7.
Unpacking libindicator7 (from .../libindicator7_0.5.0-1_i386.deb) ...
Selecting previously unselected package libappindicator1.
Unpacking libappindicator1 (from .../libappindicator1_0.4.92-2_i386.deb) ...
Selecting previously unselected package libdbusmenu-gtk3-4:i386.
Unpacking libdbusmenu-gtk3-4:i386 (from .../libdbusmenu-gtk3-4_0.6.2-1_i386.deb) ...
Selecting previously unselected package libindicator3-7.
Unpacking libindicator3-7 (from .../libindicator3-7_0.5.0-1_i386.deb) ...
Selecting previously unselected package libappindicator3-1.
Unpacking libappindicator3-1 (from .../libappindicator3-1_0.4.92-2_i386.deb) ...
Selecting previously unselected package indicator-application.
Unpacking indicator-application (from .../indicator-application_0.5.0-1_i386.deb) ...
Setting up libdbusmenu-glib4:i386 (0.6.2-1) ...
Setting up libdbusmenu-gtk4:i386 (0.6.2-1) ...
Setting up libindicator7 (0.5.0-1) ...
Setting up libappindicator1 (0.4.92-2) ...
Setting up google-chrome-stable (43.0.2357.65-1) ...
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/x-www-browser (x-www-browser) in auto mode
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/google-chrome (google-chrome) in auto mode
Setting up libdbusmenu-gtk3-4:i386 (0.6.2-1) ...
Setting up libindicator3-7 (0.5.0-1) ...
Setting up libappindicator3-1 (0.4.92-2) ...
Setting up indicator-application (0.5.0-1) ...
Processing triggers for menu ...

И все установилось... А что это я сделал?

In [1]:
!apt-get --help
apt 0.9.7.9 for i386 compiled on Oct 23 2014 15:43:55
Usage: apt-get [options] command
       apt-get [options] install|remove pkg1 [pkg2 ...]
       apt-get [options] source pkg1 [pkg2 ...]

apt-get is a simple command line interface for downloading and
installing packages. The most frequently used commands are update
and install.

Commands:
   update - Retrieve new lists of packages
   upgrade - Perform an upgrade
   install - Install new packages (pkg is libc6 not libc6.deb)
   remove - Remove packages
   autoremove - Remove automatically all unused packages
   purge - Remove packages and config files
   source - Download source archives
   build-dep - Configure build-dependencies for source packages
   dist-upgrade - Distribution upgrade, see apt-get(8)
   dselect-upgrade - Follow dselect selections
   clean - Erase downloaded archive files
   autoclean - Erase old downloaded archive files
   check - Verify that there are no broken dependencies
   changelog - Download and display the changelog for the given package
   download - Download the binary package into the current directory

Options:
  -h  This help text.
  -q  Loggable output - no progress indicator
  -qq No output except for errors
  -d  Download only - do NOT install or unpack archives
  -s  No-act. Perform ordering simulation
  -y  Assume Yes to all queries and do not prompt
  -f  Attempt to correct a system with broken dependencies in place
  -m  Attempt to continue if archives are unlocatable
  -u  Show a list of upgraded packages as well
  -b  Build the source package after fetching it
  -V  Show verbose version numbers
  -c=? Read this configuration file
  -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
See the apt-get(8), sources.list(5) and apt.conf(5) manual
pages for more information and options.
                       This APT has Super Cow Powers.

Я осуществил удачную попытку с опцией -f Attempt to correct a system with broken dependencies in place

In [ ]:
# Без имени пакета!
apt-get install -f


Посты чуть ниже также могут вас заинтересовать

Комментариев нет:

Отправить комментарий