AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 879304
Accepted
Ohto Nordberg
Ohto Nordberg
Asked: 2017-02-03 21:20:18 +0800 CST2017-02-03 21:20:18 +0800 CST 2017-02-03 21:20:18 +0800 CST

Wine 2.0 说它支持 Office 2013。我如何实际安装它?

  • 772

我设法让 Office 2013 几乎可以与 Crossover 一起使用,但不能与 Wine 2.0 一起使用。最新的 Wine 应该支持 Office 2013,但我找不到如何实际实现这一点的教程。因此,如果有关支持的声明属实,我如何使用 Wine 2.0 将 MS Office 2013 安装到 Ubuntu?

wine
  • 5 5 个回答
  • 71498 Views

5 个回答

  • Voted
  1. Best Answer
    Philippe
    2017-02-11T13:20:55+08:002017-02-11T13:20:55+08:00

    我安装了office 2013,启动后我曾经得到一个黑色的窗口。我按照WineHQ-Forum中发布的解决方案修复了黑屏。

    这是我所做的:

    安装 Wine 和组件

    首先,安装 wine 2.1(也可以与 2.0 'winehq-staging' 一起使用)

    sudo add-apt-repository ppa:wine/wine-builds
    sudo apt-get update
    sudo apt-get install --install-recommends winehq-devel
    

    安装'winbind'

    sudo apt install winbind
    

    为 Win7 创建干净的 32 位前缀

    创建一个干净的 32 位前缀并启动 winecfg:

    WINEPREFIX=~/.wine/Office2013 WINEARCH=win32 winecfg
    

    在 winecfg 应用程序选项卡中选择“ Windows 版本:Windows 7 ”关闭 wine 配置并安装 winetricks

    安装库

    sudo apt install winetricks
    

    然后为您的前缀启动 winetricks

    WINEPREFIX=~/.wine/Office2013 WINEARCH=win32 winetricks
    

    用 OK接受“选择默认的 wineprefix ”。现在,选择“安装 Windows DLL 组件”并安装msxml6

    我还安装了 cambria 字体,但这没关系。

    暂时不要关闭 winetricks,您很可能想要修复黑屏错误。

    修复黑色窗口

    为了修复阻碍 Office 13 使用的黑窗,将 HKCU\Software\Wine\Direct3D\MaxVersionGL 新的 DWORD 值 30002(十六进制)添加到注册表。

    操作方法如下: 在 Winetricks 中选择运行 regedit并等待注册表编辑器窗口打开。在文件夹树中展开 HKEY_CURRENT_USER - Software - Wine 并在 Wine 文件夹中创建一个新密钥。为此,请右键单击,选择new-->key并将其命名为Direct3D。现在创建new-->DWORD Value,将文件重命名为MaxVersionGL并将值数据设置为30002(十六进制)。关闭注册表编辑器窗口。

    它应该如下所示: 注册表编辑器条目 关闭注册表编辑器窗口。

    关闭 winetricks 窗口并运行安装程序:

    安装 Office 2013

    WINEPREFIX=~/.wine/Office2013 WINEARCH=win32 wine ~/PathTo/Office2013Setup.x86.exe
    

    从这里开始,安装运行并完成 100%。

    打开您选择的 Office 程序之一。它们大部分都可以工作,但我发现 Word Math Typesetting 不起作用,并且由于“内存或系统资源不足”,Power Point 可能无法启动。所以,还有改进的余地。

    • 39
  2. Naheel
    2017-10-14T12:05:59+08:002017-10-14T12:05:59+08:00

    除了菲利普的回答,我还从 winetricks 安装了以下内容:

    msftedit
    riched20
    riched30
    riched32
    vb6run
    

    这解决了 PowerPoint“内存或系统资源不足”问题和黑场问题

    • 14
  3. ukos
    2018-02-18T04:02:01+08:002018-02-18T04:02:01+08:00

    安装 Office 2013 专业版 32 位

    此解决方案在 Ubuntu 17.10 和 wine 2.0.2 上进行了测试。

    所需的依赖项

    我们需要一个干净的 32 位 wine 前缀和一些包。

    sudo dpkg --add-architecture i386
    sudo apt update
    sudo apt install cabextract fonts-liberation winbind wine wine32 wine-gecko2.21
    
    • 32位wine安装
    • winbind对于一些 samba 功能
    • gecko用于互联网内容弹出窗口
    • cabextract并通过 winetrickswget下载corefonts
    • fonts-liberation对于 Arial 等的免费替代品。

    请注意,我也推荐它,wine-3.0因为它支持 DirectX11。要安装,请使用

    wget https://dl.winehq.org/wine-builds/Release.key
    sudo apt-key add Release.key
    sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'
    
    sudo apt-get update
    sudo apt-get install wine-stable winehq-stable 
    

    安装过程

    接收者现在在winetricks上游。我们需要一个干净的 32 位前缀。如果您没有,WINEPREFIX="${HOME}/.wine-office2013pro"请在 wine 命令之前添加。

    首先获取最新的葡萄酒技巧:

    wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks -O ~/Downloads/winetricks
    chmod u+x ~/Downloads/winetricks
    

    然后在 32 位 wine 前缀上使用 recipie。

    WINEARCH=win32 wine wineboot
    ~/Downloads/winetricks office2013pro
    

    由于 libxml 不兼容而安装了 msxml6。 设置很简单。

    第一次开始

    安装的桌面文件位于

    ~/.local/share/applications/wine/Programs/Microsoft Office 2013
    

    欢迎留言 微软幻灯片软件

    应该有一条连接到 Internet 的欢迎消息(仅在 wine-3.0 上)并让您激活产品。

    • Microsoft Word 2013将正常启动。虽然,其中肯定有一些错误。

    • Microsoft PowerPoint 2013有一些未解决的问题,例如黑色幻灯片。有时它也拒绝开始。如果是这样,请不要在询问时按重新启动,因为它会退出 wine。

    不要在PowerPoint中按重新启动

    产品激活

    wine-3.0可以通过互联网激活。

    在wine-2.0产品上可以通过电话激活。电话号码可在此处找到。对我们来说,它是 866-421-7141

    • 5
  4. Eduardo Lucio
    2018-02-18T16:51:01+08:002018-02-18T16:51:01+08:00

    好的朋友们!这是我的答案!

    这个问题最初是在 2017-02-03 提出的。在 2018 年 2 月 17 日,我们已经有了更新版本的葡萄酒。

    我发布了这个答案,因为我相信这是一个可供更多人使用的解决方案。

    下面是用于 PlayOnLinux ( https://www.playonlinux.com/en/ ) 的脚本。它基于Quentin Pâris最初创建的脚本(谢谢!=D)。

    要进行安装,我们需要以下资源:wine、winetricks、winbind和playonlinux。

    注意: winetricks 和 winbind 通常与 wine 一起安装。要测试它们是否存在,请分别使用命令winetricks -V和wbinfo -V!

    来自@Naheel 和@Philippe 的贡献。


    使用脚本:

    将下面的脚本保存到文本文件(例如:)office2013.bash。

    启动PlayOnLinux,打开上面的脚本文件...

    打开脚本文件。

    ... , 运行...

    运行脚本文件。

    ...并按照屏幕上的说明进行操作。


    PLAYONLINUX 脚本:

    #!/bin/bash
    
    # CHANGELOG
    # [Quentin Pâris and Eduardo Lucio (Questor)] (2018-02-17 15-24)
    # Version 1.1.0.0
    # Paris/Brazil
    
    # >>>>>>>>>>
    # Under BSD License!
    
    # Copyright (c) 2018, Quentin Pâris and Eduardo Lucio
    # All rights reserved.
    
    # Redistribution and use in source and binary forms, with or without
    # modification, are permitted provided that the following conditions are met:
    #     * Redistributions of source code must retain the above copyright
    #       notice, this list of conditions and the following disclaimer.
    #     * Redistributions in binary form must reproduce the above copyright
    #       notice, this list of conditions and the following disclaimer in the
    #       documentation and/or other materials provided with the distribution.
    #     * Neither the name of the free software community nor the
    #       names of its contributors may be used to endorse or promote products
    #       derived from this software without specific prior written permission.
    
    # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
    # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    # DISCLAIMED. IN NO EVENT SHALL Quentin Pâris and Eduardo Lucio BE LIABLE FOR ANY
    # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
    # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    
    # <<<<<<<<<<
    
    # NOTE: Complete liste of references! By Questor
    # https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/wine.lib
    # https://www.playonlinux.com/en/app-2665-Microsoft_Office_2013.html
    # http://wiki.playonlinux.com/index.php/Scripting_-_Chapter_11:_List_of_Functions
    # http://wiki.playonlinux.com/index.php/Components_and_Functions
    # https://www.playonlinux.com/repository/source.php?script=822
    # https://github.com/PlayOnLinux/POL-POM-4/blob/367e50865168b5b931611fa33b0c1d8426143a90/lib/scripts.lib
    # https://github.com/PlayOnLinux/POL-POM-4/blob/367e50865168b5b931611fa33b0c1d8426143a90/lib/wine.lib
    # https://askubuntu.com/questions/879304/wine-2-0-says-it-supports-office-2013-how-do-i-actually-install-it
    # https://github.com/RobertJames/playonlinux/blob/75ef37523f299255a539a89b63dc87d7afc096d4/template.POL
    
    # >>>>>>>>>>
    # Initialization!
    
    [ "$PLAYONLINUX" = "" ] && exit 0
    source "$PLAYONLINUX/lib/sources"
    
    PREFIX="office2013"
    
    WINEVERSION="3.0"
    
    TITLE="Microsoft Office 2013"
    
    # NOTE: Images to use! By Questor
    POL_GetSetupImages "https://i.imgur.com/licFVuF.png" "https://i.imgur.com/ff6PkEZ.png" "$TITLE"
    
    POL_SetupWindow_Init
    POL_SetupWindow_SetID 2665
    
    POL_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com" "Quentin Pâris and Eduardo Lucio" "$PREFIX"
    
    POL_Debug_Init
    
    # <<<<<<<<<<
    
    # >>>>>>>>>>
    # Perform some validations!
    
    POL_RequiredVersion 4.2.12 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION!\nPlease update!"
    
    if [ "$POL_OS" = "Linux" ]; then
        wbinfo -V || POL_Debug_Fatal "Please install winbind before installing $TITLE!"
    fi
    
    if [ "$POL_OS" = "Mac" ]; then
    
        # NOTE: Samba support! By Quentin Pâris
        POL_Call POL_GetTool_samba3
        source "$POL_USER_ROOT/tools/samba3/init"
    
    fi
    
    POL_Wine_WaitBefore "$TITLE"
    [ "$CDROM" ] && cd "$CDROM"
    
    if [ ! "$(file $SetupIs | grep 'x86-64')" = "" ]; then
        POL_Debug_Fatal "$(eval_gettext "The 64bits version is not compatible! Sorry!")";
    fi
    
    # NOTE: Check if "winetricks" is present! By Questor
    winetricks -V || POL_Debug_Fatal "Please install winetricks before installing $TITLE!"
    
    POL_System_SetArch "x86"
    POL_SetupWindow_InstallMethod "LOCAL,DVD"
    
    if [ "$INSTALL_METHOD" = "DVD" ]; then
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "x86/setup.exe" "setup.exe"
        SetupIs="$CDROM_SETUP"
        cd "$CDROM"
    else
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run!')" "$TITLE"
        SetupIs="$APP_ANSWER"
    fi
    
    # <<<<<<<<<<
    
    # >>>>>>>>>>
    # Prepare resources for installation!
    
    # NOTE: Install wine version if isn't available. This is necessary because 
    # even though "POL_Wine_PrefixCreate" solves this, we end up having 
    # problems when the required version is not available and it tries to 
    # install it! Questor
    # [Ref.: https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/wine.lib]
    POL_Wine_InstallVersion "$WINEVERSION"
    
    POL_Wine_SelectPrefix "$PREFIX"
    POL_Wine_PrefixCreate "$WINEVERSION"
    
    Set_OS "win7"
    
    # <<<<<<<<<<
    
    # >>>>>>>>>>
    # Install!
    
    # NOTE: Installs office! By Questor
    POL_Wine "$SetupIs"
    POL_Wine_WaitExit "$TITLE"
    
    # <<<<<<<<<<
    
    # >>>>>>>>>>
    # Prepare resources for applications!
    
    # NOTE: Uses native special version of "riched20" installed by Office 2013! 
    # Fix the "black fields" issue! By Questor
    # [Ref.: http://forum.winehq.org/viewtopic.php?f=8&t=23126&p=95555#p95555]
    POL_Wine_OverrideDLL "native,builtin" "riched20"
    
    # NOTE: Fix "move and change the window size (maximize/minimize/restore/resize 
    # etc...) bugs"! By Questor
    # [Ref.: https://bugs.winehq.org/show_bug.cgi?id=44552]
    Set_Managed "Off"
    
    # <<<<<<<<<<
    
    # >>>>>>>>>>
    # Create shortcuts, entries to extensions and finalize!
    
    # NOTE: Create shortcuts! By Questor
    POL_Shortcut "WINWORD.EXE" "Microsoft Word 2013" "" "" "Office;WordProcessor;"
    POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2013" "" "" "Office;Spreadsheet;"
    POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2013" "" "" "Office;Presentation;"
    
    # NOTE: No category for collaborative work? By Quentin Pâris
    POL_Shortcut "ONENOTE.EXE" "Microsoft OneNote 2013" "" "" "Network;InstantMessaging;"
    
    # NOTE: "Calendar;ContactManagement;"? By Quentin Pâris
    POL_Shortcut "OUTLOOK.EXE" "Microsoft Outlook 2013" "" "" "Network;Email;"
    
    # NOTE: Add an entry to PlayOnLinux's extension file. If the entry already 
    # exists, it will replace it! By Questor
    # [Ref.: https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/playonlinux.lib]
    POL_Extension_Write doc "Microsoft Word 2013"
    POL_Extension_Write docx "Microsoft Word 2013"
    POL_Extension_Write xls "Microsoft Excel 2013"
    POL_Extension_Write xlsx "Microsoft Excel 2013"
    POL_Extension_Write ppt "Microsoft Powerpoint 2013"
    POL_Extension_Write pptx "Microsoft Powerpoint 2013"
    
    if [ "$POL_OS" = "Mac" ]; then
        POL_Shortcut_InsertBeforeWine "Microsoft Word 2013" "source \"$POL_USER_ROOT/tools/samba3/init\""
        POL_Shortcut_InsertBeforeWine "Microsoft Excel 2013" "source \"$POL_USER_ROOT/tools/samba3/init\""
        POL_Shortcut_InsertBeforeWine "Microsoft Powerpoint 2013" "source \"$POL_USER_ROOT/tools/samba3/init\""
        POL_Shortcut_InsertBeforeWine "Microsoft OneNote 2013" "source \"$POL_USER_ROOT/tools/samba3/init\""
        POL_Shortcut_InsertBeforeWine "Microsoft Outlook 2013" "source \"$POL_USER_ROOT/tools/samba3/init\""
    fi
    
    POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed successfully!\n\nThanks!\nBy Quentin Pâris and Eduardo Lucio')" "$TITLE"
    POL_SetupWindow_Close
    
    # <<<<<<<<<<
    
    exit 0
    

    关于此脚本的更多信息: https ://www.playonlinux.com/en/app-2665.html

    • 2
  5. Rochdi Boudjehem
    2018-12-03T11:20:09+08:002018-12-03T11:20:09+08:00

    使用 PlayOnLinux 更简单,只需关注此视频: https ://www.youtube.com/watch?v=6HhKWXdCWBM 。在视频说明中,您会发现:

      • 下载 PlayOnLinux
      • 安装winbind
      • 设置 PlayOnLinux
      • 安装 Wine 3.1 和 2.20-staging
      • 创建虚拟驱动器Office2013
      • 复制脚本从https://www.reddit.com/r/linux/comments/3ukrfh/microsoft_office_2013_on_linux_using_playonlinux/
      • 只修改一个输入
      • 在 PlayOnLinux 中粘贴脚本
      • 设置默认 Office 2013 安装管理器
      • 设置大约需要 5-10 分钟
      • 设置 Wine 的 2.20-staging 版本
      • 去!
      • 微软 Outlook 2013 !- 失败。微软 OneNote 2013 也是
    • 0

相关问题

  • 是否有 Wine 兼容软件的目录?

  • 如何安装 Windows 软件或游戏?

  • 如何让 .NET 2.0 SP2 在 wine 中运行?

  • 为自定义 PPA 修补 Wine 的正确方法是什么?

  • 如何在 Ubuntu 中运行 Windows XP

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve