centos6升级到7出现报错怎么解决?

clipboard.png
命令是

 centos-upgrade-tool-cli --network 7 --instrepo=http://vault.centos.org/centos/7.2.1511/os/x86_64/

报错是:

File "/usr/bin/centos-upgrade-tool-cli", line 45
    print m
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(int m)?

上面的问题解决了,现在卡在了这里:

Downloading failed: failure: repodata/f35d0029ad59e9fca0823be708150f5ee28ee1707cdc9bdaf420da676daafe28-filelists.sqlite.bz2 from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
阅读 2.9k
1 个回答

打开这个文件,第一行的python改成python2.6。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题