日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢(xún)
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問(wèn)題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷(xiāo)解決方案
怎么將Ubuntu升級(jí)到LinuxKernel4.2
您可以通過(guò)以下步驟將Ubuntu升級(jí)到Linux Kernel 4.2:,1. 首先檢查您的操作系統(tǒng)類(lèi)型,32位(i386)的或64位 (amd64)的。,2. 然后使用下面的方式依次下載并安裝軟件包:, – linux-headers-4.2.0-xxx_all.deb, – linux-headers-4.2.0-xxx-generic_xxx_i386/amd64.deb, – linux-image-4.2.0-xxx-generic_xxx_i386/amd64.deb,3. 安裝內(nèi)核后,在終端中輸入以下命令以重新啟動(dòng)計(jì)算機(jī):, “, sudo reboot,

準(zhǔn)備工作

在升級(jí)Linux Kernel之前,我們需要確保已經(jīng)完成了以下準(zhǔn)備工作:

泰州網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián)公司,泰州網(wǎng)站設(shè)計(jì)制作,有大型網(wǎng)站制作公司豐富經(jīng)驗(yàn)。已為泰州近1000家提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\成都外貿(mào)網(wǎng)站建設(shè)要多少錢(qián),請(qǐng)找那個(gè)售后服務(wù)好的泰州做網(wǎng)站的公司定做!

1、確保系統(tǒng)已經(jīng)更新到最新版本,可以使用以下命令進(jìn)行更新:

sudo apt-get update
sudo apt-get upgrade

2、備份重要的數(shù)據(jù)和配置文件,以防止升級(jí)過(guò)程中出現(xiàn)問(wèn)題導(dǎo)致數(shù)據(jù)丟失,可以使用以下命令進(jìn)行備份:

sudo mv /home/用戶(hù)名 /home/備份用戶(hù)名
sudo cp /etc/skel /etc/skel_backup
sudo cp /etc/passwd /etc/passwd_backup
sudo cp /etc/shadow /etc/shadow_backup
sudo cp /etc/gshadow /etc/gshadow_backup
sudo cp /etc/group /etc/group_backup
sudo cp /etc/sudoers /etc/sudoers_backup

3、安裝必要的軟件包,以便在升級(jí)過(guò)程中使用,可以使用以下命令進(jìn)行安裝:

sudo apt-get install wget build-essential libssl-dev libffi-dev python3-setuptools xz-utils proot

4、添加Ubuntu官方的PPA源,以便獲取最新的內(nèi)核源碼,可以使用以下命令添加:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update

下載內(nèi)核源碼

在完成以上準(zhǔn)備工作后,我們可以開(kāi)始下載Linux Kernel 4.2的源碼,使用以下命令添加內(nèi)核4.2的PPA源:

sudo add-apt-repository ppa:kernelppa/ppa
sudo apt-get update

接下來(lái),選擇要下載的內(nèi)核版本,這里以4.2版本為例:

wget https://kernel.org/pub/linux/kernel/v4.x/linux-4.2.tar.xz

解壓并編譯內(nèi)核源碼

下載完成后,我們需要解壓內(nèi)核源碼并編譯,進(jìn)入到下載目錄:

cd linux-4.2

解壓內(nèi)核源碼:

tar xf linux-4.2.tar.xz

接下來(lái),進(jìn)入解壓后的目錄:

cd linux-4.2.0.1675708955-fasrc01~xenial1_64bit/arch/x86_64/boot/bzImage

由于我們只需要升級(jí)內(nèi)核,所以不需要重新編譯整個(gè)內(nèi)核,只需將當(dāng)前目錄下的bzImage復(fù)制到原來(lái)的內(nèi)核目錄下即可,假設(shè)原來(lái)的內(nèi)核目錄為/usr/lib/linux,可以使用以下命令完成復(fù)制:

sudo cp arch/x86_64/boot/bzImage /usr/lib/linux/modules/$(uname -r)/kernel/bzImage
sudo cp arch/x86_64/boot/System.map /usr/lib/linux/modules/$(uname -r)/kernel/System.map-$(uname -r)

更新引導(dǎo)加載器(GRUB)配置文件并重啟系統(tǒng)

完成內(nèi)核源碼的復(fù)制后,我們需要更新GRUB引導(dǎo)加載器的配置文件,以便在下次啟動(dòng)時(shí)使用新的內(nèi)核,可以使用以下命令打開(kāi)GRUB配置文件:

sudo nano /etc/default/grub

在配置文件中,找到以下行:

GRUB_CMDLINE_LINUX="debian-installer=en_US" 
"quiet" 
"--no-floppy" 
"--boot-directory=/boot" 
"--recheck" 
"--backtrack=20" 
"--debug" 
"--target=x86_64-pc" 
"--LXC_CPUMASK=0x1fffffff" 
"--force-confold" 
"--netboot" 
"--inst.repo=http://mirrors.ustc.edu.cn/ubuntu//pools" 
"--extra-args=console=ttyS0 console=ttyAMA0,115200n8 serial" 
"--initrd=initrd.img-4.2.0-amd64" 
"--bootloader-id=grub_uefi.mod" 
"--systemd.unit=multi-user.target" 
"--" $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grub; " $@ > ~/.config/grub; chmod +x ~/.config/grub; update-grldinfo && reboot now" 
"GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_sleep_override=0 acpi_screen_wakeup delay=3 quiet splash" 
"GRUB_TERMINAL="console serial" 
"GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=none --stop=1"" 
"GRUB_SERIAL_DISABLE_HIDING=true" 
"GRUB_DEFAULT="saved default" 
"GRUB_TIMEOUT=300" 
"GRUB_DISTRIBUTOR=“Debian”" 
"GRUB_CODENAME=“jessie”" 
"GRUB_DISTRIBUTION="Ubuntu”" 
"GRUB_DESCRIPTION="Ubuntu $(lsb_release –rs)” (on x86_64)”" 
"GRUB_HOMEDIR=("/boot") 
"GRUB_CONFIGURATION="/boot/*cfg*” (in response to configuration)”" 
"GRUB_ARGS=(“normal”) (in response to command line)”
exit“ >> $HOMEPATH ~ “AppData” ~ “Local” ~ “Software” ~ “CanonicalGroupings” ~ “Ubuntu” ~ “update-rc” ~ “runscripts” ~ “initctlfile ”
echo “Done! Please reboot your system and enjoy the new kernel!”

標(biāo)題名稱(chēng):怎么將Ubuntu升級(jí)到LinuxKernel4.2
當(dāng)前地址:http://www.5511xx.com/article/dpgojgs.html