尝试使用 wubi 安装时出现权限被拒绝错误

尝试使用 wubi 安装时出现权限被拒绝错误

当我尝试使用 wubi 安装程序在 Windows 7 上安装 Ubuntu 11.04 时遇到问题。它下载映像一段时间,最后出现错误,提示

权限被拒绝:有关更多详细信息,请参阅日志文件

在日志中它看起来像 DownloadError: Problem connecting to tracker - urlopen error (10060, '操作超时')

但是我的网络很好,我检查过了。

尝试使用 wubi 几次,但问题依然存在。

日志内容:

10-08 16:56 DEBUG  TaskList: ### Finished get_metalink
10-08 16:56 DEBUG  TaskList: New task download
10-08 16:56 DEBUG  TaskList: ### Running download...
10-08 16:56 DEBUG  btdownloader: downloading http://releases.ubuntu.com/11.04/ubuntu-11.04-desktop-amd64.iso.torrent > C:\ubuntu\install\ubuntu-11.04-desktop-amd64.iso
10-08 18:02 ERROR  TaskList: Traceback (most recent call last):
  File "\lib\bittorrent\RawServer.py", line 229, in listen_forever
  File "\lib\wubi\backends\common\btdownloader.py", line 70, in error_callback
DownloadError: Traceback (most recent call last):
  File "\lib\bittorrent\RawServer.py", line 221, in listen_forever
  File "\lib\bittorrent\Rerequester.py", line 96, in fail
  File "\lib\wubi\backends\common\btdownloader.py", line 70, in error_callback
DownloadError: Problem connecting to tracker - urlopen error (10060, 'Operation timed out')

Traceback (most recent call last):
  File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__
  File "\lib\wubi\backends\common\btdownloader.py", line 79, in download
  File "\lib\bittorrent\download.py", line 303, in download
  File "\lib\bittorrent\RawServer.py", line 256, in listen_forever
  File "\lib\wubi\backends\common\btdownloader.py", line 70, in error_callback
DownloadError: Traceback (most recent call last):
  File "\lib\bittorrent\RawServer.py", line 229, in listen_forever
  File "\lib\wubi\backends\common\btdownloader.py", line 70, in error_callback
DownloadError: Traceback (most recent call last):
  File "\lib\bittorrent\RawServer.py", line 221, in listen_forever
  File "\lib\bittorrent\Rerequester.py", line 96, in fail
  File "\lib\wubi\backends\common\btdownloader.py", line 70, in error_callback
DownloadError: Problem connecting to tracker - urlopen error (10060, 'Operation timed out')


10-08 18:02 ERROR  TaskList: Non fatal error Traceback (most recent call last):
  File "\lib\bittorrent\RawServer.py", line 229, in listen_forever
  File "\lib\wubi\backends\common\btdownloader.py", line 70, in error_callback
DownloadError: Traceback (most recent call last):
  File "\lib\bittorrent\RawServer.py", line 221, in listen_forever
  File "\lib\bittorrent\Rerequester.py", line 96, in fail
  File "\lib\wubi\backends\common\btdownloader.py", line 70, in error_callback
DownloadError: Problem connecting to tracker - urlopen error (10060, 'Operation timed out')

 in task download
10-08 18:02 DEBUG  TaskList: ### Finished download
10-08 18:02 ERROR  TaskList: [Errno 13] Permission denied: u'C:\\ubuntu\\install\\ubuntu-11.04-desktop-amd64.iso'
Traceback (most recent call last):
  File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__
  File "\lib\wubi\backends\common\backend.py", line 492, in get_iso
  File "\lib\wubi\backends\common\backend.py", line 347, in download_iso
OSError: [Errno 13] Permission denied: u'C:\\ubuntu\\install\\ubuntu-11.04-desktop-amd64.iso'
10-08 18:02 DEBUG  TaskList: # Cancelling tasklist
10-08 18:02 DEBUG  TaskList: # Finished tasklist
10-08 18:02 ERROR  root: [Errno 13] Permission denied: u'C:\\ubuntu\\install\\ubuntu-11.04-desktop-amd64.iso'
Traceback (most recent call last):
  File "\lib\wubi\application.py", line 57, in run
  File "\lib\wubi\application.py", line 131, in select_task
  File "\lib\wubi\application.py", line 157, in run_installer
  File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__
  File "\lib\wubi\backends\common\backend.py", line 492, in get_iso
  File "\lib\wubi\backends\common\backend.py", line 347, in download_iso
OSError: [Errno 13] Permission denied: u'C:\\ubuntu\\install\\ubuntu-11.04-desktop-amd64.iso'

答案1

Wubi 正在尝试使用 bittorrent 客户端下载桌面 CD ISO 以进行安装。它要求 pyrun.exe(Wubi 使用的 python 运行时)获得 Windows 防火墙的访问权限。如果您授予 pyrun.exe 防火墙访问权限(会弹出询问权限的窗口),则您可能会被上游防火墙阻止,例如,某些学院/大学会阻止 bittorrents。

如果是这种情况,你应该自己从http://www.ubuntu.com/download/ubuntu/download并在运行之前将其保存在与 wubi.exe 相同的目录中(Wubi 会找到它并使用它)。

答案2

对我来说,通过下载图像并将其放在 wubi.exe 所在的同一文件夹中,它就起作用了。执行此操作之前不要忘记禁用网络。它运行顺畅。

答案3

我不知道哪一个会起作用,让我们尝试几种解决方案:

1. run wubi.exe with right click [rus as administrator]
2. Try to install ubuntu on another drive [if run as admin does not work][expect C]
3. If you will get any disk error during wubi installation then just click continue several times. Surprisingly it works.

答案4

旧版 Wubi 有 bug,但我从 ubuntuforums.org 上的论坛帖子中找到了解决方案。我找不到相同的帖子,但我有修补文件的链接。这些文件可以正常工作。我尝试了此链接中的 wubi,成功了。

感谢 hakuna_matata

https://www.dropbox.com/sh/6uqomp8l1frcd1y/AAAhSCimTaYE-94egbmc1X_na?dl=0

相关内容