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
,问题搞定。