![Debian 9 では Google Chrome をインストールできません。](https://linux33.com/image/115714/Debian%209%20%E3%81%A7%E3%81%AF%20Google%20Chrome%20%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82.png)
起動可能なUSBフラッシュドライブからDebian 9をインストールしました。私はDebianのウェブサイトでそれが私に必要なすべてだと言ったのでDVDだけをコピーしました。私はパーティション全体にDebianをインストールしました(/homeや他のパーティションに分割しませんでした)。 GNOMEデスクトップをインストールしました。接続が悪いため、ネットワークインストールを使用していませんでした(.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
追加の Debian パッケージをダウンロードする必要があるようですが、sources.list
ファイルにオンライン Debian パッケージストア全体が含まれていません。
多くの人々がこの問題に直面しました。 [1] これが起こる理由の1つは、Debianインストーラがインターネット接続を見ることができないことです。あるいは、ある時点でリポジトリを削除した可能性があります。 :-).
/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
非常に重要なセキュリティ更新プログラムをインストールしない.)
オンラインDebianリポジトリを追加した後に何が起こるのかわかりません。つまり、USB(Debian DVD#1)から一部のパッケージをインストールするには、戻ってオンラインストレージを削除する必要がありますか?
[1]このリンクのコメントをご覧ください。ゲーム、OfficeなどなしでDebianをインストールする方法は?
答え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
libappindicator1
Debianと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