Hi everyone,
I've been strugling for the past week with one of my NAS running OMV 4 being unable to upgrade packets anymore (while my second one did not have any issue). Everything I tried failed and the following actions always fail currently :
- Trying to upgrade via OMV GUI or CLI withapt-get upgrade or apt upgrade
- Trying to install/remove packets via the GUI or CLI
When I try to upgrade via the CLI, I get the following messages :
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
Ign:4 file:/var/cache/openmediavault/archives Translation-en
Get:5 file:/var/cache/openmediavault/archives Translation-fr
Ign:5 file:/var/cache/openmediavault/archives Translation-fr
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
Ign:4 file:/var/cache/openmediavault/archives Translation-en
Get:5 file:/var/cache/openmediavault/archives Translation-fr
Ign:5 file:/var/cache/openmediavault/archives Translation-fr
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
Ign:4 file:/var/cache/openmediavault/archives Translation-en
Get:5 file:/var/cache/openmediavault/archives Translation-fr
Ign:5 file:/var/cache/openmediavault/archives Translation-fr
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
Ign:4 file:/var/cache/openmediavault/archives Translation-en
Get:5 file:/var/cache/openmediavault/archives Translation-fr
Ign:5 file:/var/cache/openmediavault/archives Translation-fr
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
Ign:4 file:/var/cache/openmediavault/archives Translation-en
Get:5 file:/var/cache/openmediavault/archives Translation-fr
Ign:5 file:/var/cache/openmediavault/archives Translation-fr
Get:3 file:/var/cache/openmediavault/archives Packages
Get:4 file:/var/cache/openmediavault/archives Translation-en
Ign:4 file:/var/cache/openmediavault/archives Translation-en
Get:5 file:/var/cache/openmediavault/archives Translation-fr
Ign:5 file:/var/cache/openmediavault/archives Translation-fr
Ign:6 http://deb.debian.org/debian stretch InRelease
Hit:7 http://deb.debian.org/debian stretch-updates InRelease
Hit:8 http://deb.debian.org/debian stretch-backports InRelease
Hit:9 http://security.debian.org stretch/updates InRelease
Hit:10 http://packages.openmediavault.org/public arrakis InRelease
Ign:11 http://webmin.mirror.somersettechsolutions.co.uk/repository sarge InRelease
Hit:12 http://deb.debian.org/debian stretch Release
Hit:13 https://openmediavault.github.io/packages arrakis InRelease
Hit:14 https://download.docker.com/linux/debian stretch InRelease
Hit:15 http://webmin.mirror.somersettechsolutions.co.uk/repository sarge Release
Hit:16 https://downloads.plex.tv/repo/deb ./public InRelease
Ign:17 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch InRelease
Ign:18 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-plex stretch InRelease
Ign:19 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-docker stretch InRelease
Get:20 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch Release [4389 B]
Hit:20 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch Release
Hit:21 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
Get:22 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-plex stretch Release [3540 B]
Hit:22 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-plex stretch Release
Ign:23 http://download.webmin.com/download/repository sarge InRelease
Get:25 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-docker stretch Release [3540 B]
Hit:25 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-docker stretch Release
Hit:27 http://download.webmin.com/download/repository sarge Release
Reading package lists... Done
Building dependency tree
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
Alles anzeigen
I then try apt upgrade :
apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python-samba : Depends: libwbclient0 (= 2:4.5.12+dfsg-2+deb9u4) but 2:4.5.16+dfsg-1 is installed
Depends: samba-libs (= 2:4.5.12+dfsg-2+deb9u4) but 2:4.5.16+dfsg-1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
As recommended, I try "apt --fix-broken install" :
apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
python-dnspython python-samba
Suggested packages:
python-gpgme
The following packages will be upgraded:
python-dnspython python-samba
2 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
4 not fully installed or removed.
Need to get 1464 kB of archives.
After this operation, 4096 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian stretch/main amd64 python-dnspython all 1.15.0-1+deb9u1 [102 kB]
Get:2 http://deb.debian.org/debian stretch/main amd64 python-samba amd64 2:4.5.16+dfsg-1 [1362 kB]
Fetched 1464 kB in 0s (8215 kB/s)
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
Reading changelogs... Done
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr_FR.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 111426 files and directories currently installed.)
Preparing to unpack .../python-dnspython_1.15.0-1+deb9u1_all.deb ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/python-dnspython_1.15.0-1+deb9u1_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../python-samba_2%3a4.5.16+dfsg-1_amd64.deb ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/python-samba_2%3a4.5.16+dfsg-1_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/python-dnspython_1.15.0-1+deb9u1_all.deb
/var/cache/apt/archives/python-samba_2%3a4.5.16+dfsg-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Alles anzeigen
(nevermind the language error, i changed it just to get english error messages to post here, but the overall error was the same before i changed anything).
It appears something is wrong with python-samba and python-dnspython.
I have tried apt clear and other advices i got on a french forum (https://debian-facile.org/viewtopic.php?id=23753 if you wanna check out) but nothing worked and I feel stucked . I have a dd backup before the error appeared, but I wonder if something could be fixed without using it or if there's no workaround ?
Do you guys have any suggestions I could try ?
Thanks !