# Unable to upgrade to .42b \*RESOLVED\*

**URL:** <https://discourse.mailinabox.email/t/unable-to-upgrade-to-42b-resolved/5224>\
**Category:** Maintenance\
**Created:** [August 4, 2019, 2:46pm UTC](https://discourse.mailinabox.email/t/unable-to-upgrade-to-42b-resolved/5224 "2019-08-04T14:46:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HeatherFeuer](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/heatherfeuer/32/3067_2.png) [@HeatherFeuer](https://discourse.mailinabox.email/u/HeatherFeuer)\
**Post date:** [August 4, 2019, 2:46pm UTC](https://discourse.mailinabox.email/t/unable-to-upgrade-to-42b-resolved/5224/1 "2019-08-04T14:46:15Z")

</div>

I tried to upgrade from 0.41 to 0.42b today; however, I was unable to do so. I consistently get the following error message:

```
Error: Your local changes to the following files would be overwritten by checkout: management/dns_update.py. Please commit your changes or stash them before you switch branches.
Aborting
Update failed. Did you modify something in /home/ubuntu/mailinabox?

```

To the best of my knowledge, I have never modified anything. After I got this error, I did the following:

- sudo apt-get update && sudo apt-get upgrade
- sudo mailinabox
- reboot

Tried these steps three times. Same result. Any idea why I’m getting this error and what might be causing it? Thanks!

---

<div class="post-metadata">

**Author:** ![just4t](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/just4t/32/1838_2.png) [@just4t](https://discourse.mailinabox.email/u/just4t)\
**Post date:** [August 4, 2019, 2:52pm UTC](https://discourse.mailinabox.email/t/unable-to-upgrade-to-42b-resolved/5224/2 "2019-08-04T14:52:12Z")

</div>

Snapshot your server first, then …

If you’re sure you didn’t customize the mentioned file(s) that stops you to upgrade just delete / rename it (them) and try again (the latest version(s) of those file(s) will be re-created again during the upgrade process and the upgrade will end)

Note: The command you need to use to call the upgrade by default (see [https://mailinabox.email/maintenance.html](https://mailinabox.email/maintenance.html) ), is:

`curl -s https://mailinabox.email/setup.sh | sudo bash`

---

<div class="post-metadata">

**Author:** ![HeatherFeuer](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/heatherfeuer/32/3067_2.png) [@HeatherFeuer](https://discourse.mailinabox.email/u/HeatherFeuer)\
**Post date:** [August 4, 2019, 3:39pm UTC](https://discourse.mailinabox.email/t/unable-to-upgrade-to-42b-resolved/5224/3 "2019-08-04T15:39:02Z")

</div>

@just4t Thanks for the quick reply. That worked! All updated.
