Chromeブラウザがインストールされていません

Chromeブラウザがインストールされていません

Chromiumブラウザをインストールするには、次のように入力しました。

sudo apt install chromium-browser

ところで、いくつかのエラーが発生しました。次のことは次のとおりです。

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:
 chromium-browser : Depends: libnss3 (>= 2:3.22) but 2:3.21-1ubuntu4 is to be installed
                    Depends: chromium-codecs-ffmpeg-extra (= 86.0.4240.75-0ubuntu0.16.04.1) but 76.0.3809.100-0ubuntu0.16.04.1 is to be installed or
                             chromium-codecs-ffmpeg (= 86.0.4240.75-0ubuntu0.16.04.1) but it is not going to be installed
                    Recommends: chromium-browser-l10n but it is not going to be installed
 google-chrome-stable:amd64 : Depends: libasound2:amd64 (>= 1.0.16)
                              Depends: libatk-bridge2.0-0:amd64 (>= 2.5.3) but it is not going to be installed
                              Depends: libatk1.0-0:amd64 (>= 2.2.0) but it is not going to be installed
                              Depends: libatspi2.0-0:amd64 (>= 2.9.90) but it is not going to be installed
                              Depends: libcairo2:amd64 (>= 1.6.0) but it is not going to be installed
                              Depends: libcups2:amd64 (>= 1.4.0) but it is not going to be installed
                              Depends: libdrm2:amd64 (>= 2.4.38) but it is not going to be installed
                              Depends: libexpat1:amd64 (>= 2.0.1) but it is not going to be installed
                              Depends: libgbm1:amd64 (>= 8.1~0) but it is not going to be installed
                              Depends: libgdk-pixbuf2.0-0:amd64 (>= 2.22.0) but it is not going to be installed
                              Depends: libgtk-3-0:amd64 (>= 3.9.10) but it is not going to be installed
                              Depends: libnspr4:amd64 (>= 2:4.9-2~) but it is not going to be installed
                              Depends: libnss3:amd64 (>= 2:3.22) but it is not going to be installed
                              Depends: libpango-1.0-0:amd64 (>= 1.14.0) but it is not going to be installed
                              Depends: libpangocairo-1.0-0:amd64 (>= 1.14.0) but it is not going to be installed
                              Depends: libx11-6:amd64 (>= 2:1.4.99.1) but it is not going to be installed
                              Depends: libx11-xcb1:amd64 but it is not going to be installed
                              Depends: libxcb-dri3-0:amd64 but it is not going to be installed
                              Depends: libxcb1:amd64 (>= 1.9.2) but it is not going to be installed
                              Depends: libxcomposite1:amd64 (>= 1:0.3-1) but it is not going to be installed
                              Depends: libxdamage1:amd64 (>= 1:1.1) but it is not going to be installed
                              Depends: libxext6:amd64 but it is not going to be installed
                              Depends: libxfixes3:amd64 but it is not going to be installed
                              Depends: libxrandr2:amd64 but it is not going to be installed
                              Recommends: libu2f-udev:amd64 but it is not installable
                              Recommends: libvulkan1:amd64 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

助けてください。

ベストアンサー1

これはChromiumに対する特定の答えではなく、この種の質問に対する一般的な答えです。

この問題は、ソースコードまたはパッケージがaptと混在し始めたときに発生します。インストールしようとしているとしましょう。chromium-browser。 Ubuntubionicファミリーのリリース86.0.4240.75-0ubuntu0.18.04.1

をインストールしようとすると、chromium-browser次の行が表示されます。

Depends: 
  chromium-codecs-ffmpeg-extra (= 86.0.4240.75-0ubuntu0.16.04.1) 
                              but 76.0.3809.100-0ubuntu0.16.04.1 is to be installed
or
  chromium-codecs-ffmpeg (= 86.0.4240.75-0ubuntu0.16.04.1) 
                              but it is not going to be installed

ビンゴ!

/etc/apt/sources.listこれは、あなたのソースに/etc/apt/sources.list.d/*さまざまなバージョンのクロムを提供するソースが含まれていることを意味します。

見るとき公式Ubuntuストア次のバージョンが見つかりました。

  • バイオニック: 86.0.4240.75-0ubuntu0.16.04.1
  • xenial-update:86.0.4240.75-0ubuntu0.16.04.1
  • シェニア:49.0.2623.108-0ubuntu1.1233

あなたのバージョンはxenialとxenial-updatesの間なので、非公式リポジトリでパッケージを見つけたようです。これは、PPAまたは他のディストリビューションソースを追加して発生した問題かもしれません。

何が起こったのかについての私の推測は次のとおりです。

  1. 公式のUbuntuアーカイブのすべての最新パッケージを含む更新されたaptリリースファイルがありますが、その中には維持されず、公式アーカイブと同期されていないPPAもあります。
  2. を使用すると、apt install chromium-browser基本aptバージョンはファミリーにありますbionic
  3. Aptはパッケージのインストールを試みますchromium-codecs-ffmpeg-extra or chromium-codecs-ffmpeg。発見された最も高い優先順位ヒットは、維持されていないPPAから来ます。通常、見つかった最も高いバージョンが選択されますが、この場合はこのPPAが優先されます。これは固定によるものでも、xenialこのPPAのソースを選択してコンピュータxenialよりも優先順位が高い場合もあります。bionic
  4. 優先順位のソースでこのバージョンが見つかると、aptこのバージョンでは依存関係の要件を満たすことができないため失敗します。

バラよりFrankenDebianを作成しないでください互換性のないソースを追加するのが悪い考えである理由

解決策はおよびを/etc/apt/sources.listきれいにすることです/etc/apt/sources.list.d/*

  1. を使用している場合は、bionic他のバージョンに関連するすべての行を削除します(bionic-securityおよび除くbionic-updates)。
  2. PPAを使用している場合は、PPAに実際に必要なものがあることを確認してください。それ以外の場合は、PPAを削除してください。 PPAに最新バージョンのソフトウェアがある場合:キラキラシンドロームに苦しむな。 PPAは信頼できるソースではなく、すべてのコンテンツを含めることができます。また、いつでもメンテナンスができなくなる場合があります。公式版から最新版を入手してください。

おすすめ記事