GoogleのDebian8ドッカーイメージにLaTeXをインストールします。

GoogleのDebian8ドッカーイメージにLaTeXをインストールします。

LaTeXをインストールする方法を学びたい(具体的にはこのtexliveパッケージ)をGoogleのDebian8 Dockerイメージにリンクしますgcr.io/google-appengine/debian8。リンクを提供したいのですが、DockerやGitHubでは見つかりません。実は私が使っているのはこの写真間接的に派生します。

イメージにインストールしようとするとエラーが発生します。

> apt-get install texlive
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package texlive

適切なソース(そしておそらくキー)を適切なソースに追加する必要があるようですが、正確に何を見つけるのかわかりません。私は次のようなDockerコマンドを使うことになると思います(おそらくもっと簡単です)。

RUN \
  apt-get -q update && apt-get install --no-install-recommends -y -q curl git ca-certificates apt-transport-https openssh-client && \
  curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
  curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list && \
  curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_unstable.list > /etc/apt/sources.list.d/dart_unstable.list && \
  apt-get update && \
  apt-get install dart=$DART_VERSION-1 && \
rm -rf /var/lib/apt/lists/*

誰でもここで正しい方向を教えてもらえますか?パッケージを表示するには、/etc/apt/sources何を追加する必要があるかをどのように決定しますか?texlive

ベストアンサー1

一例ドッカー**macos 10.14**では、bashを使用して画像を起動できます。

MacBook-Pro:~ em$ docker run -it gcr.io/google-appengine/debian8 /bin/bash

あなたはインストールしようとしていますキャラクターライブ放送

root@6b616ce25c70:/# apt-get install -d  texlive
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package texlive

Googleから提供された画像がストリッピングされ、一時ファイルが大量に削除されました。

だから走らなければなりません。適切なアップデートを入手

root@6b616ce25c70:/# apt-get update
Ign http://httpredir.debian.org jessie InRelease
Get:1 http://httpredir.debian.org jessie-updates InRelease [145 kB]
Get:2 http://security.debian.org jessie/updates InRelease [44.9 kB]
Get:3 http://httpredir.debian.org jessie Release.gpg [2420 B]
Get:4 http://httpredir.debian.org jessie Release [148 kB]
Get:5 http://httpredir.debian.org jessie-updates/main amd64 Packages [23.0 kB]
Get:6 http://security.debian.org jessie/updates/main amd64 Packages [818 kB]
Get:7 http://httpredir.debian.org jessie/main amd64 Packages [9098 kB]
Fetched 10.3 MB in 9s (1132 kB/s)
Reading package lists... Done

これで実行できます apt-get インストール texlive

root@6b616ce25c70:/# apt-get install -d  texlive
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  cpp cpp-4.9 dbus file fontconfig fontconfig-config 
  .../...
Suggested packages:
  cpp-doc gcc-4.9-locales dbus-x11 ghostscript-x apache2 
  ../..  
Recommended packages:
  libarchive-tar-perl wish
The following NEW packages will be installed:
  cpp cpp-4.9 dbus file fontconfig 
  ../..  
The following packages will be upgraded:
  gcc-4.9-base libgcc1 libstdc++6
3 upgraded, 253 newly installed, 0 to remove and 11 not upgraded.
Need to get 441 MB of archives.
After this operation, 897 MB of additional disk space will be used.
Do you want to continue? [Y/n]

おすすめ記事