Ubuntu 20.04.2 on Digital Ocean; MIAB has been running fine but I can't upgrade

Hello, sorry if this is a dumb question…

I have MIAB running on an Ubuntu 20.04.2 droplet on Digital Ocean. When I try to run the curl setup.sh, I get the error that it must be run on 18.04 or 14.04.

When I originally created this droplet, I know I went with 18.04, and I don’t think I’ve ever manually upgraded, but I must have at some point. Now I’m stuck because I can’t upgrade MIAB. Can I go back without destroying everything and starting over?


hi nttbl,

Make sure you have a backup and you copy over your encrypted backups and the key to a safe place. Test that the you can decrypt the backup!

Then if you really do not have other options before reinstall you can try to do this unsupported modification that is not tested by me! :slight_smile: This is the script that checks on what Ubuntu ver you are on:

/home/[user]/mailinabox/setup/preflight.sh:if [ "lsb_release -d | sed ‘s/.:\s//’ | sed ‘s/18.04.[0-9]/18.04/’ " != "Ubuntu 18.04 LTS" ]; it checks this file content /etc/lsb-release

You can save your original /etc/lsb-release from U2004 and change the content with this:


And rerun the setup script, no guarantees of any sorts!
Make sure you have a working backup & decryption key saved elsewhere!


Alternatively you might move to 18.04 using backup and restore following:

I haven’t tried this myself however.

@latinhypercube and @nttbl backup and restore works just fine. I have done ti before, that was the reason I’m stressing on having a working off-site backups and valid key.

Best way is to do a test-flight - spin a test VM and do the actual restore backup and check that you have healthy key&backups.