Kudos on all the hard work Josh and all the contributors!
I just did an inplace upgrade from Ubuntu 18.04 to 20.04
and then from 20.04 to 22.04. ( I know - not recommended, but…)
When the upgrades asks if you want to keep each configuration file (there are many) - I just accepted the default (keep file as is)
Once I was all the way to 22.04, I ran “curl -s https://mailinabox.email/setup.sh | sudo bash”
All went well until the last part when I got this:
FAILED: /usr/local/lib/mailinabox/env/bin/pip install --upgrade pip
Traceback (most recent call last):
File “/usr/local/lib/mailinabox/env/bin/pip”, line 6, in
from pip._internal.cli.main import main
File “/usr/local/lib/mailinabox/env/lib/python3.6/site-packages/pip/_internal/cli/main.py”, line 9, in
from pip._internal.cli.autocompletion import autocomplete
File “/usr/local/lib/mailinabox/env/lib/python3.6/site-packages/pip/_internal/cli/autocompletion.py”, line 10, in
from pip._internal.cli.main_parser import create_main_parser
File “/usr/local/lib/mailinabox/env/lib/python3.6/site-packages/pip/_internal/cli/main_parser.py”, line 8, in
from pip._internal.cli import cmdoptions
File “/usr/local/lib/mailinabox/env/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.py”, line 23, in
from pip._internal.cli.parser import ConfigOptionParser
File “/usr/local/lib/mailinabox/env/lib/python3.6/site-packages/pip/_internal/cli/parser.py”, line 12, in
from pip._internal.configuration import Configuration, ConfigurationError
File “/usr/local/lib/mailinabox/env/lib/python3.6/site-packages/pip/_internal/configuration.py”, line 26, in
from pip._internal.utils.logging import getLogger
File “/usr/local/lib/mailinabox/env/lib/python3.6/site-packages/pip/_internal/utils/logging.py”, line 13, in
from pip._internal.utils.misc import ensure_dir
File “/usr/local/lib/mailinabox/env/lib/python3.6/site-packages/pip/_internal/utils/misc.py”, line 40, in
from pip._internal.locations import get_major_minor_version, site_packages, user_site
File “/usr/local/lib/mailinabox/env/lib/python3.6/site-packages/pip/_internal/locations/init.py”, line 14, in
from . import _distutils, _sysconfig
File “/usr/local/lib/mailinabox/env/lib/python3.6/site-packages/pip/_internal/locations/_distutils.py”, line 9, in
from distutils.cmd import Command as DistutilsCommand
File “/usr/local/lib/mailinabox/env/lib/python3.6/distutils/init.py”, line 25, in
from distutils import dist, sysconfig
ImportError: cannot import name ‘dist’
from another post, I saw someone figured you needed to put in new symlinks for pip3 and python3 in /usr/local/lib/mailinabox/env/bin/
sudo mv pip3 pip3-old
sudo mv python3 python3-old
sudo ln -s /usr/bin/pip3 pip3
sudo ln -s /usr/bin/python3 python3
then I did a reinstall:
sudo mailinabox
All seems to be working well! I post again if I find anything amiss.