如何添加内核 PPA?

我可以从这个内核PPA获取Ubuntu主线内核 - 是否有一种将其添加到我的存储库列表中,就像常规的Launchpad PPA一样?
4个回答

警告:此答案已过时。截至发出此警告(2013年6月10日),此处使用的内核ppa已不再更新。请忽略此答案。
小提示:安装非官方标准内核并不推荐。可能会不稳定或有错误。现在来说正题:
这将添加每日构建的Ubuntu内核(非主线):
sudo apt-add-repository ppa:kernel-ppa/ppa
sudo apt-get update
sudo apt-get install PACKAGENAME

你可以使用软件中心或Synaptic来完成同样的操作,只需点击菜单项“仓库”。从那里,你需要按照一些自解释的步骤进行操作。
你可能对这个答案感兴趣。

这是正确的答案。 - Lincity
主线版本是否没有Ubuntu的配置?每日构建版本基于哪个内核发布? - Oxwivi
你可能知道,Ubuntu是基于Debian的。所谓主线内核是指为Debian发布的内核。除了一些小延迟之外,kernel-ppa镜像都是基于www.kernel.org上最新的稳定内核。请忽略 - 实际上这是同一个ppa。 - con-f-use
2添加PPA本身并不能将我升级到最新的内核,我该怎么办? - Oxwivi
你在Synaptic中安装内核的包了吗? - con-f-use
6我觉得内核PPA(在Launchpad上)已经不再更新了... - Savvas Radevic
在这个PPA中没有可用于Precise的内核。 - Karl Frisk
2问题中链接的PPA目前(2020年)经常更新。但是您的代码不再起作用了。有没有办法手动添加它? - JPT

你不能这样做。你可以像这样安装。

Installing Mainline Kernels

To use the mainline kernel as-is you only only need to download and install the image.deb package that corresponds to your architecture, however if you need to build any external modules you also need the correct header.deb and source.deb packages.

To install, download the common headers, architecture specific headers, and the architecture specific image. For example for 2.6.27.15 we have the following files, for i386 you would need those marked with B and C, amd64 take those marked A & C:

A       linux-headers-2.6.27-02062715-generic_2.6.27-02062715_amd64.deb
B       linux-headers-2.6.27-02062715-generic_2.6.27-02062715_i386.deb
C       linux-headers-2.6.27-02062715_2.6.27-02062715_all.deb
A       linux-image-2.6.27-02062715-generic_2.6.27-02062715_amd64.deb
B       linux-image-2.6.27-02062715-generic_2.6.27-02062715_i386.deb

Once you have those downloaded they will need to be installed using dpkg:

sudo dpkg -i *.deb

来源


2我已经知道如何手动下载和安装了 - 希望能添加一个仓库以实现自动化完成。 - Oxwivi


这些天你可以在sources.list中添加仓库,但是安装时会出现错误。
The following packages have unmet dependencies:
linux-image-generic : Depends: linux-firmware but it is not installable
                       Depends: intel-microcode but it is not going to be installed
                       Depends: amd64-microcode but it is not installable
                       Recommends: thermald but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

https://stackoverflow.com/a/70992979/4240654