【问题标题】:Python broken on upgrade from Ubuntu 12.04 to 14.04Python 在从 Ubuntu 12.04 升级到 14.04 时损坏
【发布时间】:2016-12-17 02:17:33
【问题描述】:

您好,我正在尝试通过“do-release-upgrade”将 Ubuntu 12.04 LTS 更新到 14.04 LTS,但仍然得到:

2016-08-18 18:40:08,938 INFO apt version: '0.8.16~exp12ubuntu10.27'
2016-08-18 18:40:08,938 INFO python version: '2.7.12 (default, Jul 18 2016, 14:59:49) 
[GCC 4.6.3]'
2016-08-18 18:40:08,939 INFO release-upgrader version '0.220.3' started
2016-08-18 18:40:08,940 INFO locale: 'en_US' 'UTF-8'
2016-08-18 18:40:08,999 DEBUG Using 'DistUpgradeViewText' view
2016-08-18 18:40:09,025 DEBUG aufsOptionsAndEnvironmentSetup()
2016-08-18 18:40:09,027 DEBUG using '/tmp/upgrade-rw-xlP_6c' as aufs_rw_dir
2016-08-18 18:40:09,027 DEBUG using '/tmp/upgrade-chroot-RJMewm' as aufs chroot dir
2016-08-18 18:40:09,027 DEBUG enable dpkg --force-overwrite
2016-08-18 18:40:09,072 DEBUG creating statefile: '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'
2016-08-18 18:40:10,482 DEBUG lsb-release: 'precise'
2016-08-18 18:40:11,766 ERROR not handled exception:
Traceback (most recent call last):

  File "/tmp/update-manager-W9tKZ8/trusty", line 10, in <module>
    sys.exit(main())

  File "/tmp/update-manager-W9tKZ8/DistUpgrade/DistUpgradeMain.py", line 244, in main
    if app.run():

  File "/tmp/update-manager-W9tKZ8/DistUpgrade/DistUpgradeController.py", line 1827, in run
    return self.fullUpgrade()

  File "/tmp/update-manager-W9tKZ8/DistUpgrade/DistUpgradeController.py", line 1649, in fullUpgrade
    if not self.prepare():

  File "/tmp/update-manager-W9tKZ8/DistUpgrade/DistUpgradeController.py", line 441, in prepare
    self._sshMagic()

  File "/tmp/update-manager-W9tKZ8/DistUpgrade/DistUpgradeController.py", line 317, in _sshMagic
    "-p",str(port)])

  File "/usr/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()

  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)

  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception

OSError: [Errno 2] No such file or directory

2016-08-18 18:40:11,767 DEBUG enabling apt cron job

无法在网络上获取任何信息来解决此问题。我已经将 python 2.7.3 更新为 python 2.7.11,尝试链接到 python3。还是一样的问题...

有什么想法吗?

【问题讨论】:

  • 这将更适合询问 Ubuntu 堆栈交换。您是否正在通过 ssh 进行更新?它正在尝试启动第二个 sshd,但失败了。
  • 通过 ssh 和直接 shell 都试过了。每次都是同样的问题。还清理了 /tmp/up*

标签: python ubuntu


【解决方案1】:

我已经通过直接杀死 sshd “修复”了这个问题,几乎没有通过从源代码编译重新安装 python2.7.12。

升级结束时出现一些 python 错误...升级后一切似乎都很好。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-08-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-11
    • 1970-01-01
    • 1970-01-01
    • 2016-06-26
    相关资源
    最近更新 更多