Hello,
First of all I apologize for any information that is missing as I am a true BEGINNER, I only used this Raspi for Pi-Hole and Homebridge... sorry.
Currently on a Raspberry Pi 3 running Raspbian OS, everything upgraded and updated to the latest as of today, April 18th.
I think I broke my omv code because now nothing works, when I access where the UI is supposed to be I get the following error:
Code
Error #0:
InvalidArgumentException: The environment variable 'OMV_CACHE_DIR' does not exist. in /usr/share/php/openmediavault/environment.inc:47
Stack trace:
#0 /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc(190): OMV\Environment::get('OMV_CACHE_DIR')
#1 /var/www/openmediavault/index.php(46): OMV\ControlPanel\ControlPanelAbstract->render()
#2 {main}
Also, when I try to remove the software to install again I get the following error:
Code
root@raspberrypi:~# sudo apt-get remove openmediavault
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
beep chrony collectd collectd-core cpufrequtils cron-apt dctrl-tools dmeventd hdparm jfsutils jq libcpufreq0 libdevmapper-event1.02.1 libhiredis0.14
libjavascript-minifier-xs-perl libjq1 libjs-extjs6 libjson-perl liblocale-po-perl liblvm2cmd2.03 libmemcached11 libmemcachedutil2 libnss-myhostname libonig5 lvm2 netplan.io
nfs-kernel-server nginx php-bcmath php-fpm php-mbstring php-pam php-yaml php7.3-bcmath php7.3-fpm php7.3-mbstring proftpd-basic proftpd-mod-vroot python-dnspython
python3-cached-property python3-dateutil python3-dialog python3-msgpack python3-natsort python3-netifaces python3-pycryptodome python3-pyudev python3-systemd python3-yaml
python3-zmq quotatool rrdcached salt-common salt-minion samba samba-vfs-modules sdparm smartmontools socat sshpass tdb-tools wsdd xmlstarlet
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
openmediavault openmediavault-flashmemory openmediavault-omvextrasorg
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 10.4 MB disk space will be freed.
Do you want to continue? [Y/n] Y
sh: 1: .: Can't open /etc/default/openmediavault
E: Problem executing scripts DPkg::Pre-Invoke '. /etc/default/openmediavault; if [ ! -e ${OMV_DPKGARCHIVE_DIR}/Packages ]; then echo Building local package repository ...; cd ${OMV_DPKGARCHIVE_DIR} && apt-ftparchive packages . > Packages && apt-ftparchive release . > Release; fi'
E: Sub-process returned an error code
Display More
And if I just try to install I get this error:
Code
Saving to: ‘openmediavault-omvextrasorg_latest_all5.deb’
openmediavault-omvextrasorg_latest_all5.deb 100%[===========================================================================================>] 65.48K --.-KB/s in 0.02s
2021-04-18 23:37:20 (3.14 MB/s) - ‘openmediavault-omvextrasorg_latest_all5.deb’ saved [67056/67056]
dpkg: warning: files list file for package 'postfix' missing; assuming package has no files currently installed
(Reading database ... 123692 files and directories currently installed.)
Preparing to unpack openmediavault-omvextrasorg_latest_all5.deb ...
Unpacking openmediavault-omvextrasorg (5.6) over (5.6) ...
/var/lib/dpkg/info/openmediavault-omvextrasorg.postrm: 20: .: Can't open /etc/default/openmediavault
dpkg: warning: old openmediavault-omvextrasorg package post-removal script subprocess returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/postrm: 20: .: Can't open /etc/default/openmediavault
dpkg: error processing archive openmediavault-omvextrasorg_latest_all5.deb (--install):
new openmediavault-omvextrasorg package post-removal script subprocess returned error exit status 127
/var/lib/dpkg/tmp.ci/postrm: 20: .: Can't open /etc/default/openmediavault
dpkg: error while cleaning up:
new openmediavault-omvextrasorg package post-removal script subprocess returned error exit status 127
Errors were encountered while processing:
openmediavault-omvextrasorg_latest_all5.deb
Installing other dependencies ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/67.1 kB of archives.
After this operation, 0 B of additional disk space will be used.
sh: 1: .: Can't open /etc/default/openmediavault
E: Problem executing scripts DPkg::Pre-Invoke '. /etc/default/openmediavault; if [ ! -e ${OMV_DPKGARCHIVE_DIR}/Packages ]; then echo Building local package repository ...; cd ${OMV_DPKGARCHIVE_DIR} && apt-ftparchive packages . > Packages && apt-ftparchive release . > Release; fi'
E: Sub-process returned an error code
Updating repos ...
Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
Display More
Thank you for any help you can provide.
I am worried about reinstalling my entire Raspbian OS.
I am NOT WORRIED of loosing data of my previos OMV configuration.