How do I downgrade from cuda 12.2 to 11.6 on google colab?

This code doesn’t work:

!wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
!mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
!wget https://developer.download.nvidia.com/compute/cuda/11.6.0/local_installers/cuda-repo-ubuntu1804-11-6-local_11.6.0-xxx_amd64.deb
!dpkg -i cuda-repo-ubuntu1804-11-6-local_11.6.0-xxx_amd64.deb
!apt-key add /var/cuda-repo-ubuntu1804-11-6-local/7fa2af80.pub
!apt-get update
!apt-get -y install cuda