I am having an issue with omv-update. I get error that python-samba is not fully installed
Code
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up python-samba (2:4.5.12+dfsg-2+deb9u4) ...
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/py_compile.py", line 181, in <module>
sys.exit(main())
File "/usr/lib/python2.7/py_compile.py", line 163, in main
compile(filename, doraise=True)
File "/usr/lib/python2.7/py_compile.py", line 134, in compile
os.rename(path_tmp, cfile)
OSError: [Errno 21] Is a directory
dpkg: error processing package python-samba (--configure):
subprocess installed post-installation script returned error exit status 101
Errors were encountered while processing:
python-samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
Alles anzeigen
I have tried the following commands with no success
1.) omv-aptclean
2.) omv-update
3.) apt-get -f install
4.) apt-get autoclean
5.) dpkg --force-all -i python-samba_4.5.12+dfsg-2+deb9u4_amd64.deb
6.) dpkg --configure -a
They all come up with the same error
Code
root@omv:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up python-samba (2:4.5.12+dfsg-2+deb9u4) ...
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/py_compile.py", line 181, in <module>
sys.exit(main())
File "/usr/lib/python2.7/py_compile.py", line 163, in main
compile(filename, doraise=True)
File "/usr/lib/python2.7/py_compile.py", line 134, in compile
os.rename(path_tmp, cfile)
OSError: [Errno 21] Is a directory
dpkg: error processing package python-samba (--configure):
subprocess installed post-installation script returned error exit status 101
Errors were encountered while processing:
python-samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
Alles anzeigen
Code
root@omv:~# dpkg --force-all -i python-samba_4.5.12+dfsg-2+deb9u4_amd64.deb
(Reading database ... 89658 files and directories currently installed.)
Preparing to unpack python-samba_4.5.12+dfsg-2+deb9u4_amd64.deb ...
E: pyclean:64: cannot remove /usr/lib/python2.7/dist-packages/samba/third_party/iso8601/test_iso8601.pyc
E: pyclean:64: cannot remove /usr/lib/python2.7/dist-packages/samba/third_party/__init__.pyc
Unpacking python-samba (2:4.5.12+dfsg-2+deb9u4) over (2:4.5.12+dfsg-2+deb9u4) ...
Setting up python-samba (2:4.5.12+dfsg-2+deb9u4) ...
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/py_compile.py", line 181, in <module>
sys.exit(main())
File "/usr/lib/python2.7/py_compile.py", line 163, in main
compile(filename, doraise=True)
File "/usr/lib/python2.7/py_compile.py", line 134, in compile
os.rename(path_tmp, cfile)
OSError: [Errno 21] Is a directory
dpkg: error processing package python-samba (--install):
subprocess installed post-installation script returned error exit status 101
Errors were encountered while processing:
python-samba
root@omv:~#
Alles anzeigen
Code
root@omv:~# dpkg --configure -a
Setting up python-samba (2:4.5.12+dfsg-2+deb9u4) ...
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/py_compile.py", line 181, in <module>
sys.exit(main())
File "/usr/lib/python2.7/py_compile.py", line 163, in main
compile(filename, doraise=True)
File "/usr/lib/python2.7/py_compile.py", line 134, in compile
os.rename(path_tmp, cfile)
OSError: [Errno 21] Is a directory
dpkg: error processing package python-samba (--configure):
subprocess installed post-installation script returned error exit status 101
Errors were encountered while processing:
python-samba
Alles anzeigen
Any help would be greatly welcomed