Wine 2.0表示它支持Office2013。如何实际安装它?


23

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


1
如果有答案,请Dupe:askubuntu.com/questions/875991/…–
muru

2
我会在葡萄酒论坛上问这个问题。这是他们的要求...
Rinzwind '17

Answers:


34

我安装了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

单击 “确定” 接受“ 选择默认wineprefix ”。现在,选择“ 安装Windows DLL组件 ”并安装msxml6

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

暂时不要关闭葡萄酒技巧,您很可能想修复黑屏错误。

修复黑窗

为了修复阻止使用Office 13的黑色窗口,请将HKCU \ Software \ Wine \ Direct3D \ MaxVersionGL新的DWORD值30002(六)添加到注册表中。

操作方法如下:在Winetricks中,选择Run regedit,然后等待注册表编辑器窗口打开。在文件夹树中,展开HKEY_CURRENT_USER-软件-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可能无法正常启动。因此,仍有改进的空间。


从Microsoft下载的安装程序安装正常,但最终出现黑屏。即使使用config.xml,通过Heidoc下载的安装程序映像也无法完成安装和激活。
Ohto Nordberg

我已按照说明进行操作,但仍出现黑屏。还有什么我可以尝试的吗?
阿布尔巴'17

2
您能指出在哪里找到所有这些信息吗?
iuridiniz

1
使用ubuntu 16.04以及现有的或更新的葡萄酒技巧,“安装库”步骤将告诉我sha1sum mismatch! Rename /home/*/.cache/winetricks/msxml6/msxml6_x86.msi and try again.。我该如何规避?
highsciguy

我的File not found安装文件出现错误,有关如何解决该问题的任何想法?
哈曼·塞缪尔

12

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

msftedit
riched20
riched30
riched32
vb6run

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


我尝试从devel install安装wine 3.1。winetricks在安装rich * DLL时发生了soem错误。我使用了源代码中最新的winetricks:github.com/Winetricks/winetricks/blob/master/src/winetricks所以我可以安装所有DLL,并且可以正常工作。
迈克尔

这是richtx32(不是riched32),但它为我工作:)
CZ

5

安装Office 2013 Pro 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 对于一些桑巴功能
  • gecko用于互联网内容弹出窗口
  • cabextract并通过winetricks wget下载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 

安装过程

所述recipie现已在上游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前缀上使用配方。

WINEARCH=win32 wine wineboot
~/Downloads/winetricks office2013pro

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

第一次开始

安装的桌面文件位于

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

欢迎留言 微软幻灯片软件

应该有一条欢迎消息连接到互联网(仅在wine-3.0上),并允许您激活产品。

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

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

不要在PowerPoint中按重新启动

产品Activaton

wine-3.0激活可能在互联网上。

wine-2.0该产品可以通过电话激活。可以在这里找到电话号码。对我们来说是866-421-7141


1
+1 ...基于此,我能够安装并具有有效的设置(无需使用引用的winetricks office2013pro)。创建了一个32位前缀。然后,winetricks corefonts tahoma riched20 msxml6然后HKEY_CURRENT_USER\Software\Wine\Direct3D欺骗,使用自己的介质安装。甚至更新到SP1并安装了其他语言包。到目前为止,我使用过的所有东西都可以正常工作……
Kanchu,

@Kanchu-对我很有帮助,他认为在此解决方案期间不会出现黑屏问题。为了将所有内容放在一起,我在这里总结了此答案的所有步骤:askubuntu.com/a/1085219/47206

@Kanchu看看动词,您会发现winetricks为您完成了所有的魔术。
ukos

2

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

最初在2017-02-03问这个问题。在2018-02-17中我们已经有了较新版本的葡萄酒。

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

下面是与PlayOnLinux(https://www.playonlinux.com/en/)一起使用的脚本。它基于QuentinPâris最初创建的脚本(感谢伙计!= D)。

要进行安装,我们需要以下资源:winewinetrickswinbindplayonlinux

注意: winetricks和winbind通常与葡萄酒一起安装。要测试它们是否存在winetricks -Vwbinfo -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
# /ubuntu/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


1
您正在安装msxml6 msftedit riched30 vb6run。可以评论为什么吗?在winhq网站上有很多关于这些软件包的讨论,但是我无法重现为什么需要它们。我整理了一些参考资料,以使安装过程更加清晰。在我的最后,只有真正需要的是riched20。我无法理解Questor在安装过程中将Wine-Version设置为3.2以及之后设置为2.22的编辑。对我来说,在wine-2.0上安装很好。和酒3.0。
ukos

1
好。所以我检查了winhq上的错误报告。在libxml2中的错误修复之前,您仅在某些wine版本中需要msxml6。
ukos

@ukos关于“我无法理解Questor的安装过程中将Wine设置为3.2版以及之后设置为2.22的编辑”,这样做是因为Wine版本“ 2.22”在安装程序中失败,而“ 3.2”版本在Office应用程序中失败。这就是在我的环境(Linux Manjaro)上发生的事情。您使用了“葡萄酒”“ 3”的哪个特定版本?谢谢!
爱德华多·卢西奥

@ukos“在libxml2中的错误修复之前,您只需要在某些Wine版本中使用msxml6”->特别是哪个wine版本?告诉我酒的版本,以便我进行测试。
爱德华多·卢西奥

1
那是一个未解决的错误(也很烦人)
ukos

0

使用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分钟
    • 设置2.20阶段的Wine版本
    • 走!
    • Microsoft Outlook 2013!-失败 微软OneNote 2013
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.