{"id":373,"date":"2021-08-23T06:21:00","date_gmt":"2021-08-23T06:21:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=373"},"modified":"2021-08-23T06:21:00","modified_gmt":"2021-08-23T06:21:00","slug":"373","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/08\/23\/373\/","title":{"rendered":"\u56fd\u5185Linux\u7cfb\u7edf\u66f4\u6362\u4e2d\u79d1\u5927\u8f6f\u4ef6\u6e90"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/08\/335549826.webp\" alt=\"vim_apt.webp\" title=\"vim_apt.webp\"><\/p>\n<p>\u4e00\u3001\u9996\u5148\u8fdb\u5165 <code>apt<\/code> \u8f6f\u4ef6\u7684\u8f6f\u4ef6\u6e90\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55 <code>\/etc\/apt\/<\/code> \uff0c\u4f7f\u7528 <code>ls<\/code> \u67e5\u770b<\/p>\n<pre><code>cd \/etc\/apt\/\nls<\/code><\/pre>\n<p>\u4e8c\u3001 \u4f7f\u7528 <code>vim<\/code> \u7f16\u8f91 <code>sources.list<\/code> \uff0c\u628a\u5b98\u65b9 <code>deb.debian.org<\/code> \u7f51\u5740\u4fee\u6539\u6210\u4e2d\u79d1\u5927\u7f51\u5740 <code>mirrors.ustc.edu.cn<\/code><\/p>\n<pre><code>vim sources.list\n# \u6253\u5f00\u6587\u4ef6\u540e\uff0c\u6309 ESC: \uff0c\u518d Shift + Insert \u7c98\u8d34\n%s\/deb.debian.org\/mirrors.ustc.edu.cn\/g<\/code><\/pre>\n<p>\u4e09\u3001 \u9000\u51fa\u4fdd\u5b58\u540e\uff0c\u4f7f\u7528 <code>apt update<\/code> \u66f4\u65b0\u8f6f\u4ef6\u6e90\uff1b\u4e5f\u53ef\u4ee5\u4f7f\u7528 <code>sed -i<\/code> \u547d\u4ee4\u884c\u6279\u91cf\u4fee\u6539<\/p>\n<pre><code>sed -i 's\/deb.debian.org\/mirrors.ustc.edu.cn\/g'  \/etc\/apt\/sources.list\nsed -i 's\/deb.debian.org\/mirrors.ustc.edu.cn\/g'  \/etc\/apt\/sources.list.d\/unstable.list\napt update<\/code><\/pre>\n<p>\u56db\u3001\u539f\u6765\u7684 debian 10 \u4e5f\u53ef\u4ee5\u5347\u7ea7\u5230 debian 11<\/p>\n<pre><code>sed -i 's\/buster\/bullseye\/g'  \/etc\/apt\/sources.list\napt update\napt list --upgradable\napt upgrade<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u9996\u5148\u8fdb\u5165 apt \u8f6f\u4ef6\u7684\u8f6f\u4ef6\u6e90\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55 \/etc\/apt\/ \uff0c\u4f7f\u7528 ls \u67e5\u770b cd \/et [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-373","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=373"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/373\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}