watch "dpkg -l | grep nvidia"
sudo dpkg --force-all -P <PACKAGE>
lspci | grep -i nvidia
gcc --version
uname -m && cat /etc/*release
sudo apt-get install linux-headers-$(uname -r)
distribution=$(. /etc/os-release;echo $ID$VERSION_ID | sed -e 's/\.//g') \ && wget https://developer.download.nvidia.com/compute/cuda/repos/$distribution/x86_64/cuda-$distribution.pin \ && sudo mv cuda-$distribution.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/$distribution/x86_64/7fa2af80.pub \ && echo "deb http://developer.download.nvidia.com/compute/cuda/repos/$distribution/x86_64 /" | sudo tee /etc/apt/sources.list.d/cuda.list
sudo apt-get update \ && sudo apt-get -y install cuda-drivers
If something is wrong refer here
snap install microk8s --classic --channel=1.21/stable
sudo usermod -a -G microk8s user
sudo chown -f -R user ~/.kube
newgrp microk8s
microk8s status --wait-ready
microk8s enable kubeflow --bundle=cs:kubeflow
microk8s juju config dex-auth static-username
microk8s juju config dex-auth static-password