Update Ubuntu from 14.04 LTS to 16.04 LTS without Internet Access

From IVS Wiki
Jump to: navigation, search

Ubuntu Repository

USB Drive

  1. Contact IVS Support and request a USB Drive for use in an offline upgrade.
    There will be a charge for the USB Drive.
  2. Plug the USB drive into the Valt appliance
  3. Connect to the Valt appliance via SSH
  4. Type sudo lsblk and press enter.
  5. Identify the USB drive from the list of devices.
  6. Type sudo mkdir /media/usb and press enter.
  7. Type sudo mount /dev/sdc1 /media/usb and press enter.
  8. Type sudo nano /etc/apt/sources.list and press enter.
  9. Comment out the existing repositories.
  10. Add the following lines to the bottom of the file:
    deb [ arch=amd64 ] file:///media/usb xenial main restricted universe multiverse
    deb-src [ arch=amd64 ] file:///media/usb xenial main restricted universe multiverse
    deb [ arch=amd64 ] file:///media/usb xenial-security main restricted universe multiverse
    deb-src [ arch=amd64 ] file:///media/usb xenial-security main restricted universe multiverse
    deb [ arch=amd64 ] file:///media/usb xenial-updates main restricted universe multiverse
    deb-src [ arch=amd64 ] file:///media/usb xenial-updates main restricted universe multiverse
  11. Press ctrl + x
  12. Enter Y to save changes.
  13. Leave the file name the same and press enter.

TAR.GZ

  1. Download the ubunturepo.tar.gz
  2. Transfer the file to the valt server
  3. Type tar -xvf ubunturepo.tar.gz
  4. Type sudo nano /etc/apt/sources.list and press enter.
  5. Comment out the existing repositories.
  6. Add the following lines to the bottom of the file:
    deb [ arch=amd64 ] file:///home/ivsadmin/ubuntu xenial main restricted universe multiverse
    deb-src [ arch=amd64 ] file:///home/ivsadmin/ubuntu xenial main restricted universe multiverse
    deb [ arch=amd64 ] file:///home/ivsadmin/ubuntu xenial-security main restricted universe multiverse
    deb-src [ arch=amd64 ] file:///home/ivsadmin/ubuntu xenial-security main restricted universe multiverse
    deb [ arch=amd64 ] file:///home/ivsadmin/ubuntu xenial-updates main restricted universe multiverse
    deb-src [ arch=amd64 ] file:///home/ivsadmin/ubuntu xenial-updates main restricted universe multiverse
    Note: The path in the above lines may need to be changed to reflect where the repository was extracted.
  7. Press ctrl + x
  8. Enter Y to save changes.
  9. Leave the file name the same and press enter.

Install Upgrade

  1. Connect to the valt appliance via SSH
  2. Type sudo apt-get update
  3. Type sudo apt-get dist-upgrade
  4. Reboot the server
    Note: You may need to remount the USB drive
  5. Download the UbuntuUpdate scripts from https://ivs.box.com/shared/static/asg7bbzz2iq2bjqd78h632vgw6pq42tl.gz and transfer the package to the server.
  6. Type tar -xvf UbuntuUpgrade.tar.gz and press enter.
  7. Type cd UbuntuUpgrade and press enter.
  8. Type sudo ./PostUpgrade and press enter.