Apologies if I've missed a post that deals with this already - I took a look but couldn't spot anything addressing this problem. I'm running OMV 6.9.16-1 Shaitan on an old Raspberry Pi 3 with a couple of external drives attached for storage. While it's been running relatively well, I've had two recent problems.
First, I'm unable to update package python3-pkg-resources 52.0.0-4+deb11u1 using the OMV6 update interface. When I try I get the following error message:
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
python3-pkg-resources
apt-listchanges: Reading changelogs...
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/190 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 47965 files and directories currently installed.)
Preparing to unpack .../python3-pkg-resources_52.0.0-4+deb11u1_all.deb ...
SyntaxError: Non-UTF-8 code starting with '\xde' in file /usr/bin/py3clean on line 20, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
dpkg: warning: old python3-pkg-resources package pre-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
SyntaxError: Non-UTF-8 code starting with '\xde' in file /usr/bin/py3clean on line 20, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
dpkg: error processing archive /var/cache/apt/archives/python3-pkg-resources_52.0.0-4+deb11u1_all.deb (--unpack):
new python3-pkg-resources package pre-removal script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/python3-pkg-resources_52.0.0-4+deb11u1_all.deb
Display More
Second, I installed an additional external HDD and accidentally chose the wrong shared folder for my Samba connection. I'm unable to figure out what I need to turn off in order to delete the connection (have switched off Portainer, SMB, etc. with no success), which is a bit annoying. However, I saw that OMV7.x has a Reset Permissions Plugin, so figured it would be easier to simply backup my Pi's SD card and upgrade the entire setup to OMV7.
Unfortunately, when I try to run omv-release-upgrade, I get the same python3 package error as above. I've no idea how to fix the problem - there's a URL in the error message, but being a novice to all this I couldn't figure out what troubleshooting steps I need to do to fix (what I assume to be) the syntax error and successfully install python3/OMV7.x.
Grateful for any guidance others may have to address this problem!