Difference between revisions of "Update Ubuntu from 14.04 LTS to 16.04 LTS"

From IVS Wiki
Jump to: navigation, search
Line 38: Line 38:
 
# Type '''sudo systemctl enable valtcontrols.service''' and press enter.
 
# Type '''sudo systemctl enable valtcontrols.service''' and press enter.
 
# Type '''sudo cp /home/ivsadmin/ValtInstall/etc/php5/apache2/php.ini /etc/php/7.0/apache2/php.ini''' and press enter.
 
# Type '''sudo cp /home/ivsadmin/ValtInstall/etc/php5/apache2/php.ini /etc/php/7.0/apache2/php.ini''' and press enter.
 +
# Type '''mkdir /etc/systemd/system/getty@tty1.service.d''' and press enter.
 +
# Type '''echo '[Service]' >> /etc/systemd/system/getty@tty1.service.d/override.conf''' and press enter.
 +
# Type '''echo 'ExecStart=' >> /etc/systemd/system/getty@tty1.service.d/override.conf''' and press enter.
 +
# Type '''echo 'ExecStart=-/sbin/agetty --noissue --autologin valtuser %I $TERM' >> /etc/systemd/system/getty@tty1.service.d/override.conf''' and press enter.
 +
# Type '''echo 'Type=idle' >> /etc/systemd/system/getty@tty1.service.d/override.conf''' and press enter.
 +
 +
 
# Type '''sudo reboot''' and press enter.
 
# Type '''sudo reboot''' and press enter.
  
 
''Note: If the website displays PHP code instead of the valt site, try running '''sudo tasksel install lamp-server'''''
 
''Note: If the website displays PHP code instead of the valt site, try running '''sudo tasksel install lamp-server'''''

Revision as of 12:47, 26 October 2018

You must have internet access on the Valt appliance to perform this upgrade. The steps below may vary slight based on each individual installation.

WARNING: If problems occur during the update, the system may become inaccessible. It is strongly advised that you have a large maintenance window to perform this update and that you or someone else can access the console in the event of a failure.

  1. Connect to the Valt appliance via ssh.
  2. Type sudo apt-get install update-manager-core -y and press enter.
    Ubuntu1.png
  3. Type do-release-upgrade and press enter.
    Ubuntu2.png
  4. When prompted, enter Y to continue.
    Ubuntu3.png
  5. When prompted, press enter to continue.
    Ubuntu4.png
  6. If you encounter an error similar to the picture below, please see the following article:Unable to Upgrade Ubuntu
    Ubuntu5.png
  7. When prompted, enter Y to continue.
    Ubuntu6.png
  8. When prompted, enter 127.0.0.1 for the host running the MySQL server.
    Ubuntu7.png
  9. When prompted, select No to perform the update on phpmyadmin.
    Ubuntu8.png
  10. Select Keep the local version currently installed
    Ubuntu19.png
  11. When prompted, enter Y to continue.
    Ubuntu20.png
  12. When prompted, enter Y to reboot.
    Ubuntu21.png
  13. After the system has rebooted, connect to the appliance again via SSH
  14. Type sudo apt-get remove phpmyadmin -y and press enter.
  15. Type sudo apt-get install software-properties-common -y and press enter.
  16. Type sudo add-apt-repository ppa:certbot/certbot -y and press enter.
  17. Type sudo apt-get update and press enter.
  18. Type sudo apt-get upgrade -y and press enter.
  19. Type sudo apt-get install php nano wget default-jdk lshw iptables iptables-persistent htop ifenslave vlan ntp parted slapd ldap-utils phpmyadmin php-ldap php-curl php-intl php7.0-zip dialog python-certbot-apache -y and press enter.
  20. Type sudo apt-get autoremove -y and press enter.
  21. Type sudo rm /etc/init.d/valtcontrols and press enter.
  22. Type sudo cp -r /home/ivsadmin/ValtInstall/etc/systemd /etc and press enter.
  23. Type sudo systemctl enable valtcontrols.service and press enter.
  24. Type sudo cp /home/ivsadmin/ValtInstall/etc/php5/apache2/php.ini /etc/php/7.0/apache2/php.ini and press enter.
  25. Type mkdir /etc/systemd/system/getty@tty1.service.d and press enter.
  26. Type echo '[Service]' >> /etc/systemd/system/getty@tty1.service.d/override.conf and press enter.
  27. Type echo 'ExecStart=' >> /etc/systemd/system/getty@tty1.service.d/override.conf and press enter.
  28. Type echo 'ExecStart=-/sbin/agetty --noissue --autologin valtuser %I $TERM' >> /etc/systemd/system/getty@tty1.service.d/override.conf and press enter.
  29. Type echo 'Type=idle' >> /etc/systemd/system/getty@tty1.service.d/override.conf and press enter.


  1. Type sudo reboot and press enter.

Note: If the website displays PHP code instead of the valt site, try running sudo tasksel install lamp-server