web-dev-qa-db-ja.com

パッケージ 'chromium-browser'にはインストール候補がありません

chromeブラウザにdockerイメージをインストールしようとしています

RUN apt-get install chromium-browser

しかし、私はエラーが出ます:

Package chromium-browser is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'chromium-browser' has no installation candidate

chromiumイメージにdockerを正しくインストールするにはどうすればよいですか?

13
Alex

私はそれを次のように解決しました:

# install manually all the missing libraries
RUN apt-get install -y gconf-service libasound2 libatk1.0-0 libcairo2 libcups2 libfontconfig1 libgdk-pixbuf2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libxss1 fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils

# install chrome
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_AMD64.deb
RUN dpkg -i google-chrome-stable_current_AMD64.deb; apt-get -fy install
7
Alex

次を使用して、chromeをdockerコンテナにインストールします。

RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_AMD64.deb
RUN dpkg -i google-chrome-stable_current_AMD64.deb --fix-missing; apt-get -fy install`
1
Amine Belkhiria