我正在尝试在 Windows XP Professional SP3 32 位系统中使用 Wubi 安装 Ubuntu。运行 wubi 后,我收到安装错误。
"Windows backend" object has no attribute 'iso_path' ....For more information, please see the log file:C:\documents and settings\rickh\locals settings\temp\wubi-11.10-rev241.log.
日志:
02-22 10:44 DEBUG TaskList: ## Finished create_uninstaller
02-22 10:44 DEBUG TaskList: ## Running copy_installation_files...
02-22 10:44 DEBUG WindowsBackend: Copying C:\DOCUME~1\RickH\LOCALS~1\Temp\pyl70.tmp\data\custom-installation -> C:\ubuntu\install\custom-installation
02-22 10:44 DEBUG WindowsBackend: Copying C:\DOCUME~1\RickH\LOCALS~1\Temp\pyl70.tmp\winboot -> C:\ubuntu\winboot
02-22 10:44 DEBUG WindowsBackend: Copying C:\DOCUME~1\RickH\LOCALS~1\Temp\pyl70.tmp\data\images\Ubuntu.ico -> C:\ubuntu\Ubuntu.ico
02-22 10:44 DEBUG TaskList: ## Finished copy_installation_files
02-22 10:44 DEBUG TaskList: ## Running get_iso...
02-22 10:44 DEBUG TaskList: New task copy_file
02-22 10:44 DEBUG TaskList: ### Running copy_file...
02-22 10:46 DEBUG TaskList: ### Finished copy_file
02-22 10:46 DEBUG TaskList: New task check_iso
02-22 10:46 DEBUG TaskList: ### Running check_iso...
02-22 10:46 DEBUG CommonBackend: Checking C:\ubuntu\install\installation.iso
02-22 10:46 DEBUG Distro: checking Ubuntu ISO C:\ubuntu\install\installation.iso
02-22 10:46 DEBUG Distro: wrong size: 2119696384 > 900000000
02-22 10:46 DEBUG TaskList: ### Finished check_iso
02-22 10:46 ERROR TaskList: 'WindowsBackend' object has no attribute 'iso_path'
Traceback (most recent call last):
File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__
File "\lib\wubi\backends\common\backend.py", line 579, in get_iso
File "\lib\wubi\backends\common\backend.py", line 565, in use_iso
AttributeError: 'WindowsBackend' object has no attribute 'iso_path'
02-22 10:46 DEBUG TaskList: # Cancelling tasklist
02-22 10:46 ERROR root: 'WindowsBackend' object has no attribute 'iso_path'
Traceback (most recent call last):
File "\lib\wubi\application.py", line 58, in run
File "\lib\wubi\application.py", line 130, in select_task
File "\lib\wubi\application.py", line 205, in run_cd_menu
File "\lib\wubi\application.py", line 120, in select_task
File "\lib\wubi\application.py", line 158, in run_installer
File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__
File "\lib\wubi\backends\common\backend.py", line 579, in get_iso
File "\lib\wubi\backends\common\backend.py", line 565, in use_iso
AttributeError: 'WindowsBackend' object has no attribute 'iso_path'
02-22 10:46 DEBUG TaskList: # Finished tasklist
答案1
Wubi 不喜欢 ISO 大小:
02-22 10:46 DEBUG Distro: wrong size: 2119696384 > 900000000
Wubi 的设计仅使用桌面 CD ISO(而不是 DVD ISO)进行安装,并且会简单检查大小以确保它是 CD。它必须在 550MB 到 850MB 之间(多或少)。您可以将 CD ISO 刻录到 DVD 上,因为 ISO 的大小不会增加,所以它可以正常工作,但是如果您使用 CD ISO 创建 Ubuntu USB,Wubi 会在检查大小之前复制整个 USB 分区。因此,如果您从分区大于 ~850MB 的 USB 安装,则它将无法正常工作。由于您没有包含更多日志,因此很难确切知道。
总之:您得到的内容无法被识别为 Ubuntu 桌面 CD ISO(即使它是有效的)。
解决方案:将 wubi.exe 和桌面 CD ISO(均来自同一版本)放在同一目录中,然后从那里运行 wubi。请确保先移除任何其他媒体(CD、USB)。或者单独运行 wubi.exe,它将下载映像本身。