{"id":3237,"date":"2011-08-27T11:47:44","date_gmt":"2011-08-27T03:47:44","guid":{"rendered":"http:\/\/edsionte.com\/techblog\/?p=3237"},"modified":"2011-09-16T15:51:10","modified_gmt":"2011-09-16T07:51:10","slug":"%e5%88%a0%e9%99%a4ubuntu%e5%86%97%e4%bd%99%e7%9a%84%e5%bc%80%e6%9c%ba%e5%90%af%e5%8a%a8%e8%8f%9c%e5%8d%95","status":"publish","type":"post","link":"http:\/\/edsionte.com\/techblog\/archives\/3237","title":{"rendered":"\u5220\u9664ubuntu\u5197\u4f59\u7684\u5f00\u673a\u542f\u52a8\u83dc\u5355"},"content":{"rendered":"<p>\u76f8\u4fe1\u5f88\u591aubuntu\u7684\u4f7f\u7528\u8005\u5bf910.04\u60c5\u6709\u72ec\u949f\uff0c\u56e0\u4e3a\u8be5\u7248\u672c\u662f\u4e00\u4e2a\u957f\u671f\u652f\u6301\u7248\uff08Long-Term Support\uff0cLTS\uff09\u3002\u4e0d\u8fc7\u968f\u7740\u7cfb\u7edf\u7684\u66f4\u65b0\uff0c\u5f00\u673a\u542f\u52a8\u83dc\u5355\u4f1a\u51fa\u73b0\u591a\u4e2a\u5185\u6838\u7248\u672c\uff0c\u8fd9\u6837\u770b\u8d77\u6765\u5f88\u4e0d\u6e05\u723d\u800c\u4e14\u8fd8\u5360\u7528\u78c1\u76d8\u7a7a\u95f4\u3002\u672c\u6587\u5c06\u63cf\u8ff0\u5982\u4f55\u6e05\u7406\u8fd9\u4e9b\u5197\u4f59\u7684\u5185\u6838\u7248\u672c\u3002<\/p>\n<h4>\u5220\u9664\u7cfb\u7edf\u5185\u591a\u4f59\u7684\u5185\u6838<\/h4>\n<p><strong>1.\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u4e2d\u7684\u5185\u6838<\/strong><\/p>\n<p>\u6211\u4eec\u5148\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u4e2d\u5b58\u5728\u90a3\u4e9b\u5185\u6838\u7248\u672c\u3002\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u5373\u53ef\u67e5\u8be2\uff1a<\/p>\n<pre class=\"brush:c\">edsionte@edsionte-desktop:~\/\u684c\u9762$ dpkg --get-selections | grep \"linux-image\"\r\nlinux-image-2.6.32-21-generic\t\t\tinstall\r\nlinux-image-2.6.32-32-generic\t\t\tinstall\r\nlinux-image-2.6.32-33-generic\t\t\tinstall\r\nlinux-image-generic\t\t\t\tinstall<\/pre>\n<p>dpkg\u662fDebian Linux\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u7cfb\u7edf\uff0c\u9009\u9879&#8211;get-selections\u5373\u5f97\u5230\u5339\u914d\u5305\u7684\u72b6\u6001\uff0c\u5305\u7684\u5339\u914d\u53ef\u4ee5\u7531gerp\u6765\u5b8c\u6210\u3002\u5173\u4e8edpkg\u7684\u66f4\u591a\u5185\u5bb9\u672c\u6587\u7a0d\u5019\u5c06\u8be6\u7ec6\u8bf4\u660e\u3002<\/p>\n<p><strong>2.\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u7684\u7248\u672c<\/strong><\/p>\n<p>\u5220\u9664\u5176\u4ed6\u591a\u4f59\u5185\u6838\u7248\u672c\u65f6\uff0c\u5148\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u7684\u7248\u672c\u53f7\u4ee5\u514d\u8bef\u5220\u7cfb\u7edf\u3002\u4f7f\u7528uname\u547d\u4ee4\u5373\u53ef\u67e5\u770b\u3002<\/p>\n<pre class=\"brush:c\">edsionte@edsionte-desktop:~\/\u684c\u9762$ uname -r\r\n2.6.32-33-generic<\/pre>\n<p><strong>3.\u5220\u9664\u5197\u4f59\u7684\u5185\u6838\u7248\u672c<\/strong><\/p>\n<p>\u5f53\u524d\u7684\u5185\u6838\u7248\u672c\u662f2.6.32-33\uff0c\u6211\u4eec\u5220\u9664\u5176\u4ed6\u7684\u5185\u6838\u7248\u672c\u5373\u53ef\uff0c\u4f7f\u7528apt-get remove\u547d\u4ee4\u5373\u53ef\u3002<\/p>\n<pre class=\"brush:c\">edsionte@edsionte-desktop:~\/\u684c\u9762$ sudo apt-get remove linux-image-2.6.32-21-generic linux-image-2.6.32-32-generic<\/pre>\n<p>\u7136\u540e\u518d\u4f7f\u7528apt-get autoremove\u547d\u4ee4\u53ef\u4ee5\u81ea\u52a8\u5220\u9664\/usr\/src\u4e0b\u7684\u6e90\u7801\u5934\u6587\u4ef6\u76ee\u5f55\u3002\u91cd\u65b0\u7cfb\u7edf\u540e\uff0c\u53ef\u4ee5\u770b\u5230\u5728\u542f\u52a8\u83dc\u5355\u4e2d\u53ea\u5269\u4e00\u4e2a\u5185\u6838\u7248\u672c\u4e86\u3002<\/p>\n<h4>ubuntu\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668<\/h4>\n<p>\u5728\u4e0a\u8ff0\u6e05\u695a\u5185\u6838\u7248\u672c\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u7528\u5230\u4e86dpkg\u548capt-get\u4e24\u4e2a\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u8fd9\u4e24\u4e2a\u8f6f\u4ef6\u5305\u7ba1\u7406\u5de5\u5177\u6709\u4ec0\u4e48\u533a\u522b\u5462\uff1f<\/p>\n<p>\u6211\u4eec\u5e38\u7528\u7684apt-get\u662f\u4e00\u4e2a\u547d\u4ee4\u5f0f\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\uff0c\u8be5\u7ba1\u7406\u5668\u4ece\u7f51\u7edc\u4e0a\u4e0b\u8f7d\u6240\u9700\u8f6f\u4ef6\u5305\uff0c\u5e76\u4e14\u89e3\u51b3\u8f6f\u4ef6\u5305\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\u3002\u6bd4\u5982\uff0c\u6211\u4eec\u8981\u4e0b\u8f7d\u5b89\u88c5\u8f6f\u4ef6\u5305A\uff0c\u5982\u679cA\u8f6f\u4ef6\u5305\u9700\u8981B\u8f6f\u4ef6\u5305\u7684\u652f\u6301\uff0c\u90a3\u4e48apt-get install\u7684\u65f6\u5019\u4e5f\u4f1a\u540c\u65f6\u4e0b\u8f7d\u5e76\u5b89\u88c5B\u8f6f\u4ef6\u5305\u3002<\/p>\n<p>\u800cdkpg\uff08Debian PacKaGe\uff09\u5219\u662f\u4e00\u4e2a\u5e95\u5c42\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\uff0c\u5b83\u53ea\u7528\u6765\u7ba1\u7406\u672c\u5730\u7684\u8f6f\u4ef6\u5305\u3002\u6bd4\u5982\u4f7f\u7528dpkg -i yourpkg.deb\u5373\u53ef\u5728\u672c\u5730\u5b89\u88c5\u8f6f\u4ef6\u3002<\/p>\n<p>\u5173\u4e8e\u8fd9\u4e24\u4e2a\u5305\u7ba1\u7406\u5668\u7684\u4f7f\u7528\u65b9\u6cd5\u53ef\u53c2\u89c1<a href=\"http:\/\/wiki.ubuntu.org.cn\/index.php?title=Apt%E5%92%8Cdpkg%E5%BF%AB%E9%80%9F%E5%8F%82%E8%80%83&amp;variant=zh-cn\" target=\"_blank\">\u8fd9\u91cc<\/a>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76f8\u4fe1\u5f88\u591aubuntu\u7684\u4f7f\u7528\u8005\u5bf910.04\u60c5\u6709\u72ec\u949f\uff0c\u56e0\u4e3a\u8be5\u7248\u672c\u662f\u4e00\u4e2a\u957f\u671f\u652f\u6301\u7248\uff08Long-Term Suppor [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[205],"tags":[244,243,245],"class_list":["post-3237","post","type-post","status-publish","format-standard","hentry","category-205","tag-apt-get","tag-dpkg","tag-245"],"views":8010,"_links":{"self":[{"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/posts\/3237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/comments?post=3237"}],"version-history":[{"count":0,"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/posts\/3237\/revisions"}],"wp:attachment":[{"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/media?parent=3237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/categories?post=3237"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/tags?post=3237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}