【发布时间】:2016-01-25 01:04:35
【问题描述】:
我有一台运行旧的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 的昵称。
stewart@old-ubuntu-box:~$ 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.6 或 2.7,以支持升级的运行,我会发现依赖问题,因为我仍然只在 8.04 上。
stewart@old-ubuntu-box:~$ 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
这是一个循环的 catch-22。理想情况下,我应该能够安装这些损坏的依赖项的正确版本(libc6 等),但追查如何为不受支持的版本执行此操作一直难以捉摸。
任何建议如何逃避/解决这个问题?
更新:
我已经成功地使用指令 found here 中的 make install 升级了 Python,但是,do-release-upgrade 上的 Python 错误是相同的。
【问题讨论】:
-
分两步,8.04 -> 10.04,然后是 10.04 -> 12.04。
-
这是我的问题。当我执行升级命令时,它会尝试进行单次跳转。如何强制它只做“8.04 -> 10.04”?
-
我认为这是题外话,所以我没有给出答案。我可以在superuser.com 或askubuntu.com 上给一个
标签: linux ubuntu installation upgrade debian-based