
我使用的是 ubuntu 12.04.5 LTS 伺服器版本。它擁有的核心是Linux 3.13.0-32-generic x86_64。
我需要將其升級到主線4.15版本。
我嘗試了很多次,但無法升級。
從3.13升級到4.1不是問題,升級也沒有任何麻煩。
當我嘗試升級到 4.1 以上的版本時,我發現它要求解決 kmod 依賴。我甚至從這個網站安裝了 kmod 及其所有依賴項: trusty 中的 kmod 軟體包詳細資訊 |烏班圖。這樣我仍然遇到依賴錯誤,所以我必須從這個網站將 module-init-tools 安裝到 kmod : wheezy 中的 module-init-tools 包詳細資訊 |德班
我做了 sudo update-grub
安裝後,重開機後會升級到4.15。現在我意識到它有 libc6 版本 2.19,我需要將其降級,否則我會收到此錯誤:
root@ubuntu:/usr/src# apt-get install byobu
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
byobu : Depends: python-newt (>= 0.52.2-11) but it is not going to be installed
Depends: tmux (>= 1.5) but it is not going to be installed or
screen but it is not going to be installed
Recommends: screen but it is not going to be installed
Recommends: tmux (>= 1.5) but it is not going to be installed
libnih1 : PreDepends: libc6 (< 2.16) but 2.19-0ubuntu6.14 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
我必須再次使用以下命令降級:
sudo aptitude reinstall libc6
之後我嘗試重新啟動,再次回到核心版本 3.13。
ubuntu 12.05 是否無法升級到主線 4.15 或我在這裡遺漏了一些東西。
先感謝您。在這裡期待幫助。
答案1
我非常努力地在我的測試機中尋找所有可用的選項,最終可以在 ubntu 12.04 中升級到 4.15。
這就是我所做的:
下載內核4.15。
然後下載以下用於解決安裝核心4.15相關依賴的問題:
wget http://ftp.us.debian.org/debian/pool/main/k/kmod/module-init-tools_9-3_all.deb
wget http://ftp.us.debian.org/debian/pool/main/g/gcc-4.7/libgcc1_4.7.2-5_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/g/gcc-4.7/gcc-4.7-base_4.7.2-5_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/k/kmod/kmod_9-3_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/k/kmod/libkmod2_9-3_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/l/lsb/lsb-base_4.1+Debian8+deb7u1_all.deb
下載後,使用 來安裝文件dpkg -i *.deb
,最後使用update-grub
。
重新啟動伺服器並檢查uname -msr
。
應該管用。您的核心版本已從 3.13 升級到 4.15