16.04 PlayOnLinux无法启动

分享于 

3分钟阅读

ubuntu

  繁體

问题

我尝试通过命令行打开它,它显示:

Looking for python... 2.7.12 - Traceback (most recent call last):
 File"/usr/share/playonlinux/python/check_python.py", line 1, in 
 import os, wxversion
ImportError: No module named wxversion
failed tests
Looking for python2.7... 2.7.12 - Traceback (most recent call last):
 File"/usr/share/playonlinux/python/check_python.py", line 1, in 
 import os, wxversion
ImportError: No module named wxversion
failed tests
Looking for python2.6... 
Looking for python2... 2.7.12 - Traceback (most recent call last):
 File"/usr/share/playonlinux/python/check_python.py", line 1, in 
 import os, wxversion
ImportError: No module named wxversion
failed tests
Please install python before trying to run this program

我尝试使用这里的解决方案,但它不能工作?

Reading package lists... Done
Building dependency tree 
Reading state information... Done
Package python-wxgtk2.8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python-wxgtk2.8' has no installation candidate

sudo apt-get install python-wxtools


答案1

首先你必须找到python 2.7.9的安装位置是/usr/bin/python

在那之后,编辑 /usr/share/playonlinux/bash/find_python (你需要root权限)

替换以下行:

  • next_python"python"
  • next_python"python2.7"
  • 使用next_python"/usr/bin/python"

    保存&退出,再次运行playonlinux


    答案2

    下载lattest PlayOnLinux.deb,并安装:

    
    wget https://www.playonlinux.com/script_files/PlayOnLinux/4.2.10/PlayOnLinux_4.2.10.deb
    
    
    sudo dpkg -i PlayOnLinux_4.2.10.deb
    
    
    
    

    如果安装失败,因为缺少软件包,请使用apt中的-f标志来安装依赖项:

    
    sudo apt -f install
    
    
    
    


    play  运行