{"id":2703,"date":"2020-09-26T15:32:52","date_gmt":"2020-09-26T07:32:52","guid":{"rendered":"https:\/\/jir.idv.tw\/wordpress\/?p=2703"},"modified":"2023-01-05T20:23:52","modified_gmt":"2023-01-05T12:23:52","slug":"linux%e5%a6%82%e6%9e%9c%e7%b3%bb%e7%b5%b1%e9%a0%90%e8%a8%ad%e7%9a%84apt%e6%8a%93%e6%aa%94%e5%a4%aa%e6%85%a2%ef%bc%8c%e5%a6%82%e4%bd%95%e6%89%be%e9%81%a9%e5%90%88%e8%87%aa%e5%b7%b1%e7%9a%84%e9%8f%a1","status":"publish","type":"post","link":"https:\/\/jir.idv.tw\/wordpress\/?p=2703","title":{"rendered":"[LINUX]\u5982\u679c\u7cfb\u7d71\u9810\u8a2d\u7684apt\u6293\u6a94\u592a\u6162\uff0c\u5982\u4f55\u627e\u9069\u5408\u81ea\u5df1\u7684\u93e1\u50cf\u4f86\u6e90"},"content":{"rendered":"<p><strong>2021.05.09\u66f4\u65b0\uff0c<\/strong><br \/>\n\u704c\u65b0\u7cfb\u7d71\u525b\u525b\u6ce8\u610f\u5230\uff0c\u73fe\u5728UBUNTU\u9019\u500b\u5957\u4ef6\u5df2\u7d93\u4e0d\u80fd\u4f7f\u7528\u3002<br \/>\n\u5728APT\u5b89\u88dd\u4f7f\u7528\uff0c\u6703\u51fa\u73fe&#8217;netselect-apt&#8217; has no installation candidate\u3002<br \/>\n\u770b\u8d77\u4f86\u662f\u6574\u500b\u6539\u5230DEBIAN\u7684\u7cfb\u7d71\uff0cUBUNTU\u5df2\u7d93\u6c92\u6709\u7e7c\u7e8c\u958b\u767c\u9019\u500b\u5957\u4ef6\u3002<br \/>\n\u6709\u7a7a\u518d\u53e6\u5916\u4e00\u500b\u7cfb\u7d71\u5e73\u53f0\u6e2c\u8a66\u770b\u770b\u3002<br \/>\n\u76f8\u95dc\u9023\u7d50\u8aaa\u660e\uff1a<br \/>\n<a href=\"https:\/\/github.com\/telekom-security\/tpotce\/issues\/349\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/telekom-security\/tpotce\/issues\/349<\/a><\/p>\n<p><strong>***** OLD\u6587\u7ae0<\/strong><\/p>\n<p>\u5229\u7528\u9019\u6b21\u65b0\u7cfb\u7d71\u4f7f\u7528\uff0c\u7d00\u9304\u984d\u5916\u7d93\u9a57\u7684\u8cc7\u6599\u4f5c\u53c3\u8003\u3002<\/p>\n<p>\u7576\u525b\u704c\u597d\u7684\u7cfb\u7d71\uff0cAPT\u5957\u4ef6\u6293\u6a94\u5f88\u6162\uff0c\u6216\u8005\u5e38\u5e38\u4f3a\u670d\u5668\u5fd9\u7dda\u65b7\u7db2\u3002<br \/>\n\u53ef\u4ee5\u7528\u9019\u500b\u5957\u4ef6\u4f86\u5e6b\u5fd9\u627e\u5230\u9069\u5408\u81ea\u5df1\u7576\u5730\u7db2\u8def\u72c0\u614b\u7684\u93e1\u50cf\u6a94\u9023\u7d50\u4f86\u6e90\u3002<br \/>\napt-get install netselect-apt<\/p>\n<p>\u5b89\u88dd\u597d\u4ee5\u5f8c\uff0c\u57f7\u884c\u4ee5\u4e0b\u6307\u4ee4\u6e2c\u8a66\uff1a<br \/>\n<code>sudo netselect-apt<\/code><br \/>\n<!--more--><br \/>\n\u7136\u5f8c\u5b83\u6703\u82b1\u9ede\u6642\u9593\u627e\u9069\u5408\u7684\u4f86\u6e90\u3002<br \/>\n\u7d50\u679c\u4ed6\u5e6b\u5fd9\u6211\u5b9a\u7fa9\u6210\uff1a<br \/>\n<code>The fastest 10 servers seem to be:<br \/>\n        http:\/\/ftp.tw.debian.org\/debian\/<br \/>\n        http:\/\/ftp.tku.edu.tw\/debian\/<br \/>\n        http:\/\/ftp.ntou.edu.tw\/debian\/<br \/>\n        http:\/\/debian.cs.nctu.edu.tw\/debian\/<br \/>\n        http:\/\/debian.csie.ntu.edu.tw\/debian\/<br \/>\n        http:\/\/ftp.jaist.ac.jp\/debian\/<br \/>\n        http:\/\/ftp.yz.yamagata-u.ac.jp\/debian\/<br \/>\n        http:\/\/mirror.0x.sg\/debian\/<br \/>\n        http:\/\/ftp.riken.jp\/Linux\/debian\/debian\/<br \/>\n        http:\/\/ftp.yz.yamagata-u.ac.jp\/debian\/<br \/>\nOf the hosts tested we choose the fastest valid for HTTP:<br \/>\n        http:\/\/ftp.tw.debian.org\/debian\/<br \/>\nWriting sources.list.<br \/>\nDone.<\/code><\/p>\n<p>\u5b8c\u6210\u5f8c\uff0c\u6839\u76ee\u9304\u6703\u591a\u4e00\u500bsources.list\uff0c\u6240\u4ee5\u6211\u5011\u628a\u5b83\u642c\u5230\u8a2d\u5b9a\/etc\/apt\/sources.list.d\/\u4f7f\u7528\u3002<br \/>\ncp sources.list \/etc\/apt\/sources.list.d\/200926-new-sources.list<\/p>\n<p>\u5b8c\u6210\u4e4b\u5f8c\uff0c\u57f7\u884capt-get update\uff0c\u770b\u6709\u7121\u591a\u65b0\u7684\u9023\u7dda\uff0c\u50cf\u6211\u7684\u6703\u8b8a\u6210\u90fd\u6709\u53f0\u7063\u6216\u65e5\u672c\u7684\u93e1\u50cf\u6a94\u9078\u64c7\u3002<br \/>\n\u8868\u793a\u8a2d\u5b9a\u6210\u529f\u3002<br \/>\n<code>Get:1 http:\/\/ftp.tw.debian.org\/debian testing InRelease [116 kB]<br \/>\nHit:2 http:\/\/deb.debian.org\/debian buster InRelease<br \/>\nHit:3 http:\/\/deb.debian.org\/debian buster-updates InRelease<br \/>\nHit:4 http:\/\/deb.debian.org\/debian buster-backports InRelease<br \/>\nHit:6 http:\/\/security.debian.org buster\/updates InRelease<br \/>\nGet:5 https:\/\/us.mirrors.fossho.st\/armbian\/apt buster InRelease [18.3 kB]<br \/>\nGet:7 http:\/\/ftp.tw.debian.org\/debian testing\/contrib armhf Packages [45.0 kB]<br \/>\nGet:8 http:\/\/ftp.tw.debian.org\/debian testing\/non-free armhf Packages [69.5 kB]<br \/>\nGet:9 http:\/\/ftp.tw.debian.org\/debian testing\/main armhf Packages [10.2 MB]<br \/>\nFetched 10.4 MB in 14s (765 kB\/s)<br \/>\nReading package lists... Done<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>2021.05.09\u66f4\u65b0\uff0c \u704c\u65b0\u7cfb\u7d71\u525b\u525b\u6ce8\u610f\u5230\uff0c\u73fe\u5728UBUNTU\u9019\u500b\u5957\u4ef6\u5df2\u7d93\u4e0d\u80fd\u4f7f\u7528\u3002 \u5728APT\u5b89\u88dd\u4f7f\u7528\uff0c\u6703\u51fa\u73fe&#8217;netselect-apt&#8217; has no installation candidate\u3002 \u770b\u8d77\u4f86\u662f\u6574\u500b\u6539\u5230DEBIAN\u7684\u7cfb\u7d71\uff0cUBUNTU\u5df2\u7d93\u6c92\u6709\u7e7c\u7e8c\u958b\u767c\u9019\u500b\u5957\u4ef6\u3002 \u6709\u7a7a\u518d\u53e6\u5916\u4e00\u500b\u7cfb\u7d71\u5e73\u53f0\u6e2c\u8a66\u770b\u770b\u3002 \u76f8\u95dc\u9023\u7d50\u8aaa\u660e\uff1a https:\/\/github.com\/telekom-security\/tpotce\/issues\/349 ***** OLD\u6587\u7ae0 \u5229\u7528\u9019\u6b21\u65b0\u7cfb\u7d71\u4f7f\u7528\uff0c\u7d00\u9304\u984d\u5916\u7d93\u9a57\u7684\u8cc7\u6599\u4f5c\u53c3\u8003\u3002 \u7576\u525b\u704c\u597d\u7684\u7cfb\u7d71\uff0cAPT\u5957\u4ef6\u6293\u6a94\u5f88\u6162\uff0c\u6216\u8005\u5e38\u5e38\u4f3a\u670d\u5668\u5fd9\u7dda\u65b7\u7db2\u3002 \u53ef\u4ee5\u7528\u9019\u500b\u5957\u4ef6\u4f86\u5e6b\u5fd9\u627e\u5230\u9069\u5408\u81ea\u5df1\u7576\u5730\u7db2\u8def\u72c0\u614b\u7684\u93e1\u50cf\u6a94\u9023\u7d50\u4f86\u6e90\u3002 apt-get install netselect-apt \u5b89\u88dd\u597d\u4ee5\u5f8c\uff0c\u57f7\u884c\u4ee5\u4e0b\u6307\u4ee4\u6e2c\u8a66\uff1a sudo netselect-apt<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2703","post","type-post","status-publish","format-standard","hentry","category-4","content-layout-excerpt-thumb"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2703"}],"version-history":[{"count":6,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2703\/revisions"}],"predecessor-version":[{"id":3049,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2703\/revisions\/3049"}],"wp:attachment":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}