Unable to upgrade to .42b *RESOLVED*

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.
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!

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 ), is:

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

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