无法卸载或重新安装 Ubuntu 桌面

无法卸载或重新安装 Ubuntu 桌面

uninstall-wubi选项不起作用。

当我尝试重新安装它时,他们显示一个错误并告诉我检查“wubi 12.04 rev266”日志

一切顺利,直到底部显示以下内容:

There is another file or directory with this name.
Please remove it before continuing.
Traceback (most recent call last):
  File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__
  File "\lib\wubi\backends\win32\backend.py", line 81, in select_target_dir
Exception: Cannot install into C:\ubuntu.
There is another file or directory with this name.
Please remove it before continuing.
05-25 15:20 DEBUG  TaskList: # Cancelling tasklist
05-25 15:20 DEBUG  TaskList: # Finished tasklist
05-25 15:20 ERROR  root: Cannot install into C:\ubuntu.
There is another file or directory with this name.
Please remove it before continuing.
Traceback (most recent call last):
  File "\lib\wubi\application.py", line 58, in run
  File "\lib\wubi\application.py", line 132, 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\win32\backend.py", line 81, in select_target_dir
Exception: Cannot install into C:\ubuntu.
There is another file or directory with this name.
Please remove it before continuing.

我该怎么办?我尝试了卸载 wubi 选项,但它只显示“使用推荐设置重新安装,但没有任何效果”

好的,我尝试将其安装到另一个硬盘中,得到了以下信息:

Traceback (most recent call last):
  File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__
  File "\lib\wubi\backends\win32\backend.py", line 117, in create_uninstaller
  File "\lib\wubi\backends\win32\registry.py", line 45, in set_value
WindowsError: [Errno 5] Access is denied
05-26 16:12 DEBUG  TaskList: # Cancelling tasklist
05-26 16:12 DEBUG  TaskList: # Finished tasklist
05-26 16:12 ERROR  root: [Errno 5] Access is denied
Traceback (most recent call last):
  File "\lib\wubi\application.py", line 58, in run
  File "\lib\wubi\application.py", line 132, 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\win32\backend.py", line 117, in create_uninstaller
  File "\lib\wubi\backends\win32\registry.py", line 45, in set_value
WindowsError: [Errno 5] Access is denied

答案1

重命名或删除C:\ubuntu目录并再次运行wubi.exe

正如日志中所说:

异常:无法安装到 C:\ubuntu。有另一个同名的文件或目录。请先将其删除,然后再继续。

答案2

在 Windows 中打开“添加/删除程序”,将会安装 wubi 程序,请将其卸载并重试。

一切顺利 。

答案3

卸载 wubi 必须从 Windows 而不是 Ubuntu 运行。(这将从您的系统中完全删除 Ubuntu)。重新安装 Ubuntu 桌面:= 必须在 Ubuntu 系统中完成。

相关内容