# Trying to migrate from a box running Ubuntu 18.04 to one running 22.04

**URL:** <https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721>\
**Category:** Maintenance\
**Created:** [March 30, 2024, 1:05am UTC](https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721 "2024-03-30T01:05:39Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![kimusan](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/kimusan/32/423_2.png) [@kimusan](https://discourse.mailinabox.email/u/kimusan)\
**Post date:** [April 2, 2024, 7:05am UTC](https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721/11 "2024-04-02T07:05:42Z")

</div>

I just did a similar upgrade last night from 18.04 to 22.04 LTS. No real problems.

First make sure all 18.04 packages are fully updated and that you have the latest MIAB version for 18.04 (I believe it was 0.57b)

Then follow these steps from @mouse 🙂

> [@Version 60 for Ubuntu 22.04 is released](https://discourse.mailinabox.email/t/version-60-for-ubuntu-22-04-is-released/9558/46):
>
> Just wanted to add another confirmation, in place upgrade worked, had to run LTS upgrade twice to get to 22.04 and the above operation mentioned by Wherewolf before running setup script and it all went smoothly. Didn’t have to restore backup with duplicity or anything. Full operation I performed # backed up as mentioned in box migration instructions just incase curl -s https://mailinabox.email/setup.sh | sudo bash sudo apt update sudo apt upgrade reboot sudo nano /etc/update-manager/release…

If you, during the final update of MIAB, hits an error about some python “blinker”, the do the following:

```auto
apt remove python3-blinker
sudo /usr/local/lib/mailinabox/env/bin/pip install --upgrade rtyaml "email_validator>=1.0.0" "exclusiveprocess" flask dnspython python-dateutil expiringdict gunicorn qrcode[pil] pyotp "idna>=2.0.0" "cryptography==37.0.2" psutil postfix-mta-sts-resolver b2sdk boto3

```

Then run the mailinabox installation again and it should all go smoothly

---

_[View the full topic](https://discourse.mailinabox.email/t/trying-to-migrate-from-a-box-running-ubuntu-18-04-to-one-running-22-04/11721)._
