OMV 4.x apt install报错


problem

在装完OMV (ver. 4.1.22) 之后,打算用apt装一些软件,然后就遇到如下报错:

Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f81db3bc730>
Traceback (most recent call last):
  File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f81db3bc730>
Traceback (most recent call last):
  File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable

solution

Google搜了一波之后,在 github 上找到了解决方案:

首先打开/usr/lib/python3.5/weakref.py 这个文件:

vim /usr/lib/python3.5/weakref.py

然后把第109行改成

def remove(wr, selfref=ref(self), _atomic_removal=_remove_dead_weakref):

117行改成

_atomic_removal(d, wr.key)

wq保存一下,再试试apt,问题搞定。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM