{"id":46,"date":"2021-09-17T14:50:49","date_gmt":"2021-09-17T06:50:49","guid":{"rendered":"https:\/\/benson.ml\/?p=46"},"modified":"2022-03-23T13:47:17","modified_gmt":"2022-03-23T05:47:17","slug":"ubuntu%e5%86%85%e5%ad%98%e6%b8%85%e7%90%86","status":"publish","type":"post","link":"https:\/\/benson80.eu.org\/?p=46","title":{"rendered":"Ubuntu\u5185\u5b58\u6e05\u7406"},"content":{"rendered":"\n<p>ubuntu\u7528\u4e86\u4e00\u6bb5\u65f6\u95f4\uff0c\u53d1\u73b0\u8d8a\u6765\u8d8a\u5361\u4e86,\u4e0d\u5f97\u4e0d\u5bf9\u4e4b\u8fdb\u884c\u6e05\u7406\u4e86\uff0c\u5bf9\u4e8e\u4f7f\u7528\u8fd8\u4e0d\u600e\u4e48\u719f\u7ec3\u7684\u5c0f\u767d\u6765\u8bf4\uff0c\u4e3b\u8981\u53ef\u4ee5\u4ece\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u5165\u624b\uff1a<\/p>\n\n\n\n<p>\uff11\uff0e\u6e05\u7406\u65e7\u7248\u672c\u7684\u8f6f\u4ef6\u7f13\u5b58<\/p>\n\n\n\n<p>\u4f7f\u7528\u3000sudo apt-get autoclean<\/p>\n\n\n\n<p>\uff12\uff0e\u6e05\u7406\u6240\u6709\u8f6f\u4ef6\u7f13\u5b58<\/p>\n\n\n\n<p>\u4f7f\u7528\u3000sudo apt-get clean<\/p>\n\n\n\n<p>\uff13\uff0e\u6e05\u7406\u7cfb\u7edf\u4e2d\u4e0d\u518d\u4f7f\u7528\u7684\u5b64\u7acb\u6587\u4ef6<\/p>\n\n\n\n<p>\u4f7f\u7528 sudo apt-get autoremove<\/p>\n\n\n\n<p>\uff14\uff0e\u6e05\u7406\u8f6f\u4ef6\u7684\u6b8b\u4f59\u914d\u7f6e<\/p>\n\n\n\n<p>\u5982\u540c\u5728windows\u4e2d\u4e00\u6837\uff0c\u5728ubuntu\u4e2d\u5f53\u6211\u4eec\u4f7f\u7528apt-get remove\u5220\u9664\u67d0\u4e2a\u8f6f\u4ef6\u540e\uff0c\u8be5\u8f6f\u4ef6\u7684\u6b8b\u4f59\u914d\u7f6e\u6587\u4ef6\u5e76\u6ca1\u6709\u88ab\u5220\u9664\uff08\u82e5\u9700\u8981\u5b8c\u5168\u5220\u9664\uff0c\u53ef\u5728\u4e2d\u95f4\u52a0 \u2013 purge\u53c2\u6570\uff09\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165 sudo synaptic \u547d\u4ee4\u6765\u542f\u52a8\u7cfb\u7edf\u81ea\u5e26\u7684synaptic\u5305\u7ba1\u7406\u7a0b\u5e8f\uff0c\u5728\u5e94\u7528\u7684\u5de6\u4e0b\u89d2\u70b9\u51fbstatus\uff0c\u5c31\u80fd\u591f\u5728\u5de6\u4e0a\u89d2\u770b\u5230\u8f6f\u4ef6\u7684\u5206\u7c7b\u72b6\u6001\uff0c\u9009\u62e9\u672a\u5b89\u88c5\uff08\u6b8b\u5b58\u914d\u7f6e\uff09,\u7136\u540e\u6807\u8bb0\u5f7b\u5e95\u5220\u9664\uff0c\u5728\u5e94\u7528\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\uff15\uff0e\u5220\u9664\u591a\u4f59\u7684ubuntu\u5185\u6838<\/p>\n\n\n\n<p>\u5f53\u7cfb\u7edf\u5347\u7ea7\u5230\u4e00\u4e2a\u65b0\u7684\u5185\u6838\uff0c\u90a3\u4e48\u8001\u7684\u5185\u6838\u5c31\u53ef\u4ee5\u6e05\u7406\u6389\u4e86\uff0c\u6ca1\u6709\u5fc5\u8981\u518d\u4fdd\u5b58\u5728\u78c1\u76d8\u4e2d\u5403\u5185\u5b58\u3002\u8fd9\u91cc\u6211\u4eec\u5206\u4e3a\u56db\u6b65\uff1a<\/p>\n\n\n\n<p>\uff08\uff11\uff09\u5217\u51fa\u7cfb\u7edf\u4e2d\u5b58\u5728\u7684\u5185\u6838\u7248\u672c<\/p>\n\n\n\n<p>sudo dpkg &#8211;get-selections|grep linux<\/p>\n\n\n\n<p>\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"446\" height=\"176\" src=\"https:\/\/benson.ml\/wp-content\/uploads\/2021\/09\/image-9.png\" alt=\"\" class=\"wp-image-48\" srcset=\"https:\/\/benson80.eu.org\/wp-content\/uploads\/2021\/09\/image-9.png 446w, https:\/\/benson80.eu.org\/wp-content\/uploads\/2021\/09\/image-9-300x118.png 300w, https:\/\/benson80.eu.org\/wp-content\/uploads\/2021\/09\/image-9-421x166.png 421w\" sizes=\"auto, (max-width: 446px) 100vw, 446px\" \/><figcaption>\uff08\uff12\uff09\u67e5\u770b\u5f53\u524d\u7684\u7cfb\u7edf\u5185\u6838\u7248\u672c<br>uname -a<br>\uff08\uff13\uff09\u4f7f\u7528apt-get\u5220\u9664\u65e0\u7528\u7684\u5185\u6838<br>sudo apt-get purge linux-headers-3.13.0-32 linux-image-3.13.0-32-generic<br>\u65e7\u7684\u5185\u6838\u7248\u672c\u548c\u65b0\u7684\u7684\u533a\u522b\u5c31\u662f\u4e2d\u95f4\u7684\u6570\u5b57\u4e0d\u4e00\u6837<br>\uff08\uff14\uff09\u786e\u8ba4\u5220\u9664\uff0c\u66f4\u65b0grub<br>sudo update-grub<br>\u66f4\u65b0\u5b8c\u6bd5\u4e4b\u540e\uff0c\u6b64\u65f6\u518d\u4f7f\u7528\u6b65\u9aa4\uff08\uff11\uff09\u7684\u547d\u4ee4\u67e5\u770b\u5185\u6838\u5217\u8868\uff0c\u53d1\u73b0\u65e7\u7684\u5185\u6838\u5df2\u7ecf\u88ab\u5220\u9664\u4e86\u3002<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ubuntu\u7528\u4e86\u4e00\u6bb5\u65f6\u95f4\uff0c\u53d1\u73b0\u8d8a\u6765\u8d8a\u5361\u4e86,\u4e0d\u5f97\u4e0d\u5bf9 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46"}],"version-history":[{"count":1,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":49,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions\/49"}],"wp:attachment":[{"href":"https:\/\/benson80.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}