关于Qt在线安装报错下载“http://mirrors.aliyun.com...“时出现网络错误无法在线安装Qt 的解决方法

在尝试在线安装Qt5.15时遇到网络错误,通过常规的代理设置无法完整安装所有组件。本文提供了一个有效的解决方案,即参照阿里云的教程,通过命令行在Windows环境下执行特定命令,成功启动Qt的在线安装,并确保所有组件可供选择,从而快速安装Qt。

最近想安装Qt5.15,只能在线安装,发现安装到一半就会报错,如下图:

在这里插入图片描述

看了网上好多是用flddler 来替换代理,然后就可以继续运行了,我试了下,确实可以继续运行,但是很多组件都会变成不可选择了,也就是只能安装一部分组件,什么QtCreator都无法选取安装,所以这种做法我就放弃了,可能是我哪里没有设置全的原因吧!

下面就给出真正的解决方案,参考阿里云的教程操作就行了:https://developer.aliyun.com/mirror/qt,

我是windows的,开启命令行切换到exe所在目录,执行命令: .\exe 的全称 --mirror https://mirrors.aliyun.com/qt
比如我自己的就是:

.\qt-unified-windows-x64
Step 30/36 : RUN sed -i 's|https://|http://|g' /etc/apt/sources.list && sed -i 's|http://archive.ubuntu.com|http://mirrors.aliyun.com|g' /etc/apt/sources.list && sed -i 's|http://security.ubuntu.com|http://mirrors.aliyun.com|g' /etc/apt/sources.list && apt-get update && apt-get install -y --no-install-recommends ca-certificates && sed -i 's|http://mirrors.aliyun.com|https://mirrors.aliyun.com|g' /etc/apt/sources.list && apt-get update ---> Running in f002b2d3e422 Get:1 http://mirrors.aliyun.com/ubuntu bionic InRelease [242 kB] Get:2 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease [102 kB] Get:3 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease [102 kB] Get:4 http://mirrors.aliyun.com/ubuntu bionic-security InRelease [102 kB] Get:5 http://mirrors.aliyun.com/ubuntu bionic/universe amd64 Packages [11.3 MB] Ign:6 http://apt.kitware.com/ubuntu bionic InRelease Ign:7 https://deb.nodesource.com/node_16.x nodistro InRelease Err:8 http://apt.kitware.com/ubuntu bionic Release SECURITY: URL redirect target contains control characters, rejecting. [IP: 66.194.253.25 80] Err:9 https://deb.nodesource.com/node_16.x nodistro Release Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 172.66.150.169 443] Get:5 http://mirrors.aliyun.com/ubuntu bionic/universe amd64 Packages [11.3 MB] Get:10 http://mirrors.aliyun.com/ubuntu bionic/restricted i386 Packages [13.5 kB] Get:11 http://mirrors.aliyun.com/ubuntu bionic/multiverse i386 Packages [177 kB] Get:12 http://mirrors.aliyun.com/ubuntu bionic/main i386 Packages [1328 kB] Get:13 http://mirrors.aliyun.com/ubuntu bionic/universe i386 Packages [11.3 MB] Get:13 http://mirrors.aliyun.com/ubuntu bionic/universe i386 Packages [11.3 MB] Get:14 http://mirrors.aliyun.com/ubuntu bionic/main amd64 Packages [1344 kB] Get:15 http://mirrors.aliyun.com/ubuntu bionic/restricted amd64 Packages [13.5 kB] Get:16 http://mirrors.aliyun.com/ubuntu bionic/multiverse amd64 Packages [186 kB] Get:17 http://mirrors.aliyun.com/ubuntu bionic-updates/restricted i386 Packages [50.5 kB] Get:18 http://mirrors.aliyun.com/ubuntu bionic-updates/multiverse i386 Packages [12.7 kB] Get:19 http://mirrors.aliyun.com/ubuntu bionic-updates/universe amd64 Packages [2411 kB] Get:20 http://mirrors.aliyun.com/ubuntu bionic-updates/universe i386 Packages [2097 kB] Get:21 http://mirrors.aliyun.com/ubuntu bionic-updates/main amd64 Packages [3786 kB] Get:22 http://mirrors.aliyun.com/ubuntu bionic-updates/restricted amd64 Packages [1728 kB] Get:23 http://mirrors.aliyun.com/ubuntu bionic-updates/multiverse amd64 Packages [30.8 kB] Get:24 http://mirrors.aliyun.com/ubuntu bionic-updates/main i386 Packages [2080 kB] Get:25 http://mirrors.aliyun.com/ubuntu bionic-backports/universe i386 Packages [20.6 kB] Get:26 http://mirrors.aliyun.com/ubuntu bionic-backports/main i386 Packages [64.0 kB] Get:27 http://mirrors.aliyun.com/ubuntu bionic-backports/universe amd64 Packages [20.6 kB] Get:28 http://mirrors.aliyun.com/ubuntu bionic-backports/main amd64 Packages [64.0 kB] Get:29 http://mirrors.aliyun.com/ubuntu bionic-security/universe amd64 Packages [1637 kB] Get:30 http://mirrors.aliyun.com/ubuntu bionic-security/main i386 Packages [1714 kB] Get:31 http://mirrors.aliyun.com/ubuntu bionic-security/universe i386 Packages [1354 kB] Get:32 http://mirrors.aliyun.com/ubuntu bionic-security/multiverse i386 Packages [6598 B] Get:33 http://mirrors.aliyun.com/ubuntu bionic-security/multiverse amd64 Packages [23.8 kB] Get:34 http://mirrors.aliyun.com/ubuntu bionic-security/main amd64 Packages [3373 kB] Get:34 http://mirrors.aliyun.com/ubuntu bionic-security/main amd64 Packages [3373 kB] Get:35 http://mirrors.aliyun.com/ubuntu bionic-security/restricted i386 Packages [40.2 kB] Get:36 http://mirrors.aliyun.com/ubuntu bionic-security/restricted amd64 Packages [1688 kB] Reading package lists... W: https://deb.nodesource.com/node_16.x/dists/nodistro/InRelease: No system certificates available. Try installing ca-certificates. W: https://deb.nodesource.com/node_16.x/dists/nodistro/Release: No system certificates available. Try installing ca-certificates. E: The repository 'http://apt.kitware.com/ubuntu bionic Release' no longer has a Release file. E: The repository 'https://deb.nodesource.com/node_16.x nodistro Release' no longer has a Release file. The command '/bin/sh -c sed -i 's|https://|http://|g' /etc/apt/sources.list && sed -i 's|http://archive.ubuntu.com|http://mirrors.aliyun.com|g' /etc/apt/sources.list && sed -i 's|http://security.ubuntu.com|http://mirrors.aliyun.com|g' /etc/apt/sources.list && apt-get update && apt-get install -y --no-install-recommends ca-certificates && sed -i 's|http://mirrors.aliyun.com|https://mirrors.aliyun.com|g' /etc/apt/sources.list && apt-get update' returned a non-zero code: 100
最新发布
11-08
zxy@zxy:/etc/apt/sources.list.d$ sudo apt-get update sudo apt-get upgrade 获取:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble InRelease [256 kB] 获取:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates InRelease [126 kB] 获取:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security InRelease [126 kB] 获取:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/main amd64 Packages [1,401 kB] 获取:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/main Translation-en [513 kB] 获取:6 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/main Translation-zh_CN [130 kB] 获取:7 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/main amd64 Components [464 kB] 获取:8 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/main Icons (48x48) [106 kB] 获取:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/main Icons (64x64) [156 kB] 获取:10 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/main Icons (64x64@2) [21.8 kB] 获取:11 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/main amd64 c-n-f Metadata [30.5 kB] 获取:12 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/restricted amd64 Packages [93.9 kB] 获取:13 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/restricted Translation-zh_CN [592 B] 获取:14 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/restricted Translation-en [18.7 kB] 获取:15 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/restricted amd64 c-n-f Metadata [416 B] 获取:16 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/universe amd64 Packages [15.0 MB] 获取:17 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/universe Translation-en [5,982 kB] 获取:18 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/universe Translation-zh_CN [574 kB] 获取:19 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/universe amd64 Components [3,871 kB] 获取:20 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/universe Icons (48x48) [3,717 kB] 获取:21 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/universe Icons (64x64) [7,747 kB] 获取:22 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/universe Icons (64x64@2) [75.0 kB] 获取:23 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/universe amd64 c-n-f Metadata [301 kB] 获取:24 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/multiverse amd64 Packages [269 kB] 获取:25 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/multiverse Translation-zh_CN [4,640 B] 获取:26 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/multiverse Translation-en [118 kB] 获取:27 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/multiverse amd64 Components [35.0 kB] 获取:28 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/multiverse Icons (48x48) [56.1 kB] 获取:29 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/multiverse Icons (64x64) [186 kB] 获取:30 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/multiverse Icons (64x64@2) [904 B] 获取:31 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/multiverse amd64 c-n-f Metadata [8,328 B] 获取:32 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main amd64 Packages [1,313 kB] 获取:33 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main Translation-en [264 kB] 获取:34 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main amd64 Components [164 kB] 获取:35 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main Icons (48x48) [34.7 kB] 获取:36 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main Icons (64x64) [49.6 kB] 获取:37 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main Icons (64x64@2) [29 B] 获取:38 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main amd64 c-n-f Metadata [13.5 kB] 获取:39 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/restricted amd64 Packages [1,645 kB] 获取:40 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/restricted Translation-en [359 kB] 获取:41 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/restricted amd64 Components [212 B] 获取:42 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/restricted Icons (48x48) [29 B] 获取:43 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/restricted Icons (64x64) [29 B] 获取:44 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/restricted Icons (64x64@2) [29 B] 获取:45 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/restricted amd64 c-n-f Metadata [492 B] 获取:46 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/universe amd64 Packages [1,120 kB] 获取:47 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/universe Translation-en [287 kB] 获取:48 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/universe amd64 Components [377 kB] 获取:49 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/universe Icons (48x48) [228 kB] 获取:50 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/universe Icons (64x64) [351 kB] 获取:51 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/universe Icons (64x64@2) [29 B] 获取:52 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/universe amd64 c-n-f Metadata [26.0 kB] 获取:53 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/multiverse amd64 Packages [33.2 kB] 获取:54 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/multiverse Translation-en [6,772 B] 获取:55 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/multiverse amd64 Components [940 B] 获取:56 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/multiverse Icons (48x48) [1,867 B] 获取:57 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/multiverse Icons (64x64) [2,497 B] 获取:58 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/multiverse Icons (64x64@2) [29 B] 获取:59 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/multiverse amd64 c-n-f Metadata [592 B] 获取:60 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/main amd64 Packages [1,054 kB] 获取:61 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/main Translation-en [183 kB] 获取:62 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/main amd64 Components [21.6 kB] 获取:63 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/main Icons (48x48) [13.4 kB] 获取:64 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/main Icons (64x64) [20.0 kB] 获取:65 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/main Icons (64x64@2) [29 B] 获取:66 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/main amd64 c-n-f Metadata [7,068 B] 获取:67 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/restricted amd64 Packages [1,560 kB] 获取:68 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/restricted Translation-en [342 kB] 获取:69 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/restricted amd64 Components [212 B] 获取:70 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/restricted Icons (48x48) [29 B] 获取:71 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/restricted Icons (64x64) [29 B] 获取:72 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/restricted Icons (64x64@2) [29 B] 获取:73 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/restricted amd64 c-n-f Metadata [468 B] 获取:74 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/universe amd64 Packages [878 kB] 获取:75 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/universe Translation-en [194 kB] 获取:76 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/universe amd64 Components [52.2 kB] 获取:77 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/universe Icons (48x48) [45.0 kB] 获取:78 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/universe Icons (64x64) [70.7 kB] 获取:79 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/universe Icons (64x64@2) [29 B] 获取:80 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/universe amd64 c-n-f Metadata [17.0 kB] 获取:81 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/multiverse amd64 Packages [18.5 kB] 获取:82 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/multiverse Translation-en [4,288 B] 获取:83 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/multiverse amd64 Components [212 B] 获取:84 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/multiverse Icons (48x48) [29 B] 获取:85 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/multiverse Icons (64x64) [29 B] 获取:86 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/multiverse Icons (64x64@2) [29 B] 获取:87 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security/multiverse amd64 c-n-f Metadata [380 B] 已下载 52.2 MB,耗 10秒 (5,362 kB/s) 正在读取软件包列表... 完成 正在读取软件包列表... 完成 正在分析软件包的依赖关系树... 完成 正在读取状态信息... 完成 您也许需要运行“apt --fix-broken install”来修正上面的错误。 下列软件包有未满足的依赖关系: youdao-dict : 依赖: python3-pyqt5 但是它还没有被安装 依赖: python3-pyqt5.qtwebkit 但是它还没有被安装 依赖: python3-xlib 但是它还没有被安装 依赖: python3-setuptools 但是它还没有被安装 依赖: libsqlite3-dev 但是它还没有被安装 依赖: python3-dev 但是它还没有被安装 依赖: python3-lxml 但是它还没有被安装 依赖: python3-pyqt5.qtmultimedia 但是它还没有被安装 依赖: qml-module-qtgraphicaleffects 但是它还没有被安装 依赖: tesseract-ocr 但是它还没有被安装 依赖: tesseract-ocr-eng 但是它还没有被安装 依赖: tesseract-ocr-chi-sim 但是它还没有被安装 依赖: tesseract-ocr-chi-tra 但是它还没有被安装 依赖: ttf-wqy-microhei 依赖: qml-module-qtquick-controls 但是它还没有被安装 依赖: libqt5multimedia5-plugins 但是它还没有被安装 依赖: gstreamer1.0-plugins-bad 但是它还没有被安装 依赖: gstreamer1.0-plugins-ugly 但是它还没有被安装 依赖: python3-pyqt5.qtquick 但是它还没有被安装 E: 有未能满足的依赖关系。请尝试不指明软件包的名字来运行“apt --fix-broken install”(也可以指定一个解决办法)
08-09
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Fu_Lin_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值