Ubuntu 安装 Wine方法
<h2><span id=".E5.AE.89.E8.A3.85_WineHQ_.E5.AE.89.E8.A3.85.E5.8C.85" class="mw-headline">安装 WineHQ 安装包</span></h2><p><strong>如果您之前安装过来自其他仓库的 Wine 安装包,请在尝试安装 WineHQ 安装包之前删除它及依赖它的所有安装包(如:wine-mono、wine-gecko、winetricks),否则可能导致依赖冲突。</strong></p>
<p>如果您使用的是 64 位系统,请开启 32 bit 架构支持(如果您之前没有开启的话):</p>
<div class="cnblogs_code">
<pre><span style="color: rgba(0, 0, 255, 1)">sudo</span> dpkg --add-architecture i386 </pre>
</div>
<p>下载添加仓库密钥:</p>
<div class="cnblogs_code">
<pre><span style="color: rgba(0, 0, 255, 1)">wget</span> -nc https:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">dl.winehq.org/wine-builds/winehq.key</span>
<span style="color: rgba(0, 0, 255, 1)">sudo</span> apt-key add winehq.key</pre>
</div>
<p>并添加仓库:</p>
<pre><strong><span style="font-size: 15px">Ubuntu </span></strong><span style="color: rgba(128, 0, 128, 1)"><strong><span style="font-size: 15px">18.10:</span></strong><br></span></pre>
<div class="cnblogs_code">
<pre><span style="color: rgba(0, 0, 255, 1)">sudo</span> apt-add-repository <span style="color: rgba(128, 0, 0, 1)">'</span><span style="color: rgba(128, 0, 0, 1)">deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main</span><span style="color: rgba(128, 0, 0, 1)">'</span></pre>
</div>
<pre><span style="color: rgba(0, 0, 0, 1)"><strong><span style="font-size: 15px">
Ubuntu </span></strong><span style="color: rgba(128, 0, 128, 1)"><strong><span style="font-size: 15px">18.04 </span></strong><span style="color: rgba(0, 0, 0, 1)"><strong><span style="font-size: 15px">Linux Mint </span></strong><span style="color: rgba(128, 0, 128, 1)"><strong><span style="font-size: 15px">19</span></strong><span style="color: rgba(0, 0, 0, 1)"><strong><span style="font-size: 15px">.x :</span></strong><br></span></span></span></span></span></pre>
<div class="cnblogs_code">
<pre> <span style="color: rgba(0, 0, 255, 1)">sudo</span> apt-add-repository <span style="color: rgba(128, 0, 0, 1)">'</span><span style="color: rgba(128, 0, 0, 1)">deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main</span><span style="color: rgba(128, 0, 0, 1)">'</span></pre>
</div>
<pre><span style="font-size: 15px"><span style="color: rgba(0, 0, 0, 1)"><br><strong>Ubuntu <span style="color: rgba(128, 0, 128, 1)">16.04 <span style="color: rgba(0, 0, 0, 1)">Linux Mint <span style="color: rgba(128, 0, 128, 1)">18<span style="color: rgba(0, 0, 0, 1)">.x</span></span></span></span></strong></span><strong>:</strong></span></pre>
<div class="cnblogs_code">
<pre><span style="color: rgba(0, 0, 255, 1)">sudo</span> apt-add-repository <span style="color: rgba(128, 0, 0, 1)">'</span><span style="color: rgba(128, 0, 0, 1)">deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main</span><span style="color: rgba(128, 0, 0, 1)">'</span></pre>
</div>
<pre><span style="color: rgba(0, 0, 0, 1)"><br><strong><span style="font-size: 15px">Ubuntu </span></strong><span style="color: rgba(128, 0, 128, 1)"><strong><span style="font-size: 15px">14.04 </span></strong><span style="color: rgba(0, 0, 0, 1)"><strong><span style="font-size: 15px">Linux Mint </span></strong><span style="color: rgba(128, 0, 128, 1)"><strong><span style="font-size: 15px">17</span></strong><span style="color: rgba(0, 0, 0, 1)"><strong><span style="font-size: 15px">.x:</span></strong><br></span></span></span></span></span></pre>
<div class="cnblogs_code">
<pre><span style="color: rgba(0, 0, 255, 1)">sudo</span> apt-add-repository <span style="color: rgba(128, 0, 0, 1)">'</span><span style="color: rgba(128, 0, 0, 1)">deb https://dl.winehq.org/wine-builds/ubuntu/ trusty main</span><span style="color: rgba(128, 0, 0, 1)">'</span> </pre>
</div>
<p> </p>
<p>更新安装包:</p>
<div class="cnblogs_code">
<pre><span style="color: rgba(0, 0, 255, 1)">sudo</span> apt update</pre>
</div>
<p> </p>
<p>然后安装 <strong>以下任一一个安装包</strong>:</p>
<p> 稳定分支: </p>
<div class="cnblogs_code">
<pre><span style="color: rgba(0, 0, 255, 1)">sudo</span> apt <span style="color: rgba(0, 0, 255, 1)">install</span> --<span style="color: rgba(0, 0, 255, 1)">install</span>-recommends winehq-stable</pre>
</div>
<p> 开发分支:</p>
<div class="cnblogs_code">
<pre><span style="color: rgba(0, 0, 255, 1)">sudo</span> apt <span style="color: rgba(0, 0, 255, 1)">install</span> --<span style="color: rgba(0, 0, 255, 1)">install</span>-recommends winehq-devel</pre>
</div>
<p> Staging 分支:</p>
<div class="cnblogs_code">
<pre><span style="color: rgba(0, 0, 255, 1)">sudo</span> apt <span style="color: rgba(0, 0, 255, 1)">install</span> --<span style="color: rgba(0, 0, 255, 1)">install</span>-recommends winehq-staging</pre>
</div>
<p>(可能需要安装 <strong>wine-mono、wine-gecko,</strong>点击确定即可)</p>
<p> </p>
<p>安装完之后输入wine .exe 程序即可在ubuntu下运行exe文件,例如 <span style="font-size: 15px">wind /home/adhzl/tools/PanDownload/PanDownload.exe</span></p>
<p>装完之后输入,卸载的话通过删除文件卸载,方法如下:</p>
<p><span style="font-size: 15px"> 1.wine会在/home下的用户名目录生成三个隐藏的文件夹 .wine、.local、.config 等文件夹,快捷键 ctrl+H 可以显示出来;<br><span style="font-size: 15px"> 2.进入 .wine 文件夹可以看到 drive_c 文件夹,这是wine自动生成的虚拟windows C盘,里面有类似windows系统盘的目录结构,在里面找到需要卸载的软件文件夹删除即可;<br><span style="font-size: 15px"> 3.找到/home/用户名/.local/share/applications/wine/Programs,将软件对应的文件删除;<br><span style="font-size: 15px"> 4.找到/home/用户名/.config/menus/applications-merged,将软件对应的文件删除;<br><span style="font-size: 15px"> 5.这时候已经删除完毕,但是可能还会看到桌面图标或软件列表,重启系统即可。</span></span></span></span></span></p>
<p> </p>
<p> </p>
<p>附上官网链接</p>
<p>https://wiki.winehq.org/Ubuntu_zhcn</p>
<p>参考链接:</p>
<p>https://www.cnblogs.com/hyyq/p/9082765.html</p>
<p> </p><br><br>
来源:https://www.cnblogs.com/adhzl/p/11135020.html
頁:
[1]