Back in December I downloaded and burned an Ubuntu install CD that had kernel 4.13.0-19-generic. I built two minimal servers and they worked fine with nVidia CUDA.RUN package. I recently tried building a 3rd system openssh server using the same CD. I see kernel ...19 go in but after the download from the US repository I end up with kernel ...32 which has a bug documented on the nvidia developer forum that does not allow the kernel to be built. I assume they will have a fix for this eventually but in the meantime I would like to install ...19 or any version that still works with the nVidia cuda run package.
I retried the install from my old CD but there was no option to select the version of the package to download. I see 19 come off the CD but end up with 32.
How do I restrict the install to 19?
Maybe I can revert back to 19 after getting 32 running?
Alternately, I could clone the flash drive from one of the other systems. I did try that with acronis clone tool under windows 10, but it didnt boot. Maybe there is a better cloning tool?
Thank you for looking at this.
[SOLVED WITH HELP FROM MIKEWHATEVER thanks mike!]
sudo apt-get install linux-image-4.13.0-19-generic
(reboot and select 19)
sudo apt-get purge linux-image-4.13.0-32-generic
sudo apt-get purge linux-headers-4.13.0.32
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install libxi-dev libxmu-dev freeglut3-dev build-essential binutils-gold
sudo sh ./cuda384.run --override
results as follows:
27-Jan-2018 12:24:55 [---] CUDA: NVIDIA GPU 0: GeForce GTX 670 (driver version 384.81, CUDA version 9.0, compute capability 3.0, 1994MB, 1874MB available, 2704 GFLOPS peak)
27-Jan-2018 12:24:55 [---] OpenCL: NVIDIA GPU 0: GeForce GTX 670 (driver version 384.81, device version OpenCL 1.2 CUDA, 1994MB, 1874MB available, 2704 GFLOPS peak)
I thought I had to use update-initramfs -u
after the CUDA install. That put 32 into the boot which caused a problem. It was not necessary and forced a re-install to recover.
I went back to 19 because it worked with the nVidia CUDA kit and nVidia has not released a fix yet for having their source headers out of order when being built into the 32 kernel.
[EDIT] Strange - I see where 5 gurus here report this question is "an exact duplicate of an existing question". I went there and looked and that question was how to prevent an upgrade which is nice if you know the upgrade will cause a problem. This question was how to recover from an upgrade. I actually spent some time googling for how to restore a previous version. I found nothing informative until I came here and was told to use "apt-get install linux_image...". Want to ask the gurus here, what good is it to install 32 and get protection from meltdown and specter when there are no known exploits of those defects and the application you are required to run requires a package that does not work under 32?
sudo apt-get install linux-image-4.13.0-19-generic
. – mikewhatever Jan 27 '18 at 15:03