解决wine安装dotnet2.0的问题

注意:本文最后更新于 2738 天前,有关的内容可能已经发生变化,请参考使用。

使用winetricks安装dotnet2.0时出现错误:

    ------------------------------------------------------
    Instaling .net 2.0 runtime.  Can take several minutes.  See http://wiki.winehq.org/MicrosoftDotNet for tips.
    ------------------------------------------------------
    prerequisite gecko already installed, skipping
    Setting Windows version to win2k
    Executing early_wine regedit c:\winetrickstmp\set-winver.reg
    Executing cp -f /home/xerxes/.cache/winetricks/dotnet20/l_intl.nls /home/xerxes/.wine/dosdevices/c:/windows/system32/
    Executing wine reg delete HKLM\Software\Microsoft\.NETFramework\policy
                                                                          2.0 /f
    DELETE - HKLM\Software\Microsoft\.NETFramework\policy\v2.0 (null) 0 0 1
    Error: The system was unable to find the specified registry key or value
    ------------------------------------------------------
    Note: command 'wine reg delete HKLM\Software\Microsoft\.NETFramework\policy
    2.0 /f' returned status 1.  Aborting.
    ------------------------------------------------------

在网上查了一下,基本上没有中文解答,好在发现了这个帖子,原来好多人也一样的遇到了这个问题,大部分人都是无解状态,好在7#出现了个lusida大侠给出了解释“The error was because winetricks never bother to check existence of two keys it tries to delete.“(出现这个错误是因为winetricks没有检查将要删除的键值是否存在。)

解决方法是添加那两个winetricks需要删除的键值让其删除:


    wine reg add "HKLM\Software\Microsoft\.NETFramework\policy\v2.0"
    wine reg add "HKLM\Software\Microsoft\.NETFramework" /v InstallRoot

PS:还可以尝试下载这个版本的dotnet来安装,winetricks已经于几周前在SVN中修复了这个小错误


「倘若有所帮助,不妨酌情赞赏!」

Holmesian

感谢您的支持!

使用微信扫描二维码完成支付

发表新评论
暂无评论
  1. Nike SB

    谢谢分享,楼主有格调,有思想,强大系,纯真帮。

    Nike SB 回复