반응형
Notice
Recent Posts
Recent Comments
관리 메뉴

꿈꾸는 사람.

[ubuntu] 우분투 12.04 크롬 브라우저 설치 오류 해결. 본문

IT/Linux

[ubuntu] 우분투 12.04 크롬 브라우저 설치 오류 해결.

현무랑 니니 2014. 1. 21. 15:50
반응형








우분투 12.04에서 크롬 브라우저를 설치하려 한다.

보통은 문제 없이 설치되지만 아래와 같이 오류가 발생하는 경우도 있다.

문제의 원인을 알아보고 해결해 보자.


1. 크롬 브라우저 설치할 때 발생한 오류와 원인.

크롬 브라우저는 구글 사이트에서 deb로 받아 설치하려 한다.

발생한 오류

$ sudo dpkg -i google-chrome-stable_current_amd64.deb 
(Reading database ... 143823 files and directories currently installed.)
Preparing to replace google-chrome-stable 31.0.1650.63-1 (using google-chrome-stable_current_amd64.deb) ...
Unpacking replacement google-chrome-stable ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
 google-chrome-stable depends on libnss3 (>= 3.14.3); however:
  Version of libnss3 on system is 3.13.1.with.ckbi.1.88-1ubuntu6.
 google-chrome-stable depends on libxss1; however:
  Package libxss1 is not installed.
dpkg: error processing google-chrome-stable (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Processing triggers for man-db ...
Errors were encountered while processing:
 google-chrome-stable

오류 발생한 원인.

크롬 브라우저를 설치하려면 아래 패키지들이 설치되어 있어야 한다.

  • libgconf2-4
  • libnss3-1d
  • libxss1

즉, 크롬 브라우저는 이들 패키지에 대해 의존성이 있다는 것이다.

의존성이 있다는 의미는 크롬 브라우저가 동작하기 위해서 이들 패키지를 사용한다는 것이다.

libxss1 패키지가 설치되지 않아서 의존성 문제가 발생하여 크롬 브라우저를 설치하지 않는 것이다.


2. 크롬 브라우저 설치 오류 해결 방법.

의존성 문제 수정.

설치 시도 후 오류 발생한 상태에서 아래 명령 실행하면 의존성 문제가 있는 패키지를 설치한다.

설치에 문제가 없으면 크롬 브라우저를 다시 설치한다.

$ sudo apt-get install -f [sudo] password for hyunmu: Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: libnss3 libxss1 The following NEW packages will be installed: libxss1 The following packages will be upgraded: libnss3 1 upgraded, 1 newly installed, 0 to remove and 636 not upgraded. 1 not fully installed or removed. Need to get 1,233 kB of archives. After this operation, 234 kB of additional disk space will be used. Do you want to continue [Y/n]? Y Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libnss3 amd64 3.15.3.1-0ubuntu0.12.04.1 [1,225 kB] Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main libxss1 amd64 1:1.2.1-2 [8,646 B] Fetched 1,233 kB in 13s (94.1 kB/s) (Reading database ... 143823 files and directories currently installed.) Preparing to replace libnss3 3.13.1.with.ckbi.1.88-1ubuntu6 (using .../libnss3_3.15.3.1-0ubuntu0.12.04.1_amd64.deb) ... Unpacking replacement libnss3 ... Selecting previously unselected package libxss1. Unpacking libxss1 (from .../libxss1_1%3a1.2.1-2_amd64.deb) ... Setting up libnss3 (3.15.3.1-0ubuntu0.12.04.1) ... Setting up libxss1 (1:1.2.1-2) ... Setting up google-chrome-stable (31.0.1650.63-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. Processing triggers for libc-bin ... ldconfig deferred processing now taking place

$ sudo dpkg -i google-chrome-stable_current_amd64.deb (Reading database ... 143828 files and directories currently installed.) Preparing to replace google-chrome-stable 31.0.1650.63-1 (using google-chrome-stable_current_amd64.deb) ... Unpacking replacement google-chrome-stable ... Setting up google-chrome-stable (31.0.1650.63-1) ... Processing triggers for desktop-file-utils ... Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf.index... Processing triggers for gnome-menus ... Processing triggers for man-db ...

의존성 관계가 있는 패키지 설치.

설치 전에 시스템을 업데이트 한다. 그리고 직접 의존성 관계가 있는 패키지를 설치한다. 

$ sudo apt-get update
$ sudo apt-get install libgconf2-4 libnss3-1d libxss1


반응형
Comments