데비안 9에서는 Google Chrome을 설치할 수 없습니다.

데비안 9에서는 Google Chrome을 설치할 수 없습니다.

부팅 가능한 USB 플래시 드라이브에서 데비안 9를 설치했습니다. 나는 데비안 웹사이트에서 그것이 나에게 필요한 전부라고 말했기 때문에 DVD 1개만 복사했습니다. 나는 전체 파티션에 데비안을 설치했습니다(/home이나 다른 파티션으로 나누지 않았습니다). 그놈 데스크탑을 설치했습니다. 연결 상태가 좋지 않았기 때문에 네트워크 설치를 사용하지 않았습니다(.iso를 다운로드하려면 먼저 학교에 가야 했습니다).

나의 첫 번째 시도는 크롬을 /etc/apt/sources.list deb에 추가하는 것이었습니다.http://dl.google.com/linux/chrome/deb/안정적인 메인라인

그럼 난 달렸어

get https://dl-ssl.google.com/linux/linux_signing_key.pub

sudo apt-key add linux_signing_key.pub

sudo apt-get update

sudo apt-get install google-chrome-stable

결과는 다음과 같습니다.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 google-chrome-stable : Depends: gconf-service but it is not installable
                    Depends: libgconf-2-4 (>= 3.2.5) but it is not             installable
                    Depends: libappindicator1 but it is not installable
E: Unable to correct problems, you have held broken packages.

그런 다음 Google 자체에서 압축이 풀린 설치 프로그램을 다운로드해 보았습니다. 먼저 나는 달렸다

apt-get clean && apt-get update
apt-get upgrade
apt --fix-broken install

그럼 난 달렸어

dpkg -i google-chrome-stable_current_amd64.deb 

내 다운로드 디렉토리에서. 뱉어낸 그 사람

Selecting previously unselected package google-chrome-stable.
(Reading database ... 125174 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (60.0.3112.90-1) ...
dpkg: dependency problems prevent configuration of google-chrome-stable:
 google-chrome-stable depends on gconf-service; however:
Package gconf-service is not installed.
google-chrome-stable depends on libgconf-2-4 (>= 3.2.5); however:
Package libgconf-2-4 is not installed.
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 man-db (2.7.6.1-2) ...
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) ...
Errors were encountered while processing:
 google-chrome-stable

내가 여기서 뭘 잘못하고 있는 걸까? USB 부팅 디스크와 함께 설치되지 않은 종속성이 필요하지만 가져올 수 없습니다. 시냅틱 패키지 설치 프로그램에서 이러한 종속성을 검색해 보았지만 찾을 수 없습니다.

답변1

추가 데비안 패키지를 다운로드해야 하는 것 같지만 sources.list파일에 전체 온라인 데비안 패키지 저장소가 포함되어 있지 않습니다.

여러 사람들이 이 문제에 직면했습니다. [1] 이런 일이 발생하는 이유 중 하나는 데비안 설치 프로그램이 인터넷 연결을 볼 수 없기 때문입니다. 아니면 어느 시점에서 저장소를 삭제했을 수도 있습니다. :-).

/etc/apt/sources.list파일에 다음 줄이 포함되어 있는지 확인하세요 .

# Debian release 9.x
deb http://deb.debian.org/debian stretch main
deb-src http://deb.debian.org/debian stretch main

# Security updates
deb http://deb.debian.org/debian-security/ stretch/updates main
deb-src http://deb.debian.org/debian-security/ stretch/updates main

그런 다음 apt update. 그런 다음 명령을 사용하여 설치를 다시 시도하십시오. apt install google-chrome-stable

( apt이제 대화형 사용을 위해 권장되는 명령입니다. apt-get특히 친숙하지 않습니다.apt-get upgrade 매우 중요한 보안 업데이트를 설치하지 않음.)

온라인 데비안 저장소를 추가한 후에 무슨 일이 일어날지 모르겠습니다. 즉, USB(Debian DVD #1)에서 일부 패키지를 설치하려면 돌아가서 온라인 저장소를 삭제해야 합니까?


[1] 이 링크의 댓글을 참조하세요.게임, Office 등 없이 데비안을 설치하는 방법은 무엇입니까?

답변2

어떤 가이드를 따르고 있는지는 모르겠지만 여기로 이동하기만 하면 됩니다.
https://www.google.com/chrome/index.html

패키지를 다운로드하려면 "지금 다운로드"를 클릭하세요 google-chrome-stable_current_amd64.deb.

그런 다음 로컬로 다운로드한 위치에서 패키지를 설치합니다.

설치 프로그램은 다음 위치에서 소스를 설정합니다 /etc/apt/sources.list.d/google-chrome.list.

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

답변3

libappindicator1Debian과 Docker에 설치하는 데 도움이 된 것은 이 패키지를 수동으로 설치하는 것이었습니다. 또한, 다른 항목에 따라 다릅니다 libindicator7.

RUN curl -p --insecure "http://ftp.de.debian.org/debian/pool/main/liba/libappindicator/libappindicator1_0.4.92-7_amd64.deb" --output libappindicator1_0.4.92-8_amd64.deb \
    && curl -p --insecure "http://ftp.de.debian.org/debian/pool/main/libi/libindicator/libindicator7_0.5.0-4_amd64.deb" --output libindicator7_0.5.0-4_amd64.deb \
    && dpkg -i libindicator7_0.5.0-4_amd64.deb \
    && dpkg -i libappindicator1_0.4.92-8_amd64.deb \
    && rm libindicator7_0.5.0-4_amd64.deb \
    && rm libappindicator1_0.4.92-8_amd64.deb

관련 정보