2011-03-18 144 views
3

當我牛逼安裝,我得到錯誤:如何安裝在Ubuntu 10.10哈德森

 
aptitude install hudson 
The following NEW packages will be installed: 
    hudson 
0 packages upgraded, 1 newly installed, 0 to remove and 279 not upgraded. 
Need to get 38.8MB of archives. After unpacking 39.7GB will be used. 
WARNING: untrusted versions of the following packages will be installed! 

Untrusted packages could compromise your system's security. 
You should only proceed with the installation if you are certain that 
this is what you want to do. 

    hudson 

Do you want to ignore this warning and proceed anyway? 
To continue, enter "Yes"; to abort, enter "No": Yes 
Get:1 http://hudson-ci.org/debian/ binary/ hudson 1.397 [38.8MB] 
Fetched 1B in 0s (2B/s)   
E: Failed to fetch http://hudson-ci.org/debian/binary/hudson_1.397_all.deb: Size mismatch 


+0

的0.397版本是真的跳過是一樣的如1.398。當它不一致時,您必須在正確的時間點擊回購。 – 2011-03-22 23:24:39

+0

它仍然試圖達到1.397,我似乎無法得到任何與全新安裝的Ubuntu的工作建議。繼續說抱怨尺寸不匹配後無法取得一些檔案。有沒有一種方法來指定版本? – 2011-03-23 02:59:12

回答

2
apt-get clean 

apt-get update 

apt-get install hudson 

這應該工作。

1

這個問題可能是最貼到serverfault.com;但無論如何;它看起來是你使用的鏡像被破壞,你很可能會下載一個錯誤頁面(這是失敗的原因)。嘗試對您的存儲庫進行更新以獲取最新的鏡像信息。

apt-get update 
0

我已經得到了同樣的問題...

Need to get 38.8MB of archives. After this operation, 39.7GB of additional disk space will be used. WARNING: The following packages cannot be authenticated!

hudson Install these packages without verification [y/N]? y

Get:1 http://hudson-ci.org/debian/ binary/ hudson 1.397 [38.8MB] Fetched 38.8MB in 59s (655kB/s)

Failed to fetch http://hudson-ci.org/debian/binary/hudson_1.397_all.deb Size mismatch E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

我已經做了

apt-get的清潔

apt-get的更新

的apt-get安裝哈德森

作爲根。

仍然不明白尺寸不匹配是什麼 - 我看不到任何下載的錯誤。

我和原始海報的主要區別是我am下載38.8MB,但它仍然報錯的大小。

+0

這隻發生在我的兩臺機器上...仍然不知道它爲什麼要加載1.397而不是1.398 – 2011-03-23 11:54:36