2017-06-02 745 views
0

您好總Docker noob在這裏,有沒有依賴我可以運行,所以這個錯誤消失?Docker構建:xz(stdin):文件格式不被識別

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 

回答

1

的問題是-O選項捲曲寫入到磁盤,而不是標準輸出。

試一下:curl -L https://...

+0

我現在收到一個不同的錯誤。 – seansinflipflops

+0

輸出是什麼? –

+0

'/ bin/sh:第0行:cd:ghc-7.10.3b:沒有這樣的文件或目錄' – seansinflipflops