{
  "id": "python/pip-index-url-http-insecure",
  "signature": "WARNING: The repository located at myrepo.local is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host myrepo.local'.\nERROR: Could not find a version that satisfies the requirement mypkg",
  "signature_zh": "警告：位于 myrepo.local 的仓库不是受信任或安全的主机，已被忽略。如果此仓库可通过 HTTPS 访问，我们建议您改用 HTTPS，否则您可以使用 '--trusted-host myrepo.local' 来消除此警告并允许它。\n错误：找不到满足 mypkg 要求的版本",
  "regex": "WARNING:\\ The\\ repository\\ located\\ at\\ myrepo\\.local\\ is\\ not\\ a\\ trusted\\ or\\ secure\\ host\\ and\\ is\\ being\\ ignored\\.\\ If\\ this\\ repository\\ is\\ available\\ via\\ HTTPS\\ we\\ recommend\\ you\\ use\\ HTTPS\\ instead,\\ otherwise\\ you\\ may\\ silence\\ this\\ warning\\ and\\ allow\\ it\\ anyway\\ with\\ '\\-\\-trusted\\-host\\ myrepo\\.local'\\.\\\nERROR:\\ Could\\ not\\ find\\ a\\ version\\ that\\ satisfies\\ the\\ requirement\\ mypkg",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "pip refuses to use an HTTP (non-TLS) index unless the host is explicitly marked as trusted.",
  "root_cause_type": "generic",
  "root_cause_zh": "除非主机被明确标记为受信任，否则 pip 拒绝使用 HTTP（非 TLS）索引。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "HTTP index is still rejected without --trusted-host.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Environment variable changes the index but not the trust decision.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Cache does not affect trust evaluation of the index host.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "pip install --index-url http://myrepo.local/simple --trusted-host myrepo.local mypkg",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "# ~/.config/pip/pip.conf\n[global]\nindex-url = http://myrepo.local/simple\ntrusted-host = myrepo.local",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-02-06",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}