2015-06-22 64 views
3

當我嘗試更新的陰謀,我得到:陰謀更新:本地和遠程文件匹配

Downloading the latest package list from hackage.haskell.org 
Skipping download: Local and remote files match. 
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal 
update' to download it. 

我已經運行小集團的init

陰謀更新-V3登錄:

Downloading the latest package list from hackage.haskell.org 
Sending: 
GET /packages/archive/00-index.tar.gz HTTP/1.1 
Host: hackage.haskell.org 
User-Agent: cabal-install/1.20.0.3 (linux; x86_64) 
If-None-Match: "cb3a8478c33cbfb51929818cc8da736d" 

Creating new connection to hackage.haskell.org 
Received: 
HTTP/1.1 301 Moved Permanently 
Server: nginx/1.6.2 
Content-Type: text/plain; charset=UTF-8 
Location: /packages/index.tar.gz 
Transfer-Encoding: chunked 
Accept-Ranges: bytes 
Date: Mon, 22 Jun 2015 16:32:03 GMT 
Via: 1.1 varnish 
Age: 0 
Connection: keep-alive 
X-Served-By: cache-jfk1025-JFK 
X-Cache: MISS 
X-Cache-Hits: 0 
X-Timer: S1434990722.961771,VS0,VE54 
Content-Length: 0 

301 - redirect 
Redirecting to http://hackage.haskell.org/packages/index.tar.gz ... 
Sending: 
GET /packages/index.tar.gz HTTP/1.1 
Host: hackage.haskell.org 
User-Agent: cabal-install/1.20.0.3 (linux; x86_64) 
If-None-Match: "cb3a8478c33cbfb51929818cc8da736d" 

Recovering connection to hackage.haskell.org 
Received: 
HTTP/1.1 304 Not Modified 
Date: Mon, 22 Jun 2015 16:32:03 GMT 
Via: 1.1 varnish 
Cache-Control: public, no-transform, max-age=300 
ETag: "cb3a8478c33cbfb51929818cc8da736d" 
Age: 0 
Connection: keep-alive 
X-Served-By: cache-jfk1025-JFK 
X-Cache: HIT 
X-Cache-Hits: 1 
X-Timer: S1434990723.030149,VS0,VE145 

Skipping download: Local and remote files match. 
Reading available packages... 
Warning: The package list for 'hackage.haskell.org' does not exist. Run 
'cabal update' to download it. 

My Cabal版本是1.20.0.2

配置文件看起來像https://gist.github.com/anonymous/fda74fa01d3113e0aeab

堆棧溢出煩人否認我的修改,因爲是從日誌太多的代碼,所以我加入了一些垃圾在這裏使之通過...

+0

什麼是你使用的cabal版本?你可以做'cabal update -v3'並向我們顯示日誌嗎?你能告訴我們什麼在文件'〜/ .cabal/config'中嗎? – Sibi

+0

謝謝Sibi,我剛添加了細節。有趣的是,當我剛剛再次嘗試更新cabal時,首先出現了一個說明權限被拒絕的錯誤:'.cabal/packages/hackage.haskell.org/00-index.tar31207.tmp: permission denied'然後,我得到了同樣的錯誤 – rem

回答

4

也許你刪除.cabal/packages/hackage.haskell.org/00-index.tar,而不是.cabal/packages/hackage.haskell.org/00-index.tar.gz.etag。我可以通過這樣重現你所看到的行爲。

可能cabal應該更聰明地處理這種情況,但在任何情況下,我認爲刪除.cabal/packages/hackage.haskell.org/00-index.tar.gz.etag會讓你失去知覺。

+0

之前我試過刪除這兩個文件,但仍然得到權限被拒絕的錯誤,之後文件被重新創建 – rem

+0

那麼,你應該修復那個目錄的權限。 –