Ubuntu18.04安装wine5.0

1.准备工作:

第一步有问题,不要用

1.1首先更新自己的sources.list中的文件;

使用命令:

sudo gedit /etc/apt/sources.list 

在打开的文件中,添加如下两行:

deb http://security.ubuntu.com/ubuntu xenial-security main 
deb http://cz.archive.ubuntu.com/ubuntu groovy main 

添加这两行的目的是为了下载lib**一类的安装包,不需要单个去找了;

1.2使用命令更新:

sudo ape-get update
sudo apt-get upgrade

这个过程会比较久,取决于个人网速,我大概用了四十分钟…

2.安装WineHQ 5.0

2.1这是添加自定义存储库的另一种方法。删除现存的 Wine 包:

sudo apt remove winehq-stable wine-stable wine1.6 wine-mono wine-geco winetricks

2.2添加 32 位支持:

sudo dpkg --add-architecture i386

2.3然后添加 GPG 密钥:

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

2.4添加 FAudio 依赖:

sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport

2.5现在为 Wine 存储库创建一个新条目:

 sudo sh -c "echo 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' >> /etc/apt/sources.list.d/winehq.list"

2.6更新软件包列表并安装Wine:

sudo apt update && sudo apt install --install-recommends winehq-stable

3.配置环境

环境配置后就可以安装软件了:

winecfg

为了使用微信,在配置中安装以下两个依赖库:
在这里插入图片描述之后终端输入:

winetricks riched20

在这里插入图片描述

4.下载和安装字体

sudo apt install cabextract
sudo apt install winetricks
winetricks corefonts gdiplus riched20 riched30

5.安装软件

wine 安装包名字

6.卸载软件

 wine uninstaller

参考:
https://www.how2shout.com/linux/how-to-install-wechat-client-on-ubuntu-linux/

https://packages.ubuntu.com/zh-cn/groovy/i386/gcc-10-base/download

https://packages.ubuntu.com/xenial/amd64/libc6-i386/download

https://linux.cn/article-11827-1.html

https://pkgs.org/download/

猜你喜欢

转载自blog.csdn.net/weixin_45885232/article/details/109390734