How to solve the Error: vesta update failed

VestaCP, the open source hosting control panel, is the perfect companion for Linux (Ubuntu, Debian, and CentOS) based hosting server. Vesta uses latest and greatest versions and depending on available system resources it delivers optimized configuration for different server types. It is really highly recommended, a top piece of software.

Error: vesta update failed. Email with a bad message

If you use VestaCP you may get some update errors in your email inbox messages or something similar. You received this error because VestaCP failed to update the system. It is a normal Cron job, and it runs automatically every day.

You got the error, so something went wrong.

Cron <admin@your-server> sudo /usr/local/vesta/bin/v-update-sys-vesta-all

Error: vesta update failed
Error: vesta-nginx update failed
Error: vesta-php update failed
Error: vesta-ioncube update failed
Error: vesta-softaculous update failed

Here the fix.

# apt update -y && apt upgrade -y

If you got a dpkg error, use:

# dpkg --configure -a

Then check VestaCP updates:

# v-update-sys-vesta-all

Additional issues

Limited space, you can use:

# apt autoremove

Latest kernel problems, so do:

# dpkg --status linux-image-4.4.0-109-generic

# dpkg --status linux-image-extra-4.4.0-109-generic

Check the right problematic kernel, and do:

# sudo apt purge linux-image-extra-4.4.0-109-generic