安装特定版本的google-chrome-unstable

时间:2018-03-02 13:35:15

标签: google-chrome

我使用以下内容作为Dockerfile的一部分来安装google-chrome(基于this):

Category    Count
1, 2, 3      3
2, 4, 6      1
1, 5, 10     2

但是,我不想安装最新版本,而是安装特定版本。这可能吗?我尝试了以下方法:

RUN apt-get update && apt-get install -y wget --no-install-recommends \
    && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
    && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
    && apt-get update \
    && apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst ttf-freefont \
      --no-install-recommends \
    && rm -rf /var/lib/apt/lists/* \
    && apt-get purge --auto-remove -y curl \
    && rm -rf /src/*.deb

唯一的区别是添加了明确的版本号RUN apt-get update && apt-get install -y wget --no-install-recommends \ && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ && apt-get update \ && apt-get install -y google-chrome-unstable=66.0.3346.8-1 fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst ttf-freefont \ --no-install-recommends \ && rm -rf /var/lib/apt/lists/* \ && apt-get purge --auto-remove -y curl \ && rm -rf /src/*.deb

但我明白了:

=66.0.3346.8-1

使用与最新版本相对应的显式版本号,我怀疑旧版本无法通过此源提供吗?

1 个答案:

答案 0 :(得分:0)

apt-get update
apt-get install wget
wget http://dl.google.com/linux/deb/pool/main/g/google-chrome-unstable/google-chrome-unstable_73.0.3679.0-1_amd64.deb
apt-get install -f ./google-chrome-unstable_73.0.3679.0-1_amd64.deb

您可以在此处找到版本号 https://www.ubuntuupdates.org/package/google_chrome/stable/main/base/google-chrome-unstable