![升级到 18.04 后 Wine 不再起作用](https://linux22.com/image/923114/%E5%8D%87%E7%BA%A7%E5%88%B0%2018.04%20%E5%90%8E%20Wine%20%E4%B8%8D%E5%86%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
升级到 Ubuntu 18 后,我无法再在 wine 中运行任何程序。以下是我尝试通过终端调用 wine 时的输出。有什么想法吗?
gary@zen:/media/gary/files/wine/drive_c/Games/Railroad Tycoon/II$ wine RT2_TSC.EXE err:wincodecs:PngEncoder_CreateInstance Failed writing PNG because unable to find libpng12.so.0 fixme:ole:CoCreateInstanceEx no instance created for interface {00000103-a8f2-4877-ba0a-fd2b6645fb94} of class {27949969-876a-41d7-9447-568f6a35a4dc}, hres is 0x80004005 err:menubuilder:convert_to_native_icon error 0x80004005 creating bitmap encoder
答案1
您可以从 Ubuntu 16.04 LTS 手动下载 LibPNG 1.2 软件包存储库并使用以下命令安装它们:
cd ~/Downloads
wget http://security.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_i386.deb
sudo apt-get install ./libpng12-*.deb
答案2
我最终将 Ubuntu 升级到了开发版本,之后 Wine 又开始工作了。我不知道为什么,但确实如此。