10

debian11安装wine

 2 years ago
source link: https://owenyk.github.io/2022/01/02/debian11%E5%AE%89%E8%A3%85wine/#comment-waline
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

debian11安装wine

发表于

2022-01-02 更新于 2022-01-04 分类于 软件应用LinuxWine

阅读次数: 15 Waline: 0 阅读次数: 13 本文字数: 4.6k 阅读时长 ≈ 10 分钟

debian11安装wine
vim Release.key

# 输入以下内容:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.5 (GNU/Linux)

mQENBFu8fWQBCADM64J7qlcnI2KwxSKSdyaOi7hz44EUXDpC3+3hfFP8k28SgV3U
4a/ydOdd2cDSne5w+yjrnJWYuS0sTiE7vQPtKfmCmQZfCStvoRe5Pt+AOy1GA/iu
U5wHIZD+/A9CeQcu5L3PkVkmijz0LmSCq7HnnVB0SdFA5eFlV98H875EasvpJ3xU
ziI3yvqdZ5/0LgKzOiFjk4rMXQS01a1dNpwFO7EXiq921ZjnXatdnsDQ/NAj7z8P
3qnTAj6yvl7DtdlXXA2hiznEOZNCRLZ69vHq0hGIw+OKjpsUkCZK29AnY4wJxxzY
frjknVW7tyZ6Hxwz6R4vaVlZ6h5WR/OiAdqlABEBAAG0NEVtdWxhdG9ycyBPQlMg
UHJvamVjdCA8RW11bGF0b3JzQGJ1aWxkLm9wZW5zdXNlLm9yZz6JAT4EEwEIACgF
Al/IneQCGwMFCQgq0IAGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEN+hdadR
BJYObLMIAITmgANzWhIIVdnmI2be/xyHhVAwyEhWBb/omcJ0mbxJ9QuPtxJAUS9I
ExslzbHOju37FlTLiWKZ6C/iJq4ThJYOufjrKL/PI+ynKSfyorF55ZfbV24kM3Og
LB8piWvf6oIcBjoJpD+vnhoZW7nze4jXRP6I3DgNcMm597N/RPyZyCHLmhrOZmHS
t2ppzWlsVEOnC8n08KPHDYYOPLbyR8Y2KvjbnS9Vip5Hr5gtbtRLz2ip7VBso7ar
h9ZAZxzQl2u4iL5BKJ2lYjE/eJctHAK6QkWJR3FAlQsbSIHZKWGKIcZSlpKm+B5u
7iV2zMHGPFWgjZSSeuLiGQypFJra0J2IRgQTEQIABgUCW7x9ZAAKCRA7MBG3a51l
IwayAJ9dHmDag9nFY9GujfMr+foKquFS9wCfQlvp6Sz0N5aKdW00NGnZZ/EKHIQ=
=2pEk
-----END PGP PUBLIC KEY BLOCK-----
# 添加
sudo apt-key add Release.key

添加安装源

vim /etc/apt/sources.list

输入以下内容:

deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_11 ./


添加源密钥

sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
--2021-05-08 14:29:29-- https://dl.winehq.org/wine-builds/winehq.key

sudo apt-key add winehq.key
OK
sudo vim /etc/apt/sources.list


添加如下内容:

deb https://dl.winehq.org/wine-builds/debian/ bullseye main 


更新安装源

sudo apt update
sudo apt install --install-recommends winehq-stable
winecfg
wine uninstaller

附注:卸载wine则用:

sudo apt --purge autoremove --install-recommends winehq-stable
mkdir Wine
cd Wine

初始化wine bottle config

以下/path/to即为用户目录

WINARCH=win32 WINEPREFIX=/path/to/Wine/WeChat winecfg

通过winetricks添加依赖项目

安装winetricksgui界面

sudo apt install zenity
# 配置微信数据目录
WINARCH=win32 WINEPREFIX=/path/to/Wine/WeChat winetricks

选择默认的Wine容器 -> OK -> 安装Windows DLL组件 ->OK -> 勾选riched20.dll(以及riched32.dll)-> OK -> 等待安装即可

WINARCH=win32 WINEPREFIX=/path/to/Wine/WeChat wine WeChatSetup.exe

解决输入框文字输入问题

安装winetricks

下载地址:

sudo dpkg -i "winetricks_0.0+20210206-2_all.deb"
winetricks riched20
cat: /tmp/winetricks.nTVgvhUR/stdout.tmp: 没有那个文件或目录
rm: 无法删除 '/tmp/winetricks.nTVgvhUR/stdout.tmp': 没有那个文件或目录
------------------------------------------------------
warning: Github 提供的下载? 似乎不是个有效的版本号。
------------------------------------------------------
Executing mkdir -p /path/to
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20210206-next - sha256sum: 7cc2f1a44854b8449270cb46890d6cf3c9dff190ac40729ae4eb817b290df8f5 with wine-6.0.1 and WINEARCH=win64
Executing w_do_call riched20
Executing mkdir -p /path/to
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_riched20
Executing mkdir -p /path/to/.cache/winetricks/win2ksp4
Executing cd /path/to/.cache/winetricks/win2ksp4
Downloading http://x3270.bgp.nu/download/specials/W2KSP4_EN.EXE to /path/to/.cache/winetricks/win2ksp4

09/22 18:31:09 [NOTICE] Downloading 1 item(s)
[#fcb5f1 127MiB/129MiB(98%) CN:1 DL:10MiB]
09/22 18:31:23 [NOTICE] 下载已完成:/path/to/.cache/winetricks/win2ksp4/W2KSP4_EN.EXE

下载结果:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
fcb5f1|OK | 9.6MiB/s|/path/to/.cache/winetricks/win2ksp4/W2KSP4_EN.EXE

状态标识:
(OK):下载已完成。
Executing cd /path/to/下载/winetricks
------------------------------------------------------
warning: Cannot find cabextract. Please install it (e.g. 'sudo apt-get install cabextract' or 'sudo yum install cabextract').
------------------------------------------------------


按照提示输入:

sudo apt install cabextract


如果下载不成功,可以多试几次,也可以直接下载以上两个文件:
1、W2KSP4_EN.EXE
2、InstMsiW.exe
放到/path/to/.cache/winetricks/win2ksp4//path/to/.cache/winetricks/msls31/路径下

参考 :
1、winehq官网For Debian
2、Winetricks介绍
3、Linux下通过Wine安装微信
4、解决微信等有输入框的无法输入问题
5、安装字体参考{解决输入中文出现方框}


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK