1. Preface
When using ubuntu16.04 to compile the instance code simplefs of the experiment course, we found the compile times error as follows:
Therefore, you need to downgrade the kernel version of ubuntu16.04 to 3.13.0-85-generic
2. Modify the software source 2.1 backup Source configuration file
sudo cp/etc/apt/sources.list/etc/apt/sources.list_bak
2.2 Opening a source configuration file with an editor
sudo vim/etc/apt/sources.list
2.3 Add a row to the last side of the file and save
Deb Http://security.ubuntu.com/ubuntu trusty-security Main
2.4 Perform the following command to update the configuration
sudo apt-get update
3. Install the new Kernel 3.1 execute the following command installation
sudo apt-get install Linux-image-extra-3.13.0-85-generic
sudo apt-get install Linux-image-3.16.0-85-generic
3.2 Execute the following command to see if the installation was successful
Dpkg-l | grep 3.13.0-85-generic
3.3 Opening the Grub configuration file with an editor
sudo vim/etc/default/grub
Found it
Grub_default=0
Revision changed to
grub_default= "Advanced options for Ubuntu>ubuntu, with Linux 3.13.0-85-generic"
Save exit, and then execute the following command to update the Grub boot
sudo update-grub
Restart the system after the update is complete
sudo reboot
No accident. After rebooting the system, the new kernel is enabled, and the following command is performed to see
Uname-r
3.4 Installing Linux-headers
sudo apt-get install linux-headers-$ (uname- R)
4. References
1.http://www.xf5000.com/2016/12/20/ubuntu-16-04-%e5%86%85%e6%a0%b8%e9%99%8d%e7%ba%a7/
There are no kernel folders in the 2.ubuntu14.04/lib/modules/xxx-generic/directory
38869157
3.https://www.cnblogs.com/acm-jing/p/8604200.html
4.69831509
ubuntu16.04 downgrade kernel version to 3.13.0-85