安装 opensubmit ubuntu 14.04 LTS 时出错

安装 opensubmit ubuntu 14.04 LTS 时出错

我在安装 opensubmit 时遇到错误

https://github.com/troeger/opensubmit/wiki/Installation-Instructions

使用命令opensubmit-web configure

Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1432, in install
    requirement.uninstall(auto_confirm=True)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 599, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1845, in remove
    renames(path, new_path)
  File "/usr/lib/python2.7/dist-packages/pip/util.py", line 296, in renames
    shutil.move(old, new)
  File "/usr/lib/python2.7/shutil.py", line 303, in move
    os.unlink(src)
OSError: [Errno 13] Permission denied: '/usr/local/bin/opensubmit-web'

答案1

在此过程中,似乎/usr/local/bin/opensubmit-web应该删除该文件(os.unlink(src)),但由于缺少权限而失败。

尝试使用 root 权限重新运行命令:

sudo opensubmit-web configure

或者你需要成为该文件的所有者:

sudo chown $(whoami) /usr/local/bin/opensubmit-web

然后只需像以前一样执行命令即可opensubmit-web configure

相关内容