gpt4 book ai didi

linux - Ubuntu 老升级 8.04 -> 12.04

转载 作者:太空宇宙 更新时间:2023-11-04 04:38:51 24 4
gpt4 key购买 nike

移至superuser.com

<小时/>

我有一台运行旧版 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.62.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

这是一个循环第 22 条军规。理想情况下,我应该能够安装这些损坏的依赖项的正确版本( libc6 等),但追踪如何针对不受支持的版本执行此操作一直难以捉摸。

有什么建议如何逃避/解决这个问题吗?

<小时/>

更新:

我已成功使用 make install 升级 Python根据说明found here但是,do-release-upgrade 上的 Python 错误是相同的。

最佳答案

讨厌破坏旧线程,但我在启动旧电脑并开始升级到 18.04 时遇到了这个问题...我在我的实例中通过将 update-manager 和 update-manager-core 包从 1:0.87.33 降级到 1:0.87.24 解决了这个问题(如果我没记错版本的话)。其他的都没有用。

关于linux - Ubuntu 老升级 8.04 -> 12.04,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34983638/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com