安装在 15.10 上运行的损坏的软件包补丁

安装在 15.10 上运行的损坏的软件包补丁

我正在尝试安装名为帕奇- 图像处理应用程序,在 16.04 版上有一个 bug已报告并确认,它就是无法启动。在 15.10 上它运行良好。

我可以从 15.10 版本的镜像中安装它吗phatch?在修复错误之前,有没有办法让这个应用程序在 16.04 上运行?

我尝试将此行添加到我的 /etc/apt/sources.list

deb http://de.archive.ubuntu.com/ubuntu wily main universe

我确实删除了该应用程序并再次安装了它:

$sudo apt-get update
$sudo apt-get autoremove phatch
$sudo apt-get install phatch

我也尝试使用 apt 的 -t 参数:$sudo apt-get -t wily install phatch没有结果。

在尝试替代方法时,它允许我安装一些较低版本的 phatch 依赖项,而之前从 xenial 版本开始我就不允许这样做,但应用程序不起作用,错误看起来相同:

~$ phatch 
/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py:8196: GtkWarning: gtk_disable_setlocale() must be called before gtk_init()
  return _core_.PyApp__BootstrapApp(*args, **kwargs)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 16765, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "/usr/share/phatch/phatch/pyWx/gui.py", line 1218, in show_frame
    frame = Frame(self.filename, None, -1, ct.TITLE)
  File "/usr/share/phatch/phatch/pyWx/gui.py", line 327, in __init__
    frame.Frame.__init__(self, *args, **keyw)
  File "/usr/share/phatch/phatch/pyWx/wxGlade/frame.py", line 141, in __init__
    self.tree = Tree(self, -1, style=wx.TR_HAS_BUTTONS|wx.TR_NO_LINES|wx.TR_FULL_ROW_HIGHLIGHT|wx.TR_HIDE_ROOT|wx.TR_DEFAULT_STYLE|wx.SUNKEN_BORDER)
  File "/usr/share/phatch/phatch/pyWx/wxGlade/frame.py", line 26, in __init__
    set_dirty   = parent.set_dirty,
  File "/usr/share/phatch/phatch/lib/pyWx/treeEdit.py", line 96, in __init__
    self.CreateImageList(icon_size)
  File "/usr/share/phatch/phatch/lib/pyWx/treeEdit.py", line 111, in CreateImageList
    self._AddFormToImageList(form, icon_size, icon_disabled)
  File "/usr/share/phatch/phatch/lib/pyWx/treeEdit.py", line 120, in _AddFormToImageList
    wx_image = pil_wxImage(wxImage_pil(wx_image).resize(icon_size,\
  File "/usr/share/phatch/phatch/lib/pyWx/wxPil.py", line 46, in wxImage_pil
    image.fromstring(wx_image.GetData())
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 746, in fromstring
    "Please call frombytes() instead.")
Exception: fromstring() has been removed. Please call frombytes() instead.

Wily 和 Xenial 都安装相同版本phatch- 0.2.7。

答案1

我更新到 16.04 后遇到了同样的问题,在这里我找到了一个修复程序,它对我有用! https://bugs.launchpad.net/phatch/+bug/1538906/comments/4

相关内容