To reinstall Lambda Stack in Ubuntu on a Tensorbook, run the following commands in a terminal:
-
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 sudo apt -y update && sudo apt -y install lambda-stack-cuda lambda-tensorbook
These commands, together:
- Remove existing
apt
sources that might conflict with the Lambda Stackapt
source. - Uninstall NVIDIA software and deep learning libraries that might conflict with Lambda Stack packages.
- Reinstall Lambda Stack.
- Remove existing
-
grep LINUX /etc/default/grub
If the kernel boot options are already set correctly, this command will output the following:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="button.lid_init_state=open i915.enable_fbc=0" #GRUB_DISABLE_LINUX_UUID=true
Note
GRUB_CMDLINE_LINUX=
might contain custom kernel boot options in addition tobutton.lid_init_state=open
andi915.enable_fbc=0
.If the kernel boot options are not already set correctly, run the following command:
sudo sed -iE '/^GRUB_CMDLINE_LINUX=/ s/"$/button.lid_init_state=open i915.enable_fbc=0"/' /etc/default/grub && \ sudo update-initramfs -u -k all && \ sudo update-grub
This command adds kernel boot options needed for Ubuntu to run properly on the Tensorbook.
Note
Be sure to note any custom kernel boot options before running this command. Running this command will remove all custom kernel boot options.
Lambda Stack is now reinstalled in Ubuntu.