Ubuntu安装微信,解决deepin“版本过低”或NO_PUBKEY问题

在搜索引擎搜索Ubuntu安装微信,最多的结果是通过deepin安装

但是里面使用的deepin-for-ubuntu 安装之后微信扫码会提示版本过低

直接安装deepin.com.wechat_2.6.8.65deepin0_i386.deb版的微信,会提示以来的deepin-for-ubuntu版本低

解决方式是使用wine直接安装微信

现有的搜索结果很多提示 sudo apt-key add Release.key

后面会报错类似于Ubuntu:NO_PUBKEY(找不到公钥)

解决方式是参考wine官方文档https://wiki.winehq.org/Ubuntu

If your system is 64 bit, enable 32 bit architecture (if you haven't already):

sudo dpkg --add-architecture i386 

Download and add the repository key:

wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key

Add the repository:

For this version:Use this command:
Ubuntu 19.04 sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ disco main'
Ubuntu 18.10 sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main'
Ubuntu 18.04

Linux Mint 19.x

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
Ubuntu 16.04

Linux Mint 18.x

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'

Update packages:

sudo apt update

Then install one of the following packages:

Stable branch
sudo apt install --install-recommends winehq-stable
Development branch
sudo apt install --install-recommends winehq-devel
Staging branch
sudo apt install --install-recommends winehq-staging

If apt complains about missing dependencies, install them, then repeat the last two steps (update and install).

其中和大部分中文搜索结果不同的是

wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key

之后下载windows 安装文件,右键打开方式使用wine即可正常安装使用

然后有可能遇到一些问题,比如linux下使用wine安装微信后,发现聊天输入框无法显示光标与文字。参考https://www.cnblogs.com/makefile/p/6079451.html

但这里没有提到替换函数库到drive_c的位置,经过搜索,参考https://ubuntuforums.org/showthread.php?t=989924

位置应该是在 ~/.wine/ 文件夹下面

posted on 2019-09-26 13:41  褐鹤  阅读(4208)  评论(0编辑  收藏  举报

导航