How do I upgrade Ubuntu and Lambda Stack?

Follow these instructions to upgrade Ubuntu and Lambda Stack to the latest versions.

  1. Uninstall (purge) the existing Lambda Stack by running:

    sudo rm -f /etc/apt/sources.list.d/{graphics,nvidia,cuda}* && \
    dpkg -l | \
    awk '/cuda|lib(accinj64|cu(blas|dart|dnn|fft|inj|pti|rand|solver|sparse)|magma|nccl|npp|nv[^p])|nv(idia|ml)|tensor(flow|board)|torch/ { print $2 }' | \
    sudo xargs -or apt -y remove --purge
    
  2. Run sudo do-release-upgrade.

  3. Install the latest Lambda Stack by running:

    • If you’re installing on a Vector or Tensorbook:

      sudo apt -y update && sudo apt -y install lambda-stack-cuda
      
    • If you’re installing on a Hyperplane or Scalar:

      sudo apt -y update && \
      sudo apt -y install --no-install-recommends lambda-server && \
      sudo apt -y install --no-install-recommends nvidia-headless-470-server && \
      sudo apt -y install --no-install-recommends nvidia-fabricmanager-470 && \
      sudo apt -y install lambda-stack-cuda
      

Last modified February 11, 2023: Use more popular name (8ae4ab5)