{"id":10021002,"date":"2025-09-15T16:39:20","date_gmt":"2025-09-15T08:39:20","guid":{"rendered":"https:\/\/itmax.cn\/?p=10021002"},"modified":"2025-09-15T16:39:20","modified_gmt":"2025-09-15T08:39:20","slug":"%e4%bd%bf%e7%94%a8-aliyun-%e7%9a%84-debian-%e9%95%9c%e5%83%8f%e7%9a%84%e6%97%b6%e5%80%99%ef%bc%8c%e9%81%87%e5%88%b0-404-ip-%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10021002","title":{"rendered":"\u4f7f\u7528 aliyun \u7684 debian \u955c\u50cf\u7684\u65f6\u5019\uff0c\u9047\u5230 404 IP \u95ee\u9898"},"content":{"rendered":"<p>\u6211\u7684\u7528\u6cd5<\/p>\n<pre><code class=\"Dockerfile\">FROM registry-vpc.cn-hangzhou.aliyuncs.com\/vobile-infra\/python:3.11-bookworm\nRUN sed -i 's\/deb.debian.org\/mirrors.aliyun.com\/g' \/etc\/apt\/sources.list.d\/debian.sources \nRUN apt update\n# debian11 \u4ee5\u53ca\u4e0b\n# RUN apt install -y vim netcat telnet less\n# debian12 \u7684  netcat \u53d8\u6210 netcat-openbsd \u4e86\uff0c\u8be6\u89c1: https:\/\/unix.stackexchange.com\/questions\/749306\/discrepancies-in-netcat-installation-process-between-debian-bullseye-vs-debian-b\nRUN apt install -y vim netcat-openbsd telnet less iputils-ping\nRUN apt install -y netcat-openbsd htop sysstat\nRUN apt install -y ncdu\nRUN apt install -y libjemalloc-dev \nRUN \/usr\/local\/bin\/python -m pip install --upgrade pip -i https:\/\/mirror.baidu.com\/pypi\/simple<\/code><\/pre>\n<p>\u6211\u6267\u884c\u7684\u547d\u4ee4<\/p>\n<pre><code class=\"shell\">apt install wrk -y<\/code><\/pre>\n<p>\u6211\u9047\u5230\u7684\u95ee\u9898<\/p>\n<pre><code class=\"log\">root@crawler-console-api-long-server-prod-59f877944b-5lf2c:\/code# apt install wrk -y\nReading package lists... Done\nBuilding dependency tree... Done\nReading state information... Done\nThe following additional packages will be installed:\n  libluajit-5.1-2 libluajit-5.1-common\nThe following NEW packages will be installed:\n  libluajit-5.1-2 libluajit-5.1-common wrk\n0 upgraded, 3 newly installed, 0 to remove and 120 not upgraded.\nNeed to get 352 kB of archives.\nAfter this operation, 943 kB of additional disk space will be used.\nErr:1 http:\/\/mirrors.cloud.aliyuncs.com\/debian bookworm\/main amd64 libluajit-5.1-common all 2.1.0~beta3+git20220320+dfsg-4.1\n  404  Not Found [IP: 100.100.2.148 80]\nErr:2 http:\/\/mirrors.cloud.aliyuncs.com\/debian bookworm\/main amd64 libluajit-5.1-2 amd64 2.1.0~beta3+git20220320+dfsg-4.1\n  404  Not Found [IP: 100.100.2.148 80]\nGet:3 http:\/\/mirrors.cloud.aliyuncs.com\/debian bookworm\/main amd64 wrk amd64 4.1.0-3+b2 [43.3 kB]\nFetched 43.3 kB in 0s (223 kB\/s)\nE: Failed to fetch http:\/\/mirrors.cloud.aliyuncs.com\/debian\/pool\/main\/l\/luajit\/libluajit-5.1-common_2.1.0%7ebeta3%2bgit20220320%2bdfsg-4.1_all.deb  404  Not Found [IP: 100.100.2.148 80]\nE: Failed to fetch http:\/\/mirrors.cloud.aliyuncs.com\/debian\/pool\/main\/l\/luajit\/libluajit-5.1-2_2.1.0%7ebeta3%2bgit20220320%2bdfsg-4.1_amd64.deb  404  Not Found [IP: 100.100.2.148 80]\nE: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?<\/code><\/pre>\n<p>\u600e\u4e48\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff1f\u6267\u884c\u4e00\u4e0b <code>apt update<\/code> \u547d\u4ee4\u5c31\u597d\u4e86<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000047266211\">https:\/\/segmentfault.com\/a\/1190000047266211<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u7684\u7528\u6cd5 FROM registry-vpc.cn-hangzhou.aliyuncs.com\/vobile- [&hellip;]<\/p>\n","protected":false},"author":8,"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-10021002","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10021002"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021002\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10021002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10021002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10021002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}