ubuntu16.04 downgrade kernel version to 3.13.0-85

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.