在搜索引擎搜索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 i386Download and add the repository key:
wget -nc https://dl.winehq.org/wine-builds/winehq.key sudo apt-key add winehq.keyAdd 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 updateThen install one of the following packages:
Stable branch sudo apt install --install-recommends winehq-stableDevelopment branch sudo apt install --install-recommends winehq-develStaging branch sudo apt install --install-recommends winehq-stagingIf 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/ 文件夾下面