login |

openwrt第一步opkg update时报错2024-03-08


https://mirror-03.infra.openwrt.org/releases/packages-23.05/x86_64/packages/wget-ssl_1.21.4-1_x86_64.ipk
wget-ssl_1.21.4-1_x86_64.ipk

依赖包:
https://mirror-03.infra.openwrt.org/releases/packages-23.05/x86_64/base/
libopenssl3_3.0.13-1_x86_64.ipk
zlib_1.2.13-1_x86_64.ipk
libpcre2_10.42-1_x86_64.ipk



版本:
openwrt/rootfs:x86-64-v23.05.2

问题:

/tmp # opkg update

Downloading https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/targets/x86/64/packages/Packages.gz

*** Failed to download the package list from https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/targets/x86/64/packages/Packages.gz

Downloading https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/packages/x86_64/base/Packages.gz

*** Failed to download the package list from https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/packages/x86_64/base/Packages.gz

Downloading https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/packages/x86_64/luci/Packages.gz

*** Failed to download the package list from https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/packages/x86_64/luci/Packages.gz

Downloading https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/packages/x86_64/packages/Packages.gz

*** Failed to download the package list from https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/packages/x86_64/packages/Packages.gz

Downloading https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/packages/x86_64/routing/Packages.gz

*** Failed to download the package list from https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/packages/x86_64/routing/Packages.gz

Downloading https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/packages/x86_64/telephony/Packages.gz

*** Failed to download the package list from https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/packages/x86_64/telephony/Packages.gz

Collected errors:

 * opkg_download: Failed to download https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/targets/x86/64/packages/Packages.gz, wget returned 4.

 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/packages/x86_64/base/Packages.gz, wget returned 4.

 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/packages/x86_64/luci/Packages.gz, wget returned 4.

 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/packages/x86_64/packages/Packages.gz, wget returned 4.

 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/packages/x86_64/routing/Packages.gz, wget returned 4.

 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/23.05.2/packages/x86_64/telephony/Packages.gz, wget returned 4.

 * opkg_download: Check your network settings and connectivity.


现象:
/tmp # wget http://baidu.com
Downloading 'http://baidu.com'
Connecting to 39.156.66.10:80
Writing to 'index.html'
index.html           100% |*******************************|    81   0:00:00 ETA
Download completed (81 bytes)


/tmp # wget https://baidu.com
Downloading 'https://baidu.com'
Connecting to 110.242.68.66:443
Connection error: Connection failed


用wget,http能下载成功,https失败。由此推断,openwrt默认安装的wget不支持ssl/tls导致。

解决办法:
手动安装支持 ssl/tls的wget版本。

/tmp # opkg install /tmp/wget-ssl_1.21.4-1_x86_64.ipk 
Unknown package 'wget-ssl'.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency libpcre2 for wget-ssl
 * pkg_hash_check_unresolved: cannot find dependency zlib for wget-ssl
 * pkg_hash_check_unresolved: cannot find dependency libopenssl3 for wget-ssl
 * pkg_hash_fetch_best_installation_candidate: Packages for wget-ssl found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package wget-ssl.

2

return

about feedback

沪ICP备14051604号