Docker Build:XZ(STDIN):未识别的文件格式



hi总计Docker noob,这里有依赖关系我可以运行,以使此错误消失了吗?

    Step 19/40 : RUN curl -OL https://www.haskell.org/ghc/dist/${ghc%[a-z]}/ghc-${ghc}-x86_64-deb7-linux.tar.xz | tar -xJf- &&   cd ghc-${ghc} &&   ./configure && make install
     ---> Running in 0141996d759f
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   161  100   161    0     0    335      0 --:--:-- --:--:-- --:--:--   336
    100 85.5M  100 85.5M    0     0   308k      0  0:04:44  0:04:44 --:--:--  358k
    xz: (stdin): File format not recognized
    tar: Child returned status 1
    tar: Error is not recoverable: exiting now
    The command '/bin/sh -c curl -OL https://www.haskell.org/ghc/dist/${ghc%[a-z]}/ghc-${ghc}-x86_64-deb7-linux.tar.xz | tar -xJf- &&   cd ghc-${ghc} &&   ./configure && make install' returned a non-zero code: 2

问题是 curl -O选项,将其写入磁盘而不是STDOUT。

尝试:curl -L https://...

最新更新