2016-01-25 31 views
-1

移到superuser.com老的Ubuntu 8.04升級 - > 12.04


我有運行老Ubuntu 8.04 LTS計算機。

以及8.04,下一個LTS版本10.04也不再受支持。

沒有公佈從8.04 -> 12.04直接升級的路徑。

有被出版path from 8.04 -> 10.04並從那裏一個path from 10.04 -> 12.04

如果我嘗試標準正常升級指令,我得到與Python的錯誤。 Ubuntu 8.04附帶Python 2.5。在此錯誤消息中,「Precise」是Ubuntu 12.04的暱稱。

[email protected]:~$ sudo do-release-upgrade 
Checking for a new ubuntu release 
Done Upgrade tool signature 
Done Upgrade tool 
Done downloading 
authenticate 'precise.tar.gz' against 'precise.tar.gz.gpg' 
extracting 'precise.tar.gz' 
/tmp/tmpwfCGnZ/DistUpgradeMain.py:102: Warning: 'with' will become a reserved keyword in Python 2.6 
Traceback (most recent call last): 
    File "/tmp/tmpwfCGnZ/precise", line 3, in <module> 
    from DistUpgradeMain import main 
    File "/tmp/tmpwfCGnZ/DistUpgradeMain.py", line 102 
    with open(fname, "a"): 
      ^
SyntaxError: invalid syntax 

如果我嘗試的Python升級到2.62.7,支持升級的運行,我覺得依賴性問題,因爲我還只在8.04

[email protected]:~$ sudo apt-get install python2.6 
Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
Some packages could not be installed. This may mean that you have 
requested an impossible situation or if you are using the unstable 
distribution that some required packages have not yet been created 
or been moved out of Incoming. 

Since you only requested a single operation it is extremely likely that 
the package is simply not installable and a bug report against 
that package should be filed. 
The following information may help to resolve the situation: 

The following packages have unmet dependencies. 
    python2.6: Depends: python2.6-minimal (= 2.6.5-1ubuntu7~lts1) but it is not going to be installed 
      Depends: libc6 (>= 2.11) but 2.7-10ubuntu8.3 is to be installed 
      Depends: libdb4.8 but it is not installable 
      Depends: libreadline6 (>= 6.0) but it is not installable 
      Depends: libsqlite3-0 (>= 3.6.22) but 3.4.2-2 is to be installed 
E: Broken packages 

這是一個圓形的捕獲-22。理想情況下,我應該能夠安裝這些中斷依賴關係的正確版本(libc6等),但是如何爲不支持的版本執行此操作一直難以實現。

任何建議如何逃避/解決這個問題?


更新:

我已經成功使用make install從指令found here升級Python的,但是,在do-release-upgrade Python的錯誤是相同的。

+0

在兩個步驟中,8.04 - > 10.04,然後10.04 - > 12.04。 –

+0

這是我的問題。當我執行升級命令時,它試圖做一次跳轉。如何強制它只做「8.04 - > 10.04」? – Stewart

+1

我認爲這是題外話,所以我沒有給出答案。我可以在http://superuser.com/或http://askubuntu.com/上提供一個。 –

回答

2

Official upgrade notes manual對於上述版本規定:

爲避免損壞正在運行的系統,升級只應 從一個版本到下一個版本(如Ubuntu的12.04 Ubuntu的 12.10),或從一個LTS發佈到下一個版本(例如,Ubuntu 10.04 LTS到Ubuntu 12.04 LTS)如果您希望「跳過」某個版本,則可以備份數據並重新安裝,或逐步升級到每個版本的 。

1

我的建議是,下載Ubuntu 12.04/14.04,取回當前系統並清理乾淨,加載新的。如果按照這種方式進行操作,則不會有任何依賴關係和其他問題出現問題。

但是如果你仍然想堅持這條路線,你需要升級很多東西,從libc,gtk,xorg,xserver,python,gcc,g ++等等開始。這需要花費時間,而且要做得更困難。