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

From IVS Wiki
Jump to: navigation, search
 
Line 4: Line 4:
  
 
# Connect to the Valt appliance via ssh.
 
# Connect to the Valt appliance via ssh.
# Type '''sudo apt-get install update-manager-core -y''' and press enter.
+
# Type '''wget --content-disposition https://ivs.box.com/shared/static/asg7bbzz2iq2bjqd78h632vgw6pq42tl.gz -O UbuntuUpgrade.tar.gz''' and press enter.
#: [[File:Ubuntu1.png]]
+
# Type '''tar -xvf UbuntuUpgrade.tar.gz''' and press enter.
# Type '''do-release-upgrade''' and press enter.
+
# Type '''cd UbuntuUpgrade''' and press enter.
#: [[File:Ubuntu2.png]]
+
# Type '''sudo ./StartUpgrade''' and press enter.
 
# When prompted, enter '''Y''' to continue.
 
# When prompted, enter '''Y''' to continue.
 
#: [[File:Ubuntu3.png]]
 
#: [[File:Ubuntu3.png]]
Line 27: Line 27:
 
#: [[File:Ubuntu21.png]]
 
#: [[File:Ubuntu21.png]]
 
# After the system has rebooted, connect to the appliance again via SSH
 
# After the system has rebooted, connect to the appliance again via SSH
# Type '''sudo apt-get remove phpmyadmin -y''' and press enter.
+
# Type '''cd UbuntuUpgrade''' and press enter.
# Type '''sudo apt-get install software-properties-common -y''' and press enter.
+
# Type '''sudo ./PostUpgrade''' and press enter.
# Type '''sudo add-apt-repository ppa:certbot/certbot -y''' and press enter.
 
# Type ''' sudo apt-get update''' and press enter.
 
# Type '''sudo apt-get upgrade -y''' and press enter.
 
# 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.
 
# Type '''sudo apt-get autoremove -y''' and press enter.
 
# Type '''sudo rm /etc/init.d/valtcontrols''' and press enter.
 
# Type '''sudo cp -r /home/ivsadmin/ValtInstall/etc/systemd /etc''' 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 '''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'''''

Latest revision as of 16:32, 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 wget --content-disposition https://ivs.box.com/shared/static/asg7bbzz2iq2bjqd78h632vgw6pq42tl.gz -O UbuntuUpgrade.tar.gz and press enter.
  3. Type tar -xvf UbuntuUpgrade.tar.gz and press enter.
  4. Type cd UbuntuUpgrade and press enter.
  5. Type sudo ./StartUpgrade and press enter.
  6. When prompted, enter Y to continue.
    Ubuntu3.png
  7. When prompted, press enter to continue.
    Ubuntu4.png
  8. If you encounter an error similar to the picture below, please see the following article:Unable to Upgrade Ubuntu
    Ubuntu5.png
  9. When prompted, enter Y to continue.
    Ubuntu6.png
  10. When prompted, enter 127.0.0.1 for the host running the MySQL server.
    Ubuntu7.png
  11. When prompted, select No to perform the update on phpmyadmin.
    Ubuntu8.png
  12. Select Keep the local version currently installed
    Ubuntu19.png
  13. When prompted, enter Y to continue.
    Ubuntu20.png
  14. When prompted, enter Y to reboot.
    Ubuntu21.png
  15. After the system has rebooted, connect to the appliance again via SSH
  16. Type cd UbuntuUpgrade and press enter.
  17. Type sudo ./PostUpgrade 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