I upgraded from Ubuntu 18 to 22 and installed V60 (I see now this isn’t recommended).
I’m fortunately still able to receive and send mail from my phone, but trying to access box.mydomain.com/admin results in some DNS error: DNS address could not be found.
The setup script mailinabox printed some errors:
sudo: unable to resolve host box.mydomain.com: Temporary failure in name resolution
setup/functions.sh: line 9: 68519 Aborted (core dumped) “$@” &> $OUTPUT
FAILED: /usr/local/lib/mailinabox/env/bin/pip install --upgrade pip
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named ‘encodings’
I’m a little confused by this error. Regular pip seems to work fine, but /usr/local/lib/mailinabox/env/bin/pip produces this error. Anyone have any suggestions?
Hi Sketch, I also opted to do an in-place upgrade from 18 to 22 and then an install of v60. It was a bumpy ride but I’ve got it going now, and I saw this same problem. To fix it:
# Enter mailinabox bin directory
cd /usr/local/lib/mailinabox/env/bin/
# Rename provided binaries
mv pip3 pip3-old
mv python3 python3-old
# Symlink in system binaries
ln -s /usr/bin/pip3 pip3
ln -s /usr/bin/python3 python3
# Install again
sudo mailinabox