{"id":901,"date":"2019-06-05T17:38:08","date_gmt":"2019-06-05T09:38:08","guid":{"rendered":"http:\/\/blog.5danyuan.com\/?p=901"},"modified":"2019-06-05T17:38:33","modified_gmt":"2019-06-05T09:38:33","slug":"%e8%a7%a3%e5%86%b3-unable-to-locate-package-%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/blog.5danyuan.com\/?p=901","title":{"rendered":"\u89e3\u51b3 Unable to locate package \u95ee\u9898"},"content":{"rendered":"\n<p>\u4eca\u5929\u8981\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5 python \u76f8\u5173\u7684\u4e00\u4e2a\u670d\u52a1\uff0c\u5b89\u88c5 pip \u65f6\u63d0\u793a\u65e0\u6cd5\u627e\u5230\u5305 python3-pip\uff0c\u7b2c\u4e00\u6b21\u78b0\u5230\u5594\u3002<\/p>\n\n\n\n<p>\u5728\u7f51\u4e0a\u641c\u7d22\u4e86\u4e0b\uff0c\u522b\u4eba\u7684\u7b54\u6848\u90fd\u662f\u8bf4 sudo apt-get update \uff0c\u4ee5\u6b64\u6765\u4e3b\u52a8\u66f4\u65b0\u6e90\u3002\u8fd9\u4e48\u7b80\u5355\u7684\u65b9\u6cd5\u6211\u600e\u4e48\u53ef\u80fd\u60f3\u4e0d\u5230\u5462\uff0c\u5c31\u662f\u56e0\u4e3a\u6ca1\u6709\u6548\u679c\u561b~<\/p>\n\n\n\n<p>\u540e\u6765\u7ec8\u4e8e\u53d1\u73b0\u4e86\u6709\u4e0d\u4e00\u6837\u7684\u7b54\u6848\u91cc\uff0c\u6fc0\u6d3b ubuntu \u7684\u6e90\uff1a<\/p>\n\n\n\n<p>sudo add-apt-repository main<br>sudo add-apt-repository universe<br>sudo add-apt-repository restricted<br>sudo add-apt-repository multiverse<\/p>\n\n\n\n<p>\u8fd9\u4e2a\u65f6\u5019\u518d update \u5c31\u53ef\u4ee5\u6b63\u5e38\u7684\u5b89\u88c5\u4e86\u3002\u81f3\u4e8e\u4e3a\u4ec0\u4e48\u8fd9\u4e9b\u6e90\u83ab\u540d\u5176\u5999\u5730\u4e22\u5931\u4e86\uff0c\u5b9e\u5728\u662f\u662f\u4e0d\u77e5\u9053\u4ec0\u4e48\u539f\u56e0\u3002\u800c\u4e14\u67092\u53f0\u673a\u5668\u90fd\u662f\u8fd9\u6837\u5b50\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u8981\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5 python \u76f8\u5173\u7684\u4e00\u4e2a\u670d\u52a1\uff0c\u5b89\u88c5 pip \u65f6\u63d0\u793a\u65e0\u6cd5\u627e\u5230\u5305 python3-pip\uff0c\u7b2c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[191],"class_list":["post-901","post","type-post","status-publish","format-standard","hentry","category-daily","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/901","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=901"}],"version-history":[{"count":0,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/901\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}