I changed the two lines on weakref.py and it did help for a while. But since OMV 4..0.16 I am having these two issues when running apt update and apt upgrade. Openmediavault package is not properly updated.
Python
apt update
Get:1 file:/var/cache/openmediavault/archives InRelease
Ign:1 file:/var/cache/openmediavault/archives InRelease
Get:2 file:/var/cache/openmediavault/archives Release
Ign:2 file:/var/cache/openmediavault/archives Release
Get:3 file:/var/cache/openmediavault/archives Packages
Ign:3 file:/var/cache/openmediavault/archives Packages
Get:4 file:/var/cache/openmediavault/archives Translation-en_US
Ign:4 file:/var/cache/openmediavault/archives Translation-en_US
Get:5 file:/var/cache/openmediavault/archives Translation-en
Ign:5 file:/var/cache/openmediavault/archives Translation-en
Get:3 file:/var/cache/openmediavault/archives Packages
Ign:3 file:/var/cache/openmediavault/archives Packages
Get:4 file:/var/cache/openmediavault/archives Translation-en_US
Ign:4 file:/var/cache/openmediavault/archives Translation-en_US
Get:5 file:/var/cache/openmediavault/archives Translation-en
Ign:5 file:/var/cache/openmediavault/archives Translation-en
Get:3 file:/var/cache/openmediavault/archives Packages
Ign:3 file:/var/cache/openmediavault/archives Packages
Get:4 file:/var/cache/openmediavault/archives Translation-en_US
Ign:4 file:/var/cache/openmediavault/archives Translation-en_US
Get:5 file:/var/cache/openmediavault/archives Translation-en
Ign:5 file:/var/cache/openmediavault/archives Translation-en
Get:3 file:/var/cache/openmediavault/archives Packages
Ign:3 file:/var/cache/openmediavault/archives Packages
Get:4 file:/var/cache/openmediavault/archives Translation-en_US
Ign:4 file:/var/cache/openmediavault/archives Translation-en_US
Get:5 file:/var/cache/openmediavault/archives Translation-en
Ign:5 file:/var/cache/openmediavault/archives Translation-en
Get:3 file:/var/cache/openmediavault/archives Packages
Ign:3 file:/var/cache/openmediavault/archives Packages
Get:4 file:/var/cache/openmediavault/archives Translation-en_US
Ign:4 file:/var/cache/openmediavault/archives Translation-en_US
Get:5 file:/var/cache/openmediavault/archives Translation-en
Ign:5 file:/var/cache/openmediavault/archives Translation-en
Get:3 file:/var/cache/openmediavault/archives Packages
Get:4 file:/var/cache/openmediavault/archives Translation-en_US
Ign:4 file:/var/cache/openmediavault/archives Translation-en_US
Get:5 file:/var/cache/openmediavault/archives Translation-en
Ign:5 file:/var/cache/openmediavault/archives Translation-en
Ign:6 http://ftp.pt.debian.org/debian stretch InRelease
Get:7 http://ftp.pt.debian.org/debian stretch-updates InRelease [91.0 kB]
Hit:8 http://ftp.pt.debian.org/debian stretch Release
Hit:9 http://packages.openmediavault.org/public arrakis InRelease
Get:10 http://security.debian.org stretch/updates InRelease [63.0 kB]
Hit:11 http://packages.openmediavault.org/public arrakis-proposed InRelease
Hit:15 https://openmediavault.github.io/packages arrakis InRelease
Ign:16 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch InRelease
Get:12 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease [91.8 kB]
Get:14 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease [91.8 kB]
Ign:17 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-testing stretch InRelease
Hit:18 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch Release
Get:19 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages.diff/Index [27.8 kB]
Get:20 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages 2018-02-13-1426.03.pdiff [486 B]
Hit:21 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-testing stretch Release
Get:20 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages 2018-02-13-1426.03.pdiff [486 B]
Get:23 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages.diff/Index [27.8 kB]
Get:24 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages 2018-02-13-1426.03.pdiff [486 B]
Get:24 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages 2018-02-13-1426.03.pdiff [486 B]
Fetched 302 kB in 0s (320 kB/s)
Traceback (most recent call last):
File "/usr/sbin/omv-mkaptidx", line 35, in <module>
import apt
File "/usr/lib/python3/dist-packages/apt/__init__.py", line 26, in <module>
from apt.package import Package
File "/usr/lib/python3/dist-packages/apt/package.py", line 28, in <module>
import socket
File "/usr/lib/python3.5/socket.py", line 53, in <module>
from enum import IntEnum
File "/usr/lib/python3.5/enum.py", line 3, in <module>
from types import MappingProxyType, DynamicClassAttribute
File "/usr/lib/python3.5/types.py", line 166, in <module>
import functools as _functools
File "/usr/lib/python3.5/functools.py", line 23, in <module>
from weakref import WeakKeyDictionary
File "/usr/lib/python3.5/weakref.py", line 118
_atomic_removal(d, wr.key)
^
IndentationError: unindent does not match any outer indentation level
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
root@sirius:~# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
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.
Do you want to continue? [Y/n] y
Setting up openmediavault (4.0.19-1) ...
Updating configuration database ...
Traceback (most recent call last):
File "/usr/sbin/omv-confdbadm", line 24, in <module>
import openmediavault.confdbadm
File "/usr/lib/python3/dist-packages/openmediavault/confdbadm.py", line 25, in <module>
import argparse
File "/usr/lib/python3.5/argparse.py", line 87, in <module>
import copy as _copy
File "/usr/lib/python3.5/copy.py", line 51, in <module>
import types
File "/usr/lib/python3.5/types.py", line 166, in <module>
import functools as _functools
File "/usr/lib/python3.5/functools.py", line 23, in <module>
from weakref import WeakKeyDictionary
File "/usr/lib/python3.5/weakref.py", line 118
_atomic_removal(d, wr.key)
^
IndentationError: unindent does not match any outer indentation level
dpkg: error processing package openmediavault (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
openmediavault
Traceback (most recent call last):
File "/usr/sbin/omv-mkaptidx", line 35, in <module>
import apt
File "/usr/lib/python3/dist-packages/apt/__init__.py", line 26, in <module>
from apt.package import Package
File "/usr/lib/python3/dist-packages/apt/package.py", line 28, in <module>
import socket
File "/usr/lib/python3.5/socket.py", line 53, in <module>
from enum import IntEnum
File "/usr/lib/python3.5/enum.py", line 3, in <module>
from types import MappingProxyType, DynamicClassAttribute
File "/usr/lib/python3.5/types.py", line 166, in <module>
import functools as _functools
File "/usr/lib/python3.5/functools.py", line 23, in <module>
from weakref import WeakKeyDictionary
File "/usr/lib/python3.5/weakref.py", line 118
_atomic_removal(d, wr.key)
^
IndentationError: unindent does not match any outer indentation level
E: Sub-process /usr/bin/dpkg returned an error code (1)
Display More