System Update failes because of __pycache__ file

DamBedEi

Cadet
Joined
Apr 2, 2020
Messages
1
Hi,

I can't apply a pending system update.
The update failes because of the following reason:
Code:
[freenas-update:253] Unable to apply update: Cannot remove file /usr/local/lib/python3.6/site-packages/Crypto/Util/__pycache__/Counter.cpython-36.pyc


I'm currently using FreeBSD 11.2-STABLE (FreeNAS.amd64) #0 r325575+6aad246318c(HEAD): Mon Jun 24 17:25:47 UTC 2019
According to the WebGUI > System > Update my update Train is FreeNAS-11.2-STABLE - Release Train for FreeNAS 11.2.

I also tried to delete the file manually, but it can't even be listed in the folder mentioned in the error code:
Code:
# ls -la /usr/local/lib/python3.6/site-packages/Crypto/Util/__pycache__/
ls: Counter.cpython-36.pyc: Unknown error: 122
total 105
-rw-r--r--  1 root  wheel    1095 Apr  2 13:57 __init__.cpython-36.pyc
-rw-r--r--  1 root  wheel     829 Apr  2 13:57 _file_system.cpython-36.pyc
-rw-r--r--  1 root  wheel    2567 Apr  2 13:57 _number_new.cpython-36.pyc
-rw-r--r--  1 root  wheel    7046 Apr  2 13:57 _raw_api.cpython-36.pyc
drwxr-xr-x  2 root  wheel      10 Apr  2 14:25 .
drwxr-xr-x  3 root  wheel      17 Sep  5  2019 ..
-rw-r--r--  1 root  wheel  111513 Apr  2 13:57 number.cpython-36.pyc
-rw-r--r--  1 root  wheel    4556 Apr  2 13:57 py3compat.cpython-36.pyc
-rw-r--r--  1 root  wheel    1796 Apr  2 13:57 strxor.cpython-36.pyc


Deleting it manually failed as well:
Code:
# rm -f /usr/local/lib/python3.6/site-packages/Crypto/Util/__pycache__/Counter.cpython-36.pyc
rm: /usr/local/lib/python3.6/site-packages/Crypto/Util/__pycache__/Counter.cpython-36.pyc: Unknown error: 122


Any ideas how this can be fixed?
Thanks a lot for your help in advance.

My HW-Specs:
Motherboard: ASRock J4105-ITX
RAM: 8GB
HDD: 2x WD Red 8TB NAS HDD
 
Top