New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation script is failing on ubuntu 22.04 #2335
Comments
+1 breaking here with the exact steps and errors. Seems the same as in #2272 but with no solution so no clues |
There is some discussion here that seems to describe the same issue. However, I would first like to get some additional information, like:
Instead of changing code, could you post the original issues (errors, messages, installation output etc) you're facing? |
Exactly same problem for me:
|
Hey @kiekerjan 馃憢 |
To make things work quickly I removed blinker (dpkg -r python3-blinker) and its associated packages, and it worked. Definitively not the ideal method, but good enough for now and for my needs. |
The code in management.sh hasn't changed in many years, and I've confirmed that the paths are correct on my MiaB Ubuntu 22.04. So, I believe the issue is, why did I found this with a quick google search, maybe it will help you to resolve the issue: |
Okay, after a quick review, the tl;dr version is, if you add this to your environment it should fix how the venv is being built:
The setup script only appears to build the virtualenv if the directory is missing, so you will need to first remove that venv directory, |
This worked for me, adding the env var as per @dms00 |
Thanks for the feedback. Glad it worked. I didn't have any way to test this fix because I cannot reproduce this problem on my MiaB server. So, there's more going on here than I understand at this point. |
My bad luck, tonight I decided to test installing mailinabox on a fresh Ubuntu 22.04 (LTS) x64 Digital Ocean instance and have run into the above error. Python3-distutils version 3.10.8-1~22.04 does appear to be installed:
Edit: the instructions to "export DEB_PYTHON_INSTALL_LAYOUT='deb'" fixed the crash. |
Hey Everyone 馃憢 Thanks for helping resolve the issue. |
I've just set the env var on a fresh machine ( didn't even run |
@dms00 suggestion worked like a charm, thanks mate !
|
Closing this issue for now. |
But maybe it should be at least documented somehow? I yesterday also stuck with it and the above solution worked. But it looks like a workaround and not a robust solution. |
And depending on the cause we might want to include a code change to management.sh |
Great sleuthing! We'll set this environment variable automatically in the next Mail-in-a-Box update (see 371f5bc). |
I tried everything I could think of last night. and this happens...still.... ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Upgrading to Nextcloud version 24.0.7 Nextcloud is already latest version FAILED: /usr/local/lib/mailinabox/env/bin/pip install --upgrade pipsetup/functions.sh: line 17: /usr/local/lib/mailinabox/env/bin/pip: No such file or directory |
you should run with the option --preserve-env #sudo --preserve-env curl -L https://power-mailinabox.net/setup.sh | sudo --preserve-env bash in my case it was like this: |
--= THIS WORKED FOR ME==-- #export DEB_PYTHON_INSTALL_LAYOUT='deb' Thank you all. |
After a "successful installation", I get a new error on the Admin Backup page. |
It is still failing for me. I tried the solutions proposed
Still fails at
Can't install Mailinabox on Ubuntu 22.04 |
Hello If i relanch the script after a FAILED: /usr/local/lib/mailinabox/env/bin/pip install --upgrade pipsetup/functions.sh: line 19: /usr/local/lib/mailinabox/env/bin/pip: No such file or directory
|
I just repeated the experiment...baremetal...tried Ubuntu server 23...but Dave hasn't addressed 23 yet...so, I loaded Ubuntu Server 20.04 Only commands given prior to installation was to change the root password. I ran the standard install procedure, and everything appears to be working just fine...seems that Jammy just broke itself. Bummer. So, at lease I have an option. ( I have a large project where I will be loading up a few dozen iterations of PMIAB..so I was about to panic.) I have run all updates, and nothing appears broken. |
Just as a quick note for people trying the above mentioned fix. So, get a VM, connect, run |
Quick note if still getting error - /usr/local/lib/mailinabox/env/bin/pip: No such file or directory
These 3 steps should run the installation without errors |
Remove Current Python Enviroment and then re create it and try running the script again. Worked for me rm -rf /usr/local/lib/mailinabox/env >> REMOVE ENVIROMENT apt install python3.10-venv >> DOWNLOAD VENV python3 -m venv /usr/local/lib/mailinabox/env >> CREATE NEW VIRTUAL ENV Run the Script Again, It definitely should work, i updated 5 mail servers all of them faced this problem and i fixed all of them like this. |
First of all thanks for the awesome project 馃憢
I've previously install MIAB on ubuntu 22.04 LTS, almost 4-5 months back. But now it's failing.
There are multiple issues and some solutions that I did for them -
virtualenv
installation folders, path have changed. Hence now this is failing atsetup/management.sh
line number 34 & 39.I fixed this by adding the correct path like this -
However, I am getting into this error -
Has someone faced a similar issue ?
OS version
The text was updated successfully, but these errors were encountered: