Ubuntu安装微信,解决deepin“版本过低”或NO_PUBKEY问题
<p class="title-article">在搜索引擎搜索Ubuntu安装微信,最多的结果是通过deepin安装</p><p class="title-article">但是里面使用的deepin-for-ubuntu 安装之后微信扫码会提示版本过低</p>
<p class="title-article">直接安装deepin.com.wechat_2.6.8.65deepin0_i386.deb版的微信,会提示以来的deepin-for-ubuntu版本低</p>
<p class="title-article">解决方式是使用wine直接安装微信</p>
<p class="title-article">现有的搜索结果很多提示 sudo apt-key add Release.key</p>
<p class="title-article">后面会报错类似于Ubuntu:NO_PUBKEY(找不到公钥)</p>
<p class="title-article">解决方式是参考wine官方文档https://wiki.winehq.org/Ubuntu</p>
<blockquote>
<p>If your system is 64 bit, enable 32 bit architecture (if you haven't already):</p>
<pre>sudo dpkg --add-architecture i386
</pre>
<p>Download and add the repository key:</p>
<pre>wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
</pre>
<p>Add the repository:</p>
<table class="wikitable" style="width: 100%">
<tbody>
<tr><th>For this version:</th><th>Use this command:</th></tr>
<tr>
<td>Ubuntu 19.04</td>
<td>sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ disco main'</td>
</tr>
<tr>
<td>Ubuntu 18.10</td>
<td>sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main'</td>
</tr>
<tr>
<td>Ubuntu 18.04
<p>Linux Mint 19.x</p>
</td>
<td>sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'</td>
</tr>
<tr>
<td>Ubuntu 16.04
<p>Linux Mint 18.x</p>
</td>
<td>sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'</td>
</tr>
</tbody>
</table>
<p>Update packages:</p>
<pre>sudo apt update
</pre>
<p>Then install <strong>one of the following packages</strong>:</p>
<table class="wikitable" style="width: 100%">
<tbody>
<tr><th>Stable branch</th>
<td>
<pre>sudo apt install --install-recommends winehq-stable
</pre>
</td>
</tr>
<tr><th>Development branch</th>
<td>
<pre>sudo apt install --install-recommends winehq-devel
</pre>
</td>
</tr>
<tr><th>Staging branch</th>
<td>
<pre>sudo apt install --install-recommends winehq-staging
</pre>
</td>
</tr>
</tbody>
</table>
<p>If apt complains about missing dependencies, install them, then repeat the last two steps (update and install).</p>
</blockquote>
<p class="title-article">其中和大部分中文搜索结果不同的是</p>
<div class="cnblogs_code">
<pre>wget -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>
sudo apt-key add winehq.key</pre>
</div>
<p>之后下载windows 安装文件,右键打开方式使用wine即可正常安装使用</p>
<p>然后有可能遇到一些问题,比如linux下使用wine安装微信后,发现聊天输入框无法显示光标与文字。参考https://www.cnblogs.com/makefile/p/6079451.html</p>
<p>但这里没有提到替换函数库到drive_c的位置,经过搜索,参考https://ubuntuforums.org/showthread.php?t=989924</p>
<p>位置应该是在 ~/.wine/ 文件夹下面</p><br><br>
来源:https://www.cnblogs.com/browncrane/p/11590418.html
頁:
[1]