Skip to content

[Q&A] tun模式下,腾讯云的apt update的问题 #563

@hezberg

Description

@hezberg

前置确认

  • 我已查阅 常见问题,但仍未找到解决方案
  • 我已使用关键字查询相关 Issues,但仍未找到解决方案

使用的分支

master

Commit ID

820df1b

Shell 环境

bash

问题描述

腾讯云服务器,开启tun模式后,sudo apt update报错如下:
Ign:1 http://mirrors.tencentyun.com/ubuntu noble InRelease
Ign:2 http://mirrors.tencentyun.com/ubuntu noble-updates InRelease
Ign:3 http://mirrors.tencentyun.com/ubuntu noble-backports InRelease
Ign:4 http://mirrors.tencentyun.com/ubuntu noble-security InRelease
Ign:1 http://mirrors.tencentyun.com/ubuntu noble InRelease
Ign:2 http://mirrors.tencentyun.com/ubuntu noble-updates InRelease
Ign:3 http://mirrors.tencentyun.com/ubuntu noble-backports InRelease
Ign:4 http://mirrors.tencentyun.com/ubuntu noble-security InRelease
Ign:1 http://mirrors.tencentyun.com/ubuntu noble InRelease
Ign:2 http://mirrors.tencentyun.com/ubuntu noble-updates InRelease
Ign:3 http://mirrors.tencentyun.com/ubuntu noble-backports InRelease
Ign:4 http://mirrors.tencentyun.com/ubuntu noble-security InRelease
Err:1 http://mirrors.tencentyun.com/ubuntu noble InRelease
Connection failed [IP: 198.18.0.5 80]
Err:2 http://mirrors.tencentyun.com/ubuntu noble-updates InRelease
Connection failed [IP: 198.18.0.5 80]
Err:3 http://mirrors.tencentyun.com/ubuntu noble-backports InRelease
Connection failed [IP: 198.18.0.5 80]
Err:4 http://mirrors.tencentyun.com/ubuntu noble-security InRelease
Connection failed [IP: 198.18.0.5 80]
Reading package lists... Done
W: Failed to fetch http://mirrors.tencentyun.com/ubuntu/dists/noble/InRelease Connection failed [IP: 198.18.0.5 80]
W: Failed to fetch http://mirrors.tencentyun.com/ubuntu/dists/noble-updates/InRelease Connection failed [IP: 198.18.0.5 80]
W: Failed to fetch http://mirrors.tencentyun.com/ubuntu/dists/noble-backports/InRelease Connection failed [IP: 198.18.0.5 80]
W: Failed to fetch http://mirrors.tencentyun.com/ubuntu/dists/noble-security/InRelease Connection failed [IP: 198.18.0.5 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

关闭tun模式就没问题。我试过:
1、设置过inet-exclude-address: 198.0.0.0/8,没有效果
2、设置过rules:DOMAIN-SUFFIX,tencentyun.com,DIRECT, 没有效果
3、设置过route-exclude-address: 198.0.0.0/8,没有效果

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions