本地wine不清除什么原因,失效了。这样SI4无法使用,很不方便。
重新安装wine
sudo apt-get install --install-recommends winehq-stable
The following packages have unmet dependencies:
winehq-stable : Depends: wine-stable (= 8.0.1~bionic-1)
E: Unable to correct problems, you have held broken packages.
出现如上报错,尝试多种方式未能解决。
最终选尝试下载wine源码包,本地编译安装的方式,最终完成了wine安装。
编译安装wine-5.0
下载
https://dl.winehq.org/wine/source/5.0/
选择wine-5.0.tar.xz。
解压
tar xvJf wine-5.0.tar.xz
编译安装
cd wine-5.0
./configure
报错: configure: error: FreeType 32-bit development files not found.
sudo apt-get install libfreetype6-dev:i386 libfreetype6-dev
再次执行 ./configure
成功:configure: Finished. Do 'make' to compile Wine.
(可选) 存在一些configure: WARNING,按提示安装相关的库。
sudo apt-get install libxrender-dev:i386
sudo apt-get install libxml2-dev:i386
sudo apt-get install libjpeg-dev:i386
再次执行./configure
减少了一些configure: WARNING。
make
成功:Wine build complete.
sudo make install
安装成功。
which wine
/usr/local/bin/wine
wine --version
wine-5.0
参考:https://blog.csdn.net/wyplj2015/article/details/105365833
使用wine安装SI4
wine sourceinsight4096-setup.exe
wine client error:0: version mismatch 547/595.
Your wineserver binary was not upgraded correctly,
or you have an older one somewhere in your PATH.
Or maybe the wrong wineserver is still running?
出现以上报错。
sudo apt-get remove --purge wine
rm -r ~/.wine
(可选)删除~/.local/share/applications/wine/Programs下相关文件
(可选)删除~/.config/menus/applications-merged下相关文件
再次执行
wine sourceinsight4096-setup.exe
完成安装。
wine字体安装
下载
Index of /ubuntu/pool/universe/w/wine
选择fonts-wine_5.0-3ubuntu1_all.deb。
安装
sudo dpkg -i ./fonts-wine_5.0-3ubuntu1_all.deb
将/usr/share/fonts/下的所需字体,复制到~/.wine/drive_c/windows/Fonts目录。
~/.wine/drive_c/windows/Fonts$ ls
Consolas DroidSansMono FiraCode msyh.ttf source-code-pro YaHeiConsolas.ttf