{"id":70,"date":"2021-05-24T09:33:54","date_gmt":"2021-05-24T01:33:54","guid":{"rendered":"https:\/\/blog.cauchyschwarz.com\/?p=70"},"modified":"2024-03-28T01:03:35","modified_gmt":"2024-03-27T17:03:35","slug":"ubuntu%e6%8a%98%e8%85%be%e7%ac%94%e8%ae%b0","status":"publish","type":"post","link":"https:\/\/blog.cauchyschwarz.com\/?p=70","title":{"rendered":"Ubuntu\u6298\u817e\u7b14\u8bb0"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e0c3ae8ac7f\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e0c3ae8ac7f\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E9%85%8D%E7%BD%AE%E4%B8%AD%E6%96%87%E7%8E%AF%E5%A2%83\" >\u914d\u7f6e\u4e2d\u6587\u73af\u5883<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E5%AE%89%E8%A3%85%E6%AD%A5%E9%AA%A4\" >\u5b89\u88c5\u6b65\u9aa4<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E5%8F%82%E8%80%83\" >\u53c2\u8003<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E8%AE%BE%E7%BD%AE%E6%97%B6%E5%8C%BA\" >\u8bbe\u7f6e\u65f6\u533a<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E9%80%9A%E7%94%A8%E7%9A%84%E6%96%B9%E6%B3%95\" >\u901a\u7528\u7684\u65b9\u6cd5<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E4%B8%AD%E6%96%87%E8%BE%93%E5%85%A5%E6%B3%95\" >\u4e2d\u6587\u8f93\u5165\u6cd5<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E8%BE%93%E5%85%A5%E7%89%B9%E6%AE%8A%E5%AD%97%E7%AC%A6\" >\u8f93\u5165\u7279\u6b8a\u5b57\u7b26<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E5%9C%A8Ubuntu%E4%B8%8B%E6%88%AA%E5%9B%BE\" >\u5728Ubuntu\u4e0b\u622a\u56fe<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#windows%E4%B8%8B%E7%94%A8zip%E6%A0%BC%E5%BC%8F%E5%8E%8B%E7%BC%A9%E6%96%87%E4%BB%B6%EF%BC%8C%E5%9C%A8linux%E4%B8%8B%E8%A7%A3%E5%8E%8B%E6%97%B6%E5%87%BA%E7%8E%B0%E4%B9%B1%E7%A0%81%E9%97%AE%E9%A2%98\" >windows\u4e0b\u7528zip\u683c\u5f0f\u538b\u7f29\u6587\u4ef6\uff0c\u5728linux\u4e0b\u89e3\u538b\u65f6\u51fa\u73b0\u4e71\u7801\u95ee\u9898<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#linux%E8%B0%83%E6%95%B4%E5%88%86%E5%8C%BA%E5%A4%A7%E5%B0%8F\" >linux\u8c03\u6574\u5206\u533a\u5927\u5c0f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E7%BB%99ubuntu1604%E5%A2%9E%E5%8A%A0%E4%BA%A4%E6%8D%A2%E5%88%86%E5%8C%BA\" >\u7ed9ubuntu16.04\u589e\u52a0\u4ea4\u6362\u5206\u533a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#init_system\" >init system<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#systemd%E5%88%A0%E9%99%A4%E6%9C%8D%E5%8A%A1\" >systemd\u5220\u9664\u670d\u52a1<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#apt%E7%9B%B8%E5%85%B3%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86\" >apt\u76f8\u5173\u9519\u8bef\u5904\u7406<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E7%A1%AC%E7%9B%98%E7%A9%BA%E9%97%B4%E7%AE%A1%E7%90%86\" >\u786c\u76d8\u7a7a\u95f4\u7ba1\u7406<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#Ubuntu%E5%90%AF%E5%8A%A8%E8%BF%87%E6%85%A2\" >Ubuntu\u542f\u52a8\u8fc7\u6162<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E6%8E%92%E6%9F%A5%E6%98%AF%E5%90%A6%E6%98%AFsnap%E5%AF%BC%E8%87%B4\" >\u6392\u67e5\u662f\u5426\u662fsnap\u5bfc\u81f4<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E6%8E%92%E6%9F%A5%E6%98%AF%E5%90%A6%E6%98%AFlocate%E6%95%B0%E6%8D%AE%E5%BA%93%E6%9B%B4%E6%96%B0%E5%AF%BC%E8%87%B4\" >\u6392\u67e5\u662f\u5426\u662flocate\u6570\u636e\u5e93\u66f4\u65b0\u5bfc\u81f4<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E6%A3%80%E6%9F%A5dmesg\" >\u68c0\u67e5dmesg<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#Ubuntu%E5%90%AF%E5%8A%A8%E6%97%B6%E8%B7%B3%E8%BF%87BIOS\" >Ubuntu\u542f\u52a8\u65f6\u8df3\u8fc7BIOS<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#apt\" >apt<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E5%9F%BA%E6%9C%AC%E6%93%8D%E4%BD%9C\" >\u57fa\u672c\u64cd\u4f5c<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E6%9F%A5%E8%AF%A2%E5%8C%85%E4%BF%A1%E6%81%AF\" >\u67e5\u8be2\u5305\u4fe1\u606f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E6%9F%A5%E8%AF%A2%E6%9F%90%E4%B8%AA%E5%91%BD%E4%BB%A4%E6%9D%A5%E8%87%AA%E4%BA%8E%E5%93%AA%E4%B8%AA%E5%8C%85\" >\u67e5\u8be2\u67d0\u4e2a\u547d\u4ee4\u6765\u81ea\u4e8e\u54ea\u4e2a\u5305<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E5%8D%87%E7%BA%A7%E6%8C%87%E5%AE%9A%E7%9A%84%E5%8C%85\" >\u5347\u7ea7\u6307\u5b9a\u7684\u5305<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E5%AE%89%E8%A3%85%E6%8C%87%E5%AE%9A%E7%89%88%E6%9C%AC%E5%8C%85\" >\u5b89\u88c5\u6307\u5b9a\u7248\u672c\u5305<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-27\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E4%B8%8B%E8%BD%BD%E6%9F%90%E4%B8%AA%E5%8C%85%E7%9A%84%E6%BA%90%E7%A0%81\" >\u4e0b\u8f7d\u67d0\u4e2a\u5305\u7684\u6e90\u7801<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-28\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#apt%E6%9F%A5%E7%9C%8B%E8%BD%AF%E4%BB%B6%E4%BE%9D%E8%B5%96\" >apt\u67e5\u770b\u8f6f\u4ef6\u4f9d\u8d56<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-29\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E6%9B%B4%E6%96%B0%E5%86%85%E6%A0%B8\" >\u66f4\u65b0\u5185\u6838<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-30\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#1%E6%89%8B%E5%8A%A8%E4%B8%8B%E8%BD%BD%E5%AE%98%E6%96%B9%E7%9A%84ppa%E9%87%8C%E7%9A%84%E5%86%85%E6%A0%B8deb%E5%8C%85%E5%AE%89%E8%A3%85\" >1.\u624b\u52a8\u4e0b\u8f7d\u5b98\u65b9\u7684ppa\u91cc\u7684\u5185\u6838deb\u5305\u5b89\u88c5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-31\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#2apt%E5%AE%89%E8%A3%85\" >2.apt\u5b89\u88c5<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-32\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E7%A1%AC%E4%BB%B6\" >\u786c\u4ef6<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-33\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=70\/#%E5%8D%87%E7%BA%A7%E5%88%B02204%E5%90%8E%E7%9A%84bug\" >\u5347\u7ea7\u523022.04\u540e\u7684bug<\/a><\/li><\/ul><\/nav><\/div>\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%85%8D%E7%BD%AE%E4%B8%AD%E6%96%87%E7%8E%AF%E5%A2%83\"><\/span>\u914d\u7f6e\u4e2d\u6587\u73af\u5883<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>\u5982\u679c\u662f\u81ea\u5df1\u5b89\u88c5\u7684Ubuntu\u684c\u9762\u64cd\u4f5c\u7cfb\u7edf\u5e94\u8be5\u4e0d\u9700\u8981\u8003\u8651\u8fd9\u4e2a\u95ee\u9898\uff0c\u56e0\u4e3a\u53ea\u8981\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u628a\u76f8\u5173\u7684\u4e2d\u6587\u9009\u9879\u90fd\u70b9\u4e0a\u5c31\u53ef\u4ee5\u4e86\u3002\u4f46\u662f\u5982\u679c\u662f\u670d\u52a1\u5668\u4e0a\u7684\u64cd\u4f5c\u7cfb\u7edf(\u6bd4\u5982vps\u7684)\u6216\u8005\u8bf4\u4f7f\u7528\u7684docker\u955c\u50cf\uff0c\u53ef\u80fd\u5c31\u6ca1\u6709\u9ed8\u8ba4\u914d\u7f6e\u597d\u4e2d\u6587\u4e86\uff0c\u8fd9\u4e2a\u65f6\u5019\u5c31\u9700\u8981\u81ea\u5df1\u52a8\u624b\u4e86\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AE%89%E8%A3%85%E6%AD%A5%E9%AA%A4\"><\/span>\u5b89\u88c5\u6b65\u9aa4<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5b89\u88c5\u76f8\u5173\u7684\u8bed\u8a00\u5305<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">   sudo apt-get install language-pack-gnome-zh-hans-base language-pack-gnome-zh-hans<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>\u8bbe\u7f6elocale<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">   sudo locale-gen \"zh_CN.UTF-8\"  \n   sudo dpkg-reconfigure locales  <\/code><\/pre>\n\n\n\n<p><code>dpkg-reconfigure<\/code>\u662f\u9700\u8981\u8fdb\u884c\u4ea4\u4e92\u6765\u9009\u62e9\u8bed\u8a00\u7684\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528<code>update-locale LANG=zh_CN.UTF-8\"\u547d\u4ee4\u6765\u66ff\u4ee3\uff0c[\u907f\u514d\u8fd9\u4e2a\u4ea4\u4e92\u8fc7\u7a0b][3]\u3002 \u5982\u679c\u8fd9\u4e2a\u8bbe\u7f6elocale\u7684\u65b9\u6cd5\u6ca1\u751f\u6548\uff0c\u90a3\u4e48\u53ef\u80fd\u9700\u8981\u91cd\u542f\u540e\u624d\u80fd\u751f\u6548\uff0c\u6216\u8005\u5728**~\/.bashrc**\u6587\u4ef6\u672b\u5c3e\u91cc\u9762\u52a0\u4e0a<\/code>export LANG=zh_CN.UTF-8<code>\uff0c\u7136\u540e\u6267\u884c<\/code>source ~\/.bashrc<code>\u3002 \u8981\u9a8c\u8bc1\u8bbe\u7f6elocale\u662f\u5426\u6210\u529f\uff0c\u6267\u884c<\/code>locale`\u547d\u4ee4\u5373\u53ef\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8F%82%E8%80%83\"><\/span>\u53c2\u8003<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>locale<\/strong>\u7684\u7ec6\u8282\u53ef\u4ee5\u67e5\u770bmanual(<code>man locale<\/code>)\u6216\u8005\u9605\u8bfb<a href=\"http:\/\/www.360doc.com\/content\/14\/0103\/13\/10384031_342301450.shtml\">\u8fd9\u7bc7\u4ecb\u7ecd<\/a>\uff0c\u8fd8\u6709<a href=\"https:\/\/www.edlad.com\/2016\/09\/12\/ubuntu-chinese\/\">\u8fd9\u7bc7\u535a\u5ba2<\/a>\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%AE%BE%E7%BD%AE%E6%97%B6%E5%8C%BA\"><\/span>\u8bbe\u7f6e\u65f6\u533a<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">sudo dpkg-reconfigure tzdata<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%80%9A%E7%94%A8%E7%9A%84%E6%96%B9%E6%B3%95\"><\/span><a href=\"http:\/\/www.thegeekstuff.com\/2010\/09\/change-timezone-in-linux\/\">\u901a\u7528\u7684\u65b9\u6cd5<\/a><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4fee\u6539<code>\/etc\/localtime<\/code>\u8fd9\u4e2a\u8f6f\u94fe\u63a5\u6587\u4ef6\u6307\u5411\u7684\u65f6\u533a\u6587\u4ef6<\/li>\n\n\n\n<li>\u6216\u8005\u4fee\u6539<code>\/etc\/timezone<\/code>\u6587\u4ef6\u91cc\u8bbe\u7f6e\u7684\u65f6\u533a<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%B8%AD%E6%96%87%E8%BE%93%E5%85%A5%E6%B3%95\"><\/span>\u4e2d\u6587\u8f93\u5165\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%E8%BE%93%E5%85%A5%E7%89%B9%E6%AE%8A%E5%AD%97%E7%AC%A6\"><span class=\"ez-toc-section\" id=\"%E8%BE%93%E5%85%A5%E7%89%B9%E6%AE%8A%E5%AD%97%E7%AC%A6\"><\/span>\u8f93\u5165\u7279\u6b8a\u5b57\u7b26<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8f93\u5165\u7701\u7565\u53f7 \u4e2d\u6587\u8f93\u5165\u6cd5\u4e0b<code>shift+6<\/code>\u53ef\u4ee5\u8f93\u5165\u7701\u7565\u53f7\u3002<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%9C%A8Ubuntu%E4%B8%8B%E6%88%AA%E5%9B%BE\"><\/span>\u5728Ubuntu\u4e0b\u622a\u56fe<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u4f7f\u7528\u622a\u56fe\u952e(<em>PrtScr<\/em>\u952e)\u5168\u5c4f\u5e55\u622a\u56fe<\/li>\n\n\n\n<li>\u4f7f\u7528<em>gnome-screenshot<\/em>\u952e\u622a\u56fe<br>\u5176\u5b9e\u622a\u56fe\u952e\u622a\u56fe\u4e5f\u662f\u7528\u7684\u6b64\u7a0b\u5e8f\u622a\u56fe\u3002\u901a\u8fc7\u547d\u4ee4<code>gnome-screenshot -i<\/code>\u8fd8\u53ef\u4ee5\u9009\u62e9\u5c4f\u5e55\u6307\u5b9a\u533a\u57df\u622a\u56fe\u3002\u5bf9\u4e8e\u6539\u547d\u4ee4\u7684\u5176\u4ed6\u4f7f\u7528\u65b9\u6cd5\u53ef\u4ee5\u67e5\u770bmanual\u6216\u8005\u67e5\u770b<code>-h<\/code>\u9009\u9879\u3002<\/li>\n<\/ol>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"windows%E4%B8%8B%E7%94%A8zip%E6%A0%BC%E5%BC%8F%E5%8E%8B%E7%BC%A9%E6%96%87%E4%BB%B6%EF%BC%8C%E5%9C%A8linux%E4%B8%8B%E8%A7%A3%E5%8E%8B%E6%97%B6%E5%87%BA%E7%8E%B0%E4%B9%B1%E7%A0%81%E9%97%AE%E9%A2%98\"><\/span>windows\u4e0b\u7528zip\u683c\u5f0f\u538b\u7f29\u6587\u4ef6\uff0c\u5728linux\u4e0b\u89e3\u538b\u65f6\u51fa\u73b0\u4e71\u7801\u95ee\u9898<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>\u8fd9\u4e2a\u95ee\u9898\u5e94\u8be5\u662f\u538b\u7f29\u65f6\u4f7f\u7528\u7684windows\u7cfb\u7edf\u7684gbk\u7f16\u7801\uff0c\u4f46\u662f\u89e3\u538b\u65f6\u5374\u6309\u7167utf8\u683c\u5f0f\u89e3\u538b\uff0c\u56e0\u6b64\u51fa\u73b0\u89e3\u538b\u4e0d\u6210\u529f\uff0c\u6709\u4e71\u7801\u7684\u95ee\u9898\u3002<br>\u7ecf\u8fc7\u9a8c\u8bc1\u7684\u53ef\u884c\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">unzip -O CP936 xxx.zip<\/code><\/pre>\n\n\n\n<p>\u636e\u8bf4\u5c06CP936\u6362\u4e3a<strong>GBK<\/strong>,<strong>GB18030<\/strong>\u7b49\u503c\u4e5f\u53ef\u4ee5\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"linux%E8%B0%83%E6%95%B4%E5%88%86%E5%8C%BA%E5%A4%A7%E5%B0%8F\"><\/span>linux\u8c03\u6574\u5206\u533a\u5927\u5c0f<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>1.\u9996\u5148\u5bf9\u4e8e\u6302\u8f7d\u5728\/\u76ee\u5f55\u7684\u5206\u533a\u662f\u6ca1\u6cd5\u5728\u5f00\u673a\u65f6\u8c03\u6574\u7684\uff0c\u53ea\u80fd\u8c03\u6574\u6302\u8f7d\u5728\u5176\u4ed6\u5206\u533a\u7684\u76ee\u5f55\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/askubuntu.com\/questions\/492054\/how-to-extend-my-root-partition\">https:\/\/askubuntu.com\/questions\/492054\/how-to-extend-my-root-partition<\/a><\/p>\n\n\n\n<p>2.\u5bf9\u4e8e\u4e0d\u662f\u6302\u8f7d\u5728\/\u76ee\u5f55\u7684\u5206\u533a\uff0c\u53ef\u4ee5\u7528fdisk\u8c03\u6574\u5206\u533a\u5927\u5c0f\u548cresize2fs\u8c03\u6574\u6269\u5bb9\u540e\u7684\u5206\u533a\u4e0a\u7684\u6587\u4ef6\u7cfb\u7edf\u3002\u5982\u679c\u662f\u60f3\u4e0d\u635f\u574f\u539f\u6709\u5206\u533a\u6570\u636e\u7684\u60c5\u51b5\u4e0b\u76f4\u63a5\u5bf9\u5206\u533a\u6269\u5bb9\uff0c\u90a3\u4e48\u5220\u9664\u540e\u91cd\u5efa\u7684\u65b0\u5206\u533a\u7684\u5176\u5b9e\u4f4d\u7f6e\u4e00\u5b9a\u8981\u548c\u539f\u6765\u5206\u533a\u7684\u5176\u5b9e\u4f4d\u7f6e\u76f8\u540c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-raspberrytips wp-block-embed-raspberrytips\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"video-container\"><blockquote class=\"wp-embedded-content\" data-secret=\"NcKQyhEzGm\"><a href=\"https:\/\/raspberrytips.com\/resize-partition-ubuntu\/\">How To Safely Extend Your Ubuntu Partitions (GUI &#038; Commands)<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;How To Safely Extend Your Ubuntu Partitions (GUI &#038; Commands)&#8221; &#8212; RaspberryTips\" src=\"https:\/\/raspberrytips.com\/resize-partition-ubuntu\/embed\/#?secret=I0CjvH3Zen#?secret=NcKQyhEzGm\" data-secret=\"NcKQyhEzGm\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<p>\u81ea\u5df1\u9047\u5230\u7684\u95ee\u9898\uff1amininet\u5b98\u65b9\u53d1\u5e03\u7684vm\u865a\u62df\u786c\u76d8\u592a\u5c0f\uff0c\u5c06\u8fd9\u4e2a\u865a\u62df\u786c\u76d8\u6269\u5bb9\u540e\uff0c\u9700\u8981\u8c03\u6574\u91cc\u9762\u7684\u5206\u533a\u8868\u3002mininet vm\u7684\u5206\u533a\u8868\u662f\u4e00\u4e2aextended\u5206\u533a\u91cc\u6302\u8f7d\u4e86\u4e00\u4e2a\u903b\u8f91\u5206\u533a\uff0c\u6309\u7406\u5e94\u8be5\u5148\u8c03\u6574\u8fd9\u4e2aextended\u5206\u533a\uff0c\u518d\u8c03\u6574\u903b\u8f91\u5206\u533a\u3002\u9047\u5230\u7684\u95ee\u9898\u662f\u65b0\u5efa\u7684extended\u5206\u533a\u8d77\u59cb\u4f4d\u7f6e\u53ef\u4ee5\u548c\u539f\u6765\u7684extended\u5206\u533a\u8d77\u59cb\u4f4d\u7f6e\u8bbe\u7f6e\u4e3a\u76f8\u540c\u7684\u503c\uff0c\u4f46\u662f\u8fd9\u4e2a\u903b\u8f91\u5206\u533a\u7684\u8d77\u59cb\u4f4d\u7f6e\u8bbe\u7f6e\u4e3a\u539f\u6765\u7684\u503c\u65f6\u4f1a\u88ab\u63d0\u793a\u8d85\u51fa\u53ef\u7528\u8303\u56f4\uff0c\u5b9e\u5728\u641e\u4e0d\u6e05\u695a\u8fd9\u4e2a\u95ee\u9898\u7684\u539f\u56e0\u5728\u54ea\u513f\u3002\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%BB%99ubuntu1604%E5%A2%9E%E5%8A%A0%E4%BA%A4%E6%8D%A2%E5%88%86%E5%8C%BA\"><\/span>\u7ed9ubuntu16.04\u589e\u52a0\u4ea4\u6362\u5206\u533a<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p><a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-add-swap-space-on-ubuntu-16-04\">\u539f\u6587\u5730\u5740<\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u663e\u793a\u5f53\u524d\u662f\u5426\u6709\u4ea4\u6362\u5206\u533a<br><code>swapon --show<\/code>\u6216\u8005<code>free -lh<\/code><\/li>\n\n\n\n<li>\u521b\u5efa\u4e00\u4e2a\u4ea4\u6362\u6587\u4ef6<br><code>fallocate -l 2G \/swapfile<\/code><br><code>chmod 600 \/swapfile<\/code><br><code>mkswap \/swapfile<\/code><\/li>\n\n\n\n<li>\u4f7f\u7528swap\u6587\u4ef6<br><code>swapon \/swapfile<\/code><br>\u518d\u7528<code>swapon --show<\/code>\u786e\u8ba4<\/li>\n\n\n\n<li>\u73b0\u5728\u7684swap\u6587\u4ef6\u6bcf\u6b21\u91cd\u542f\u540e\u5c31\u4f1a\u6d88\u5931\uff0c\u6bcf\u6b21\u91cd\u542f\u540e\u9700\u8981\u91cd\u65b0\u64cd\u4f5c\u4e00\u904d\u3002<\/li>\n\n\n\n<li>\u8ba9\u8fd9\u4e2a\u4ea4\u6362\u5206\u533a\u53d8\u4e3a\u6c38\u4e45\u7684<br><code>cp \/etc\/fstab \/etc\/fstab.bak<\/code><br><code>echo '\/swapfile none swap sw 0 0' | sudo tee -a \/etc\/fstab<\/code><\/li>\n\n\n\n<li>\u8bbe\u7f6e\u4f7f\u7528\u4ea4\u6362\u5206\u533a\u7684\u79ef\u6781\u7a0b\u5ea6\uff1a<br><code>cat \/proc\/sys\/vm\/swappiness<\/code><br><code>sysctl vm.swappiness=10<\/code><br>\u6216\u8005\u4e3a\u4e86\u8ba9\u5176\u6c38\u4e45\u751f\u6548\uff0c\u5728<em>\/etc\/sysctl.conf<\/em>\u6587\u4ef6\u91cc\u52a0\u4e00\u53e5:<code>vm.swappiness=10<\/code><br>\u4e0a\u9762\u768410\u90fd\u662f\u81ea\u5df1\u6307\u5b9a\u7684\u4f7f\u7528\u4ea4\u6362\u5206\u533a\u7684\u79ef\u6781\u6210\u90fd\uff0c\u57280-100\u8303\u56f4\u5185\u5c31\u53ef\u4ee5\u3002<\/li>\n\n\n\n<li>\u8bbe\u7f6e\u7f13\u5b58\u6587\u4ef6\u76ee\u5f55\u4fe1\u606f\u79ef\u6781\u7a0b\u5ea6\u7684\u503c\uff1a<br><code>cat \/proc\/sys\/vm\/vfs_cache_pressure<\/code>(\u503c\u8d8a\u5927\u8d8a\u4e0d\u7f13\u5b58\u5728\u5185\u5b58\u91cc)<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"init_system\"><\/span>init system<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li>systemd<\/li>\n\n\n\n<li>http:\/\/www.ruanyifeng.com\/blog\/2016\/03\/systemd-tutorial-part-two.html<\/li>\n\n\n\n<li>https:\/\/unix.stackexchange.com\/a\/47715\/191816<\/li>\n\n\n\n<li>https:\/\/superuser.com\/a\/1274913\/879851<\/li>\n\n\n\n<li>https:\/\/stackoverflow.com\/a\/46572318\/5357784 \u5c31\u4e2a\u4eba\u4f7f\u7528\u7ecf\u9a8c\u800c\u8a00\uff0c\u5728\u4f7f\u7528sytemd\u6765\u5b8c\u6210\u5f00\u673a\u542f\u52a8\u5bb9\u5668\u7684\u4efb\u52a1\u65f6(<code>docker run -d xxx<\/code>)\uff0c\u9700\u8981\u8bbe\u7f6e<code>Type=oneshot<\/code>\u548c<code>RemainAfterExit=true<\/code>\uff0c\u8bbe\u7f6e<code>Type=simple<\/code>\u548c<code>Type=forking<\/code>\u90fd\u662f\u4e0d\u53ef\u4ee5\u7684\uff0c\u56e0\u4e3a<code>-d<\/code>\u542f\u52a8\u7684\u5bb9\u5668\u4e0d\u662f\u524d\u53f0\u8fdb\u7a0b\uff0c\u4e5f\u6ca1\u6709\u6309\u7167<code>forking<\/code>\u9884\u671f\u7684\u6a21\u5f0f\u53d8\u6210\u5b88\u62a4\u8fdb\u7a0b\u3002\u53ef\u4ee5\u8003\u8651\u7528<code>Type=simple<\/code>\u548c<code>docker run xxx<\/code>\u6765\u542f\u52a8\u5bb9\u5668\uff0c\u56e0\u4e3a\u8fd9\u79cd\u65b9\u5f0f\u542f\u52a8\u7684\u5bb9\u5668\u662f\u4ee5\u524d\u53f0\u8fdb\u7a0b\u7684\u65b9\u5f0f\u8fd0\u884c\u7684\u3002\u5982\u679c\u9009\u62e9\u4e86\u7528<code>docker run -d xxx<\/code>\u6765\u542f\u52a8\u5bb9\u5668\uff0c\u800c\u4e14systemd\u8bbe\u7f6e\u7684<code>Type=simple<\/code>\u6216\u8005<code>Type=forking<\/code>\uff0c\u90a3\u4e48systemd\u53cd\u800c\u4f1a\u5728\u68c0\u6d4b\u5230\u8d85\u65f6\u5f02\u5e38\u4e4b\u540e\uff0c\u6267\u884c<code>ExecStop<\/code>\u628a\u5df2\u7ecf\u542f\u52a8\u7684\u5bb9\u5668\u7ed9\u505c\u6389\u3002<\/li>\n\n\n\n<li>openrc<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"systemd%E5%88%A0%E9%99%A4%E6%9C%8D%E5%8A%A1\"><\/span>systemd\u5220\u9664\u670d\u52a1<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><a href=\"https:\/\/superuser.com\/questions\/513159\/how-to-remove-systemd-services\">https:\/\/superuser.com\/questions\/513159\/how-to-remove-systemd-services<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">systemctl stop [servicename]\nsystemctl disable [servicename]\nrm \/etc\/systemd\/system\/[servicename]\nrm \/etc\/systemd\/system\/[servicename] # and symlinks that might be related\nrm \/usr\/lib\/systemd\/system\/[servicename] \nrm \/usr\/lib\/systemd\/system\/[servicename] # and symlinks that might be related\nsystemctl daemon-reload\nsystemctl reset-failed<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"apt%E7%9B%B8%E5%85%B3%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86\"><\/span>apt\u76f8\u5173\u9519\u8bef\u5904\u7406<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p><code>The package lists or status file could not be parsed or opened<\/code><br>https:\/\/blog.csdn.net\/errno\/article\/details\/6407461<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%A1%AC%E7%9B%98%E7%A9%BA%E9%97%B4%E7%AE%A1%E7%90%86\"><\/span>\u786c\u76d8\u7a7a\u95f4\u7ba1\u7406<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>\u67e5\u770b\u786c\u76d8\u7684\u4f7f\u7528\u60c5\u51b5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">sudo baobab<\/code><\/pre>\n\n\n\n<p>\u8bb0\u5f97\u4e00\u5b9a\u8981\u52a0sudo\uff0c\u4e0d\u7136\u6709\u4e9b\u6587\u4ef6\u5939\u65e0\u6cd5\u8bbf\u95ee\uff0c\u5f97\u51fa\u7684\u6570\u636e\u4e0d\u51c6\u786e\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">df -h<\/code><\/pre>\n\n\n\n<p><a href=\"https:\/\/askubuntu.com\/questions\/655900\/is-it-advisable-to-delete-cache-files\">\u5220\u9664.cache\u6587\u4ef6\u5939<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Ubuntu%E5%90%AF%E5%8A%A8%E8%BF%87%E6%85%A2\"><\/span>Ubuntu\u542f\u52a8\u8fc7\u6162<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">systemd-analyze blame<\/code><\/pre>\n\n\n\n<p>\u627e\u51fa\u8017\u65f6\u591a\u7684\u4efb\u52a1\u5173\u6389\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">sudo systemd-analyze critical-chain<\/code><\/pre>\n\n\n\n<p>blame\u7684\u7ed3\u679c\u4e0d\u591f\u76f4\u89c2\uff0c\u56e0\u4e3a\u6709\u4e9b\u670d\u52a1\u662f\u5e76\u884c\u542f\u52a8\u7684\uff0c\u65f6\u95f4\u91cd\u590d\u8ba1\u7b97\u4e86\uff0c\u6240\u4ee5\u8fd8\u662f\u770bcritical-chain\u3002\u8f93\u51fa\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"373\" src=\"https:\/\/blog.cauchyschwarz.com\/wp-content\/uploads\/2021\/06\/systemd-analyze-critical-chain-1-1024x373.png\" alt=\"\" class=\"wp-image-187\" srcset=\"https:\/\/blog.cauchyschwarz.com\/wp-content\/uploads\/2021\/06\/systemd-analyze-critical-chain-1-1024x373.png 1024w, https:\/\/blog.cauchyschwarz.com\/wp-content\/uploads\/2021\/06\/systemd-analyze-critical-chain-1-300x109.png 300w, https:\/\/blog.cauchyschwarz.com\/wp-content\/uploads\/2021\/06\/systemd-analyze-critical-chain-1-768x279.png 768w, https:\/\/blog.cauchyschwarz.com\/wp-content\/uploads\/2021\/06\/systemd-analyze-critical-chain-1-670x244.png 670w, https:\/\/blog.cauchyschwarz.com\/wp-content\/uploads\/2021\/06\/systemd-analyze-critical-chain-1.png 1149w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%8E%92%E6%9F%A5%E6%98%AF%E5%90%A6%E6%98%AFsnap%E5%AF%BC%E8%87%B4\"><\/span>\u6392\u67e5\u662f\u5426\u662fsnap\u5bfc\u81f4<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><a href=\"https:\/\/askubuntu.com\/questions\/1056645\/what-are-the-dev-loop-services-that-started-on-boot\">https:\/\/askubuntu.com\/questions\/1056645\/what-are-the-dev-loop-services-that-started-on-boot<\/a><\/p>\n\n\n\n<p>\u901a\u8fc7losetup\u547d\u4ee4\uff0c\u67e5\u770b\u54ea\u4e9bsnap\u5e94\u7528\u5bf9\u5e94\u7684loop device\u5bfc\u81f4\u4e86\u5f00\u673a\u542f\u52a8\u6162\u3002<\/p>\n\n\n\n<p>\u53bb\u9664swap\u7a7a\u95f4<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%8E%92%E6%9F%A5%E6%98%AF%E5%90%A6%E6%98%AFlocate%E6%95%B0%E6%8D%AE%E5%BA%93%E6%9B%B4%E6%96%B0%E5%AF%BC%E8%87%B4\"><\/span>\u6392\u67e5\u662f\u5426\u662flocate\u6570\u636e\u5e93\u66f4\u65b0\u5bfc\u81f4<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u6211\u8bf4\u6211\u7684\u7535\u8111\u6bcf\u6b21\u542f\u52a8\u540e\u600e\u4e48\u90fd\u4f1a\u53d8\u5f97\u5361\u5361\u7684\uff0c\u539f\u6765\u662f\u6709\u4e2aupdatedb-mlocate\u7a0b\u5e8f\u6bcf\u6b21\u542f\u52a8\u540e\u5728\u81ea\u52a8\u8fd0\u884c\uff0c\u6c14\u6b7b\u6211\u4e86\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%A3%80%E6%9F%A5dmesg\"><\/span>\u68c0\u67e5dmesg<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u53d1\u73b0\u542f\u52a8\u540e\u7684dmesg\u62a5\u4e86\u4e00\u4e2abug\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[    0.656624] tpm_crb MSFT0101:00: [Firmware Bug]: ACPI region does not cover the entire command\/response buffer. [mem 0xfed40000-0xfed4087f flags 0x200] vs fed40080 f80\n[    0.656636] tpm_crb MSFT0101:00: [Firmware Bug]: ACPI region does not cover the entire command\/response buffer. [mem 0xfed40000-0xfed4087f flags 0x200] vs fed40080 f80<\/pre>\n\n\n\n<p>\u6309\u7167<a href=\"https:\/\/forums.linuxmint.com\/viewtopic.php?t=263918#p143116\" data-type=\"URL\" data-id=\"https:\/\/forums.linuxmint.com\/viewtopic.php?t=263918#p143116\">\u8fd9\u4e2a\u8ba8\u8bba<\/a>\u5173\u95edTPM(Trusted Platform Module)\uff0c\u5173\u95ed\u8fd9\u4e2aDELL BIOS\u7684bug\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Ubuntu%E5%90%AF%E5%8A%A8%E6%97%B6%E8%B7%B3%E8%BF%87BIOS\"><\/span>Ubuntu\u542f\u52a8\u65f6\u8df3\u8fc7BIOS<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u88c5\u4e86\u53cc\u7cfb\u7edf(\u51c6\u786e\u7684\u8bf4\u6211\u662f\u53cc\u786c\u76d8\u53cc\u7cfb\u7edf)\uff0cUbuntu\u91cd\u542f\u7684\u65f6\u5019\u81ea\u52a8\u8df3\u8fc7BIOS\uff0c\u5bfc\u81f4\u4e0d\u80fd\u9009\u62e9\u542f\u52a8\u5230Windows\uff0c\u53c2\u8003\u4e86<a href=\"https:\/\/askubuntu.com\/a\/1275998\/580128\">\u8fd9\u4e2a\u56de\u7b54<\/a>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">sudo systemctl reboot --firmware-setup<\/code><\/pre>\n\n\n\n<p>\u4e0d\u8fc7\u5207\u56dewindows\u540e\uff0cwindows\u53c8\u6709\u5feb\u901f\u542f\u52a8\uff0c\u53c8\u4f1a\u8df3\u8fc7BIOS\u6ca1\u6cd5\u8fdb\u5165Ubuntu!!!\u89e3\u51b3\u529e\u6cd5\u5c31\u662fwin10\u641c\u7d22\u680f\u91cc\u641c\u7d22<strong>\u9ad8\u7ea7\u542f\u52a8\u9009\u9879<\/strong>\uff0c\u5728\u91cc\u9762\u627e\u4e00\u4e0b(\u5b50\u9009\u9879\u7684)\u5b50\u9009\u9879\uff0c\u6709\u4e00\u4e2a<strong>UEFI\u542f\u52a8\u8bbe\u7f6e<\/strong>\u7684\u9009\u9879\uff0c\u9009\u8fd9\u4e2a\u9009\u9879\u5c31\u53ef\u4ee5\u5728\u542f\u52a8\u7684\u65f6\u5019\u53c8\u8fdb\u5165BIOS\u4e86\u3002\u4f46\u5728\u5b9e\u9645\u4f7f\u7528\u8fc7\u7a0b\u4e2d\uff0c\u6211\u9047\u5230\u4e86\u901a\u8fc7<strong>\u9ad8\u7ea7\u542f\u52a8\u542f\u52a8\u9009\u9879<\/strong>\u91cc\u7684<strong>UEFI\u542f\u52a8\u8bbe\u7f6e<\/strong>\u4ecd\u7136\u4e0d\u80fd\u8fdb\u5165BIOS\u7684\u60c5\u51b5\uff0c\u6700\u540e\u662f\u901a\u8fc7\u5148\u4f7f\u7528<strong>\u9ad8\u7ea7\u542f\u52a8\u9009\u9879<\/strong>\u8fdb\u5165<strong>\u5b89\u5168\u6a21\u5f0f<\/strong>\uff0c\u518d\u91cd\u542f(\u4e0d\u8bb0\u5f97\u91cd\u542f\u4e4b\u524d\u662f\u5426\u6709\u518d\u8bbe\u7f6e<strong>UEFI\u542f\u52a8\u8bbe\u7f6e<\/strong>\uff0c\u5e94\u8be5\u662f\u6ca1\u6709)\uff0c\u5e76\u4e14<strong>\u5728\u91cd\u542f\u8fc7\u7a0b\u4e2d\u6309F2<\/strong>\u8fdb\u5165BIOS\u89e3\u51b3\u4e86win10\u91cd\u542f\u540e\u65e0\u6cd5\u8fdb\u5165BIOS\u7684\u95ee\u9898\u3002\u731c\u6d4bwin10\u91cd\u542f\u8fdb\u5165\u5b89\u5168\u6a21\u5f0f\u662f\u4f1a\u5173\u95ed\u5feb\u901f\u542f\u52a8\u76f8\u5173\u8bbe\u7f6e\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"apt\"><\/span>apt<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>Ubuntu\u7684\u5305\u7ba1\u7406\u5de5\u5177apt-get\u6216\u8005apt\u7ecf\u5e38\u7528\uff0c\u4f46\u662f\u5462\u53c8\u7ecf\u5e38\u4f1a\u9047\u5230\u4e00\u4e9b\u5c0f\u95ee\u9898\u9700\u8981\u4e0a\u7f51\u67e5\uff0c\u8fd9\u91cc\u5c31\u505a\u4e2a\u6c47\u603b\u597d\u4e86\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%E5%9F%BA%E6%9C%AC%E6%93%8D%E4%BD%9C\"><span class=\"ez-toc-section\" id=\"%E5%9F%BA%E6%9C%AC%E6%93%8D%E4%BD%9C\"><\/span>\u57fa\u672c\u64cd\u4f5c<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%E6%9F%A5%E8%AF%A2%E5%8C%85%E4%BF%A1%E6%81%AF\"><span class=\"ez-toc-section\" id=\"%E6%9F%A5%E8%AF%A2%E5%8C%85%E4%BF%A1%E6%81%AF\"><\/span>\u67e5\u8be2\u5305\u4fe1\u606f<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">apt show &lt;pkg-name&gt;\napt-cache show &lt;pkg-name&gt;\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%E6%9F%A5%E8%AF%A2%E6%9F%90%E4%B8%AA%E5%91%BD%E4%BB%A4%E6%9D%A5%E8%87%AA%E4%BA%8E%E5%93%AA%E4%B8%AA%E5%8C%85\"><span class=\"ez-toc-section\" id=\"%E6%9F%A5%E8%AF%A2%E6%9F%90%E4%B8%AA%E5%91%BD%E4%BB%A4%E6%9D%A5%E8%87%AA%E4%BA%8E%E5%93%AA%E4%B8%AA%E5%8C%85\"><\/span>\u67e5\u8be2\u67d0\u4e2a\u547d\u4ee4\u6765\u81ea\u4e8e\u54ea\u4e2a\u5305<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">which &lt;cmd-name&gt;\ndpkg -S &lt;cmd-path&gt;\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%E5%8D%87%E7%BA%A7%E6%8C%87%E5%AE%9A%E7%9A%84%E5%8C%85\"><span class=\"ez-toc-section\" id=\"%E5%8D%87%E7%BA%A7%E6%8C%87%E5%AE%9A%E7%9A%84%E5%8C%85\"><\/span>\u5347\u7ea7\u6307\u5b9a\u7684\u5305<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">apt-get install --only-upgrade &lt;pkg-name&gt;\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AE%89%E8%A3%85%E6%8C%87%E5%AE%9A%E7%89%88%E6%9C%AC%E5%8C%85\"><\/span>\u5b89\u88c5\u6307\u5b9a\u7248\u672c\u5305<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>https:\/\/askubuntu.com\/questions\/428772\/how-to-install-specific-version-of-some-package<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">sudo apt-get install package=version<\/code><\/pre>\n\n\n\n<p>apt\u5b89\u88c5\u65e5\u5fd7\u6587\u4ef6\u4f4d\u7f6e\uff1a\/var\/log\/apt\/history.log<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%E4%B8%8B%E8%BD%BD%E6%9F%90%E4%B8%AA%E5%8C%85%E7%9A%84%E6%BA%90%E7%A0%81\"><span class=\"ez-toc-section\" id=\"%E4%B8%8B%E8%BD%BD%E6%9F%90%E4%B8%AA%E5%8C%85%E7%9A%84%E6%BA%90%E7%A0%81\"><\/span>\u4e0b\u8f7d\u67d0\u4e2a\u5305\u7684\u6e90\u7801<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u9700\u8981\u63d0\u524d\u5728Software Updater\u91cc\u628a\u4e0b\u8f7d\u6e90\u7801\u7684\u9009\u9879\u7ed9\u52fe\u9009\u4e0a\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">apt-get source &lt;pkg-name&gt;\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"apt%E6%9F%A5%E7%9C%8B%E8%BD%AF%E4%BB%B6%E4%BE%9D%E8%B5%96\"><\/span>apt\u67e5\u770b\u8f6f\u4ef6\u4f9d\u8d56<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><a href=\"https:\/\/linux.cn\/article-12987-1.html\">https:\/\/linux.cn\/article-12987-1.html<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%E6%9B%B4%E6%96%B0%E5%86%85%E6%A0%B8\"><span class=\"ez-toc-section\" id=\"%E6%9B%B4%E6%96%B0%E5%86%85%E6%A0%B8\"><\/span>\u66f4\u65b0\u5185\u6838<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><a href=\"https:\/\/www.ostechnix.com\/different-ways-to-update-linux-kernel-for-ubuntu\/\">\u8fd9\u7bc7\u6587\u7ae0<\/a>\u8bb2\u5f97\u633a\u597d\u7684\uff0c\u4f46\u6211\u4ecd\u7136\u5199\u4e24\u53e5\u5427\uff0c\u5199\u4e24\u4e2a\u7528apt\u66f4\u65b0\u7684\u65b9\u5f0f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1%E6%89%8B%E5%8A%A8%E4%B8%8B%E8%BD%BD%E5%AE%98%E6%96%B9%E7%9A%84ppa%E9%87%8C%E7%9A%84%E5%86%85%E6%A0%B8deb%E5%8C%85%E5%AE%89%E8%A3%85\"><span class=\"ez-toc-section\" id=\"1%E6%89%8B%E5%8A%A8%E4%B8%8B%E8%BD%BD%E5%AE%98%E6%96%B9%E7%9A%84ppa%E9%87%8C%E7%9A%84%E5%86%85%E6%A0%B8deb%E5%8C%85%E5%AE%89%E8%A3%85\"><\/span>1.\u624b\u52a8\u4e0b\u8f7d\u5b98\u65b9\u7684ppa\u91cc\u7684\u5185\u6838deb\u5305\u5b89\u88c5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><a href=\"https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/\">\u8fd9\u4e2a\u7f51\u5740<\/a>\u5217\u51fa\u4e86\u5b98\u65b9\u7f16\u8bd1\u597d\u7684\u5404\u4e2a\u5185\u6838\u7248\u672c\u7684deb\u5305\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u4e0b\u6765\u7136\u540edpkg\u547d\u4ee4\u5b89\u88c5\u5c31\u597d\u3002\u5982\u679c\u5b89\u88c5\u7684\u7248\u672c\u6bd4\u73b0\u6709\u7684\u5185\u6838\u7248\u672c\u4f4e\uff0c\u90a3\u4e48\u53ef\u80fd\u9700\u8981\u6539\u4e0b\/boot\/grub\/grub.cfg\u6587\u4ef6\u548c\/etc\/default\/grub\u6587\u4ef6\uff0c\u8ba9\u673a\u5668\u542f\u52a8\u65f6\u4f7f\u7528\u4f60\u65b0\u5b89\u88c5\u7684\u5185\u6838\u7248\u672c\uff0c\u6216\u8005\u662f\u7559\u70b9\u65f6\u95f4\u7ed9\u4f60\u9009\u62e9\u3002\u5177\u4f53\u7684\u8fc7\u7a0b\u6211\u8c8c\u4f3c\u5728\u4e4b\u524d\u7684\u535a\u5ba2\u91cc\u5199\u8fc7\u4e86\u6216\u8005\u5c06\u8981\u5199\u8fd9\u4e48\u4e00\u7bc7\u535a\u5ba2\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2apt%E5%AE%89%E8%A3%85\"><span class=\"ez-toc-section\" id=\"2apt%E5%AE%89%E8%A3%85\"><\/span>2.apt\u5b89\u88c5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u4e0a\u9762\u7684\u65b9\u6cd5\u56e0\u4e3a\u8fd9\u4e2adeb\u5305\u662f\u4eceppa\u91cc\u4e0b\u8f7d\u7684\uff0c\u8c8c\u4f3c\u4e0d\u591f\u6743\u5a01\uff0c\u6240\u4ee5\u518d\u770b\u4e0b\u600e\u4e48\u5347\u7ea7\u6b63\u5f0f\u7248\u672c\u7684\u5185\u6838\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">sudo apt-get update\nsudo apt-get upgrade linux-image-generic\n<\/code><\/pre>\n\n\n\n<p>\u6bd4\u8f83\u5947\u602a\u7684\u662f\uff0c\u4ee5Ubuntu18.04\u4e3a\u4f8b\uff0c\u73b0\u5728\u7684\u5b98\u7f51\u955c\u50cf\u90fd\u662f\u5e26\u76845.0\u4ee5\u4e0a\u7684\u5185\u6838\uff0c\u6211\u8fd9\u4e2a\u4ee5\u524d\u5b89\u88c5\u768418.04\u7248\u672c\u786e\u53ea\u80fd\u5347\u52304.15\uff0c\u5f3a\u884c\u5b89\u88c5\u4e86\u5b98\u65b9\u4ed3\u5e93\u91cc\u63d0\u4f9b\u76845.0\u4ee5\u4e0a\u7684\u5185\u6838\uff0c\u7ed3\u679c\u5c31\u51fa\u73b0\u89e6\u6478\u677f\u53cd\u5e94\u8fdf\u949d\u7684\u73b0\u8c61\uff0c\u53ea\u597d\u53c8\u6362\u56de4.15\u7684\u5185\u6838\u3002\u603b\u4e4b\u5728\u7269\u7406\u673a\u4e0a\u6362\u5185\u6838\u8fd8\u771f\u662f\u4e00\u4ef6\u6bd4\u8f83\u5371\u9669\u7684\u4e8b\u60c5\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%A1%AC%E4%BB%B6\"><\/span>\u786c\u4ef6<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>\u67e5\u770b\u5185\u5b58\u9891\u7387<\/p>\n\n\n\n<p>please refer to this&nbsp;<a href=\"https:\/\/askubuntu.com\/questions\/391173\/how-to-find-the-frequency-and-type-of-my-current-ram\">web page<\/a>.<\/p>\n\n\n\n<p>For short:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">sudo lshw -short -C memory<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8D%87%E7%BA%A7%E5%88%B02204%E5%90%8E%E7%9A%84bug\"><\/span>\u5347\u7ea7\u523022.04\u540e\u7684bug<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>1.\u6d3b\u52a8(activities)\u91cc\u9762\u627e\u4e0d\u5230chrome\u6d4f\u89c8\u5668<\/p>\n\n\n\n<p><a href=\"https:\/\/askubuntu.com\/questions\/1412587\/upgraded-to-ubuntu-22-04-and-i-cant-open-chrome-in-activities\">https:\/\/askubuntu.com\/questions\/1412587\/upgraded-to-ubuntu-22-04-and-i-cant-open-chrome-in-activities<\/a><\/p>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6848\u5c31\u662f\u628a\u76ee\u5f55\/home\/user\/.local\/share\/applications\/\u91ccchrome\u7684.desktop\u6587\u4ef6\u5220\u6389\uff0c\u7136\u540e\u628achrome\u91cd\u65b0\u5b89\u88c5\u4e00\u904d\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u914d\u7f6e\u4e2d\u6587\u73af\u5883 \u5982\u679c\u662f\u81ea\u5df1\u5b89\u88c5\u7684Ubuntu\u684c\u9762\u64cd\u4f5c\u7cfb\u7edf\u5e94\u8be5\u4e0d\u9700\u8981\u8003\u8651\u8fd9\u4e2a\u95ee\u9898\uff0c\u56e0\u4e3a\u53ea\u8981\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u628a\u76f8\u5173\u7684\u4e2d\u6587\u9009\u9879\u90fd\u70b9\u4e0a\u5c31\u53ef\u4ee5\u4e86\u3002\u4f46\u662f\u5982\u679c\u662f\u670d\u52a1\u5668\u4e0a\u7684\u64cd\u4f5c\u7cfb\u7edf(\u6bd4\u5982vps\u7684)\u6216\u8005\u8bf4\u4f7f\u7528\u7684docker\u955c&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[17],"class_list":["post-70","post","type-post","status-publish","format-standard","hentry","category-10","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/posts\/70","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=70"}],"version-history":[{"count":14,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":2486,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/posts\/70\/revisions\/2486"}],"wp:attachment":[{"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}