I'm trying to install OMV5 on my RasPi3B. I sticked precisely to this official guide. The error occurs at the installation script:
Installing openmediavault...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed: openmediavault
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1696 kB of archives.
After this operation, 9389 kB of additional disk space will be used.
Traceback (most recent call last): File "/usr/bin/apt-listchanges", line 30, in <module> import apt_pkg
ImportError: /usr/lib/python3/dist-packages/apt_pkg.cpython-37m-arm-linux-gnueabihf.so: cannot open shared object file: No such file or directory
Preconfiguring packages ...
Selecting previously unselected package openmediavault.
(Reading database ... 56741 files and directories currently installed.)
Preparing to unpack .../openmediavault_5.3.10-1_all.deb ...
Unpacking openmediavault (5.3.10-1) ...
Setting up openmediavault (5.3.10-1) ...
Creating users/groups ...
Updating local package archive ...
Updating service units ...
Created symlink /etc/systemd/system/multi-user.target.wants/openmediavault-beep-up.service → /lib/systemd/system/openmediavault-beep-up.service.
Created symlink /etc/systemd/system/reboot.target.wants/openmediavault-beep-down.service → /lib/systemd/system/openmediavault-beep-down.service.
Created symlink /etc/systemd/system/halt.target.wants/openmediavault-beep-down.service → /lib/systemd/system/openmediavault-beep-down.service.
Created symlink /etc/systemd/system/poweroff.target.wants/openmediavault-beep-down.service → /lib/systemd/system/openmediavault-beep-down.service.
Created symlink /etc/systemd/system/multi-user.target.wants/openmediavault-cleanup-monit.service → /lib/systemd/system/openmediavault-cleanup-monit.service.
Created symlink /etc/systemd/system/multi-user.target.wants/openmediavault-cleanup-php.service → /lib/systemd/system/openmediavault-cleanup-php.service.
Created symlink /etc/systemd/system/multi-user.target.wants/openmediavault-engined.service → /lib/systemd/system/openmediavault-engined.service.
Created symlink /etc/systemd/system/getty.target.wants/openmediavault-issue.service → /lib/systemd/system/openmediavault-issue.service.
Creating configuration database ...
Setting up Salt environment ...
Traceback (most recent call last): File "/usr/bin/salt-call", line 11, in <module> salt_call() File "/usr/lib/python3/dist-packages/salt/scripts.py", line 426, in salt_call import salt.cli.call File "/usr/lib/python3/dist-packages/salt/cli/call.py", line 8, in <module> import salt.cli.caller File "/usr/lib/python3/dist-packages/salt/cli/caller.py", line 18, in <module> import salt.loader File "/usr/lib/python3/dist-packages/salt/loader.py", line 59, in <module> import pkg_resources
ValueError: source code string cannot contain null bytes
dpkg: error processing package openmediavault (--configure): installed openmediavault package post-installation script subprocess returned error exit status 1
Processing triggers for rsyslog (8.1901.0-1) ...
Errors were encountered while processing: openmediavault
E: Sub-process /usr/bin/dpkg returned an error code (1)
failed to install openmediavault package.
Display More
I tried the installation already two times with two different SD cards (one new, one used before) and I tried these commands but without effect (unordered):
sudo apt install openmediavault
sudo dpkg --configure -a
sudo apt install -f
sudo apt remove
sudo apt remove --purge openmediavault
sudo apt clean
sudo apt upgrade
sudo dpkg -P openmediavault
Do you have any ideas? Many thanks in advance.
P.S.: I fixed the first error ImportError: /usr/lib/python3/dist-packages/apt_pkg.cpython-37m-arm-linux-gnueabihf.so: cannot open shared object file: No such file or directory by running this command: sudo apt-get install --reinstall python3-apt. The main error remains.