Wine 2.0表示它支持Office 2013.我如何实际安装它?
我设法使Office 2013几乎与Crossover一起工作,但没有使用Wine 2.0。 最新的Wine应该支持Office 2013 ,但我找不到教程如何实际实现。 因此,如果关于支持的声明是真的,我如何使用Wine 2.0完成将MS Office 2013安装到Ubuntu?
我安装了办公室2013,开机后我常常得到一个黑色的窗户。 我按照WineHQ-Forum中发布的解决方案修复了黑屏。
这是我做的:
安装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字体,但这无关紧要。
不要关闭winetricks,你很可能想修复黑屏错误。
修复黑色窗口
为了修复阻碍Office 13使用的黑色窗口,将HKCU \ Software \ Wine \ Direct3D \ MaxVersionGL新DWORD值30002(hexa)添加到注册表。
以下是如何执行此操作:在Winetricks中,选择Run regedit并等待注册表编辑器窗口打开。 在文件夹树中展开HKEY_CURRENT_USER – Software – Wine并在Wine文件夹中创建一个新密钥。 为此,右键单击,选择新建 – >键并将其命名为Direct3D 。 现在创建新的 – > DWORD值 ,将文件重命名为MaxVersionGL并将值数据设置为30002 (hex)。 关闭注册表编辑器窗口。
它应该如下所示: 关闭注册表编辑器窗口。
关闭winetricks窗口并运行安装程序:
安装Office 2013
WINEPREFIX=~/.wine/Office2013 WINEARCH=win32 wine ~/PathTo/Office2013Setup.x86.exe
从这里开始,安装运行并完成100%。
打开您选择的Office程序之一。 它们大部分都有效,但我发现Word Math排版不起作用,并且由于“内存或系统资源不足”,Power Point可能无法启动。 所以,仍有改进的余地。
除了Philippe的回答,我还从winetricks安装了以下内容:
msftedit riched20 riched30 riched32 vb6run
这解决了PowerPoint“没有足够的内存或系统资源”问题和黑字段问题
安装Office 2013 pro 32位
该解决方案在Ubuntu 17.10上用wine 2.0.2进行测试。
必需的依赖项
我们需要一个干净的32位葡萄酒前缀和一些包。
sudo dpkg --add-architecture i386 sudo apt update sudo apt install cabextract fonts-liberation winbind wine wine32 wine-gecko2.21
- 32位
wine
安装winbind
用于一些sambafunction- 用于互联网内容弹出窗口的
gecko
cabextract
和wget
通过winetricks下载corefontsfonts-liberation
Arial等的免费替代品
请注意,由于DirectX11支持,我还推荐wine-3.0
。 要安装,请使用
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位前缀。 如果您没有,请在wine命令前加上WINEPREFIX="${HOME}/.wine-office2013pro"
。
首先获得最新的winetricks:
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks -O ~/Downloads/winetricks chmod u+x ~/Downloads/winetricks
然后在32位葡萄酒前缀上使用recipie。
WINEARCH=win32 wine wineboot ~/Downloads/winetricks office2013pro
首先开始
已安装的桌面文件位于
~/.local/share/applications/wine/Programs/Microsoft Office 2013
应该有一条连接到互联网的欢迎消息(仅限wine-3.0)并允许您激活产品。
-
Microsoft Word 2013将正常运行。 虽然,肯定存在一些漏洞 。
-
Microsoft PowerPoint 2013有一些未解决的问题,如黑色幻灯片 。 有时它也一开始就拒绝开始。 如果是这样,请不要在重新启动时按下重启,因为它将退出wine。
产品Activaton
关于wine-3.0
,可以在互联网上激活。
在wine-2.0
,可以通过电话激活产品。 电话号码在这里找到。 对我们来说,这是866-421-7141
好朋友们! 这是我的答案!
这个问题最初是在2017-02-03中提出的。 在2018-02-17我们已经有了更新版本的葡萄酒。
我发布了这个答案,因为我相信这是一个可供更多人使用的解决方案。
以下是与PlayOnLinux( https://www.playonlinux.com/en/ )一起使用的脚本。 它基于QuentinPâris最初创建的脚本(感谢家伙!= D)。
要进行安装,我们需要以下资源: wine , winetricks , winbind和playonlinux 。
注意: winetricks和winbind通常与葡萄酒一起安装。 要测试它们是否存在,请分别使用命令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
作为其他答案的补充:
在Kubuntu 18.04 这个答案(涉及Playonlinux脚本的答案)对我有用 – 开箱即用可以说。
但是后来在Lubuntu 18.10它停止了为我工作。 所以,我尝试了其他答案,最初没有太大的成功。 这个答案帮助我安装了程序,但没有解决“黑屏”问题。 试图解决这个问题,我偶然发现了一个更大的问题。
然后我注意到@Kanchu在其下面发表的评论,指的是这个答案的解决方案。 集成了最后两个答案,我能够成功安装。
在这里,我试图以简单明了的方式总结所有步骤。
-
安装Wine 3.0 – 我是从软件管理器那里完成的。
-
然后:
sudo apt install cabextract fonts-liberation winbind wine wine32
(在我的情况下,他们已经安装)
- 在
~/Downloads
下载最新的winetricks
:
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks -O ~/Downloads/winetricks
-
使其可执行:
chmod u+x ~/Downloads/winetricks
-
预见到“黑屏问题”:
- 在
~/Downloads
开始使用winetricks
:
WINEARCH=win32 winetricks
- 在
检查riched20 msxml6
已安装riched20 msxml6
,然后按照上述步骤操作:
在Winetricks中,选择Run regedit并等待Registry Editor窗口打开。 在文件夹树中展开HKEY_CURRENT_USER – Software – Wine并在Wine文件夹中创建一个新密钥。 为此,右键单击,选择新建 – >键并将其命名为Direct3D。 现在创建新的 – > DWORD值,将文件重命名为MaxVersionGL并将值数据设置为30002(hex)。
所以它看起来像那个图像。
( 事实上,我已经忘记了这一步,并且只在运行下面列出的最后一个命令时才跟踪它 – 在被要求输入密码之前! – 但它最终仍然有效。 )
最后的命令:
WINEARCH=win32 wine wineboot ~/Downloads/winetricks office2013pro
下载并安装该程序。
- 如何在winetricks office2007pro上修复“请插入卷’OFFICE12’(包’office2007pro’所需)”?
- MS Word 2007和MS Power Point 2007在Wine中的表现如何?
- 办公室365在ubuntu上下载
- Ubuntu 17.10上的Microsoft Office 2010 – Wine – 连接错误,激活问题
- 在Ubuntu 12.04 LTS上安装MS Office 2013
- 可以在Wine / Playonlinux下运行的最新MSOffice是什么?
- 更改文件类型的默认应用程序
- Wine Office Excel在Wine中的运行情况如何?
- 使用Wine 2.0在Office 2013中出现黑屏问题