简体   繁体   English

从Ubuntu 12.04升级到14.04时Python中断

[英]Python broken on upgrade from Ubuntu 12.04 to 14.04

Hi I am trying to update Ubuntu 12.04 LTS to 14.04 LTS via "do-release-upgrade" but still got: 嗨,我正在尝试通过“ 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

Cant get any information on web to fix this. 无法从网上获取任何信息来解决此问题。 I already updated python 2.7.3 to python 2.7.11, tried linking to python3. 我已经将python 2.7.3更新为python 2.7.11,尝试链接到python3。 Still the same issue... 还是一样的问题...

Any ideas? 有任何想法吗?

I already "fixed" this issue by killing sshd directly, hardly reinstalled python2.7.12 by compiling from source. 我已经通过直接杀死sshd来“修复”了这个问题,几乎没有通过源代码编译重新安装python2.7.12。

Got some python errors on end of upgrade... After upgrading everything seems to be fine. 升级结束时出现一些python错误...升级后,一切似乎都很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM