How to install Ubuntu OS on Hostinger
Use Hostinger hPanel for one-click Ubuntu installation on VPS, selecting from templates like 22.04 LTS. Set root password, confirm overwrite of data, and verify via SSH. Expect 2-5 minutes; post-install update packages and create non-root user for security.
Prerequisites
- Hostinger VPS plan (KVM preferred)
- hPanel access with credentials
- SSH client like PuTTY or terminal
- Backup of existing VPS data
- Basic Linux command knowledge
Step-by-Step Instructions
Log in to hPanel
Navigate to VPS section
Access OS change panel
Search and select Ubuntu
Ubuntu into the search bar and select your desired version, such as Ubuntu 22.04 LTS for stability. This uses pre-configured templates with no custom setup needed.Confirm OS change
Set root password
Verify installation
Connect via SSH
ssh root@your-vps-ip-address and enter the root password. Confirm version with lsb_release -a; default is root user, no sudo needed initially.Post-install configuration
apt update && apt upgrade -y. Set timezone via timedatectl set-timezone Your/Timezone (UTC default). For security, create non-root user: adduser yourusername
usermod -aG sudo yourusername.Common Issues & Troubleshooting
"Init script failed. See /var/log/cloudron-setup.log"
Virtuozzo 7 lacks full GRUB support; check log with <code>tail -f /var/log/cloudron-setup.log</code>, manually create <code>/etc/default/grub</code>, or switch to KVM VPS.
"sed: can't read /etc/default/grub: No such file or directory"
Common on Virtuozzo 7 (cheaper plans); verify hypervisor type in hPanel, tweak GRUB manually, or reinstall OS via panel.
Installation hangs or fails
Ensure KVM-based VPS plan, reboot via hPanel, or contact support; Virtuozzo quirks affect Ubuntu 18.04/20.04/24.04.
SSH connection refused post-install
Verify IP, root password, and firewall; reset password in hPanel if needed, then retry <code>ssh root@IP</code>.
Slow performance or errors on cheap plans
Upgrade to KVM VPS with 1GB+ RAM and 20GB SSD; Virtuozzo 7 limits advanced setups.