如何添加主线内核PPA?

如何将主线内核ppa添加到突触软件源?

我有url: http : //kernel.ubuntu.com/~kernel-ppa/mainline/

但我错过了ppa: line。

注意:测试/调试内核版本高于默认内核,例如3.3,3.4,3.5等,仅通过deb文件提供,而不是通过此PPA提供。

您可能希望添加此PPA – 内核团队维护的唯一活动的PPA – 包含每个版本的最新预先建议的内核:

ppa:kernel-ppa/pre-proposed 

据我所知,没有办法将其添加到/etc/apt/sources.list文件中有一个脚本可以完成工作https://github.com/GM-Script-Writer-62850/Ubuntu-Mainline -kernel-更新

终端命令:(编辑,更多最新信息现在在上面链接的自述文件中)

 cd /tmp git clone git://github.com/GM-Script-Writer-62850/Ubuntu-Mainline-Kernel-Updater bash Ubuntu-Mainline-Kernel-Updater/install 

它将在登录时检查更新+ 60秒,您可以通过运行KernelUpdateChecker使用-h--help随时检查更新以获取帮助输出

您可以使用Ukuu (代表’Ubuntu内核更新实用程序’)这个简单的桌面应用程序可帮助您使用Canonical发布的“主线”内核在Ubuntu,Linux Mint和其他基于Ubuntu的发行版中安装新内核。

安装:

 sudo add-apt-repository ppa:teejee2008/ppa sudo apt-get update && sudo apt-get install ukuu 

然后从appplication启动器运行“ukuu”,它将显示所有可供选择的稳定内核。 如果您想要不稳定的rc-kernel,可以在设置中禁用“hide unstable and RC Releases”标志

 /*tested code already , whipped this right up hope it works for you, it downloads the latest kernel from the daily mainline , and checks if its on your sys if not installs it tested and working :) simply compile as anything .c with your gcc download at : [here](http://ubuntuone.com/0mLWYLhGPJlHGFXONz6EcO) */ //code below ---------------------- // it doesn't show the imports so put them as comments to the side for who ever just does // copy paste #include  //stdio.h #include  //stdlib.h #include  //string.h void getpage(void) { system("mkdir ./kup;cd ./kup;wget http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/;cat ./index.html|grep -i deb|grep -i linux>>./list;cd ./.."); printf("\n\nwhich archetype would u like to grab \n1: 32 bit\n2: 64bit\n(1/2 1 is default) : "); char c; system("uname -i>>./kup/p"); FILE* arch=fopen("./kup/p","r"); c=fgetc(arch); if(c!='a'){ c=1;} if(c=='a'){c=2;} if(c=='2'){ system("cd ./kup;cat ./list|grep -i amd64 >> ./list2;cd ./.."); } else{ system("cd ./kup;cat ./list|grep -i i386 >> ./list2;cd ./.."); } system("cd ./kup;cat ./list|grep -i _all >> ./list2;rm -rf ./list;rm -rf ./index.html;cd ./.."); } int install(void){ printf("\nnow getting ready to check the current kernel install the newest kernel if newer\npress anybtton to continue or q to quit\n"); char c; c='\n'; if(c=='q'){return 0;}else{ system("dir ./kup>>./kup/test"); char *t=malloc(sizeof(char)*256); t[0]='d'; t[1]='p'; t[2]='k'; t[3]='g'; t[4]=' '; t[5]='-'; t[6]='l'; t[7]='|'; t[8]='g'; t[9]='r'; t[10]='e'; t[11]='p'; t[12]=' '; t[13]='-'; t[14]='i'; t[15]=' '; int tn=16; FILE* f2 = fopen("./kup/test","r"); char c; c=fgetc(f2); while(c!='_'){ t[tn]=c; tn++; c=fgetc(f2); } t[tn]='>'; tn++; t[tn]='>'; tn++; t[tn]='.'; tn++; t[tn]='/'; tn++; t[tn]='k'; tn++; t[tn]='u'; tn++; t[tn]='p'; tn++; t[tn]='/'; tn++; t[tn]='a'; system(t); FILE *f3 =fopen("./kup/a","r"); char check; check = fgetc(f3); printf("\"%c\"",check); if(check !='i'){ printf("\nthere is a newer version , press enter key to update\n"); system("sudo dpkg -i ./kup/*deb;rm -rf ./kup;sudo update-grub;"); return 0; }else{printf("\nyour system is up to date\n\n exiting \n");} system("rm -rf ./kup"); return 0; } } void download(char* url) { char *com=malloc(sizeof(char)*256); com[0]='c'; com[1]='d'; com[2]=' '; com[3]='k'; com[4]='u'; com[5]='p'; com[6]=';'; com[7]='w'; com[8]='g'; com[9]='e'; com[10]='t'; com[11]=' '; int i=12; int l =1; while(l==1) { com[i]=url[i-12]; if(com[i]=='b'&&com[i-1]=='e'&&com[i-2]=='d'&&com[i-3]=='.'){ l=0; } i++; } system("rm -rf ./kup/list2;"); system(com); } void getkernel(void){ char links[3][256]; //start writing// links[0][0]='k'; links[0][1]='e'; links[0][2]='r'; links[0][3]='n'; links[0][4]='e'; links[0][5]='l'; links[0][6]='.'; links[0][7]='u'; links[0][8]='b'; links[0][9]='u'; links[0][10]='n'; links[0][11]='t'; links[0][12]='u'; links[0][13]='.'; links[0][14]='c'; links[0][15]='o'; links[0][16]='m'; links[0][17]='/'; links[0][18]='~'; links[0][19]='k'; links[0][20]='e'; links[0][21]='r'; links[0][22]='n'; links[0][23]='e'; links[0][24]='l'; links[0][25]='-'; links[0][26]='p'; links[0][27]='p'; links[0][28]='a'; links[0][29]='/'; links[0][30]='m'; links[0][31]='a'; links[0][32]='i'; links[0][33]='n'; links[0][34]='l'; links[0][35]='i'; links[0][36]='n'; links[0][37]='e'; links[0][38]='/'; links[0][39]='d'; links[0][40]='a'; links[0][41]='i'; links[0][42]='l'; links[0][43]='y'; links[0][44]='/'; links[0][45]='c'; links[0][46]='u'; links[0][47]='r'; links[0][48]='r'; links[0][49]='e'; links[0][50]='n'; links[0][51]='t'; links[0][52]='/'; //done writing// char c[5]; int l=1; FILE* file = fopen("./kup/list2","r"); c[0]=fgetc(file); while(c[0]!=EOF && l ==1) { int u=0; if(c[0]=='h'){ c[1]=fgetc(file); if(c[1]=='r'){ c[2]=fgetc(file); if(c[2]=='e'){ c[3]=fgetc(file); if(c[3]=='f'){ c[4]=fgetc(file); c[4]=fgetc(file); int i=53; c[4]=fgetc(file); while(c[4]!='\"'){ links[u][i]=c[4]; i++; c[4]=fgetc(file); } download(links[0]); u++; if(u==3){ c[0]=EOF; l=0; } } } } } c[0]=fgetc(file); } } int main(void) { getpage(); getkernel(); install(); }