wget -c 当网络下载缓慢或者文件非常大的时候,或在不小心ctrl+c 截断了下载,往往一个文件还没有下载完,连接就已经被切断,此时就需要断点续传

用户尝试从清华大学镜像站下载gitlab-ce的RPM包,过程中遭遇了部分内容下载的问题,HTTP响应为206PartialContent,下载多次,中间出现连接关闭、读取错误,最后未完成下载。
摘要由CSDN通过智能技术生成

[root@localhost ~]# wget -c https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-14.0.3-ce.0.el7.x86_64.rpm
–2023-05-07 21:21:40-- https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-14.0.3-ce.0.el7.x86_64.rpm
Resolving mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)… 101.6.15.130, 2402:f000:1:400::2
Connecting to mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.15.130|:443… connected.
HTTP request sent, awaiting response… 206 Partial Content
Length: 911611837 (869M), 457087656 (436M) remaining [application/x-redhat-package-manager]
Saving to: ‘gitlab-ce-14.0.3-ce.0.el7.x86_64.rpm’

52% [+++++++++++++++++++++++++++++++++++++++++++++++++++++==> ] 480,074,634 310KB/s eta 16m 52s^C
[root@localhost ~]# wget -c https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-14.0.3-ce.0.el7.x86_64.rpm
–2023-05-07 21:22:45-- https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-14.0.3-ce.0.el7.x86_64.rpm
Resolving mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)… 101.6.15.130, 2402:f000:1:400::2
Connecting to mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.15.130|:443… connected.
HTTP request sent, awaiting response… 206 Partial Content
Length: 911611837 (869M), 431529011 (412M) remaining [application/x-redhat-package-manager]
Saving to: ‘gitlab-ce-14.0.3-ce.0.el7.x86_64.rpm’

53% [++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@localhost ~]# wget -c https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-14.0.3-ce.0.el7.x86_64.rpm
–2023-05-07 21:22:45-- https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-14.0.3-ce.0.el7.x86_64.rpm
Resolving mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)… 101.6.15.130, 2402:f000:1:400::2
Connecting to mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.15.130|:443… connected.
HTTP request sent, awaiting response… 206 Partial Content
Length: 911611837 (869M), 431529011 (412M) remaining [application/x-redhat-package-manager]
Saving to: ‘gitlab-ce-14.0.3-ce.0.el7.x86_64.rpm’

82% [++++++++++++++++++++++++++++++++++++++++++++++++++++++++==============================> ] 749,419,007 47.2KB/s in 14m 57s

2023-05-07 21:37:44 (293 KB/s) - Connection closed at byte 749419007. Retrying.

–2023-05-07 21:37:45-- (try: 2) https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-14.0.3-ce.0.el7.x86_64.rpm
Connecting to mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.15.130|:443… connected.
HTTP request sent, awaiting response… 206 Partial Content
Length: 911611837 (869M), 162192830 (155M) remaining [application/x-redhat-package-manager]
Saving to: ‘gitlab-ce-14.0.3-ce.0.el7.x86_64.rpm’

90% [+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=========> ] 827,766,900 6.20KB/s in 8m 28s

2023-05-07 22:01:29 (151 KB/s) - Read error at byte 827766900/911611837 (Success). Retrying.

–2023-05-07 22:01:31-- (try: 3) https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-14.0.3-ce.0.el7.x86_64.rpm
Connecting to mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.15.130|:443… connected.
HTTP request sent, awaiting response… 206 Partial Content
Length: 911611837 (869M), 83844937 (80M) remaining [application/x-redhat-package-manager]
Saving to: ‘gitlab-ce-14.0.3-ce.0.el7.x86_64.rpm’

97% [+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++======> ] 888,035,050 53.8KB/s eta 2m 6s ^C
[root@localhost ~]# wget -c https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-14.0.3-ce.0.el7.x86_64.rpm

Linux系统中出现“there appears to be trouble with your network connection. Retrying...”这样的提示时,通常意味着网络连接存在问题,系统正在尝试重新连接。这个问题可能是由多种原因导致的,比如网络配置错误、物理连接故障、服务未启动或存在干扰等。 解决这类问题通常可以按照以下步骤来进行: 1. 检查物理连接:确保网线或无线网络的物理连接没有问题,如果是有线连接,检查网线是否损坏,无线连接则确认信号强度。 2. 重启网络服务:有时候,简单的重启网络服务可以解决暂时的网络问题。可以使用命令`sudo systemctl restart networking`或者`sudo systemctl restart NetworkManager`(取决于系统中使用的网络管理器)来重启服务。 3. 检查网络配置:确认网络配置文件(如`/etc/network/interfaces`或`/etc/NetworkManager/system-connections/`中的对应文件)是否正确设置,包括IP地址、子网掩码、网关和DNS等。 4. 检查防火墙设置:有时候防火墙设置可能会阻止网络连接,检查防火墙规则确保没有不必要的限制。 5. 检查系统日志:查看`/var/log/syslog`或使用`dmesg`命令,看是否有网络接口或驱动相关的错误信息。 6. 检查网络驱动:确认网络接口的驱动是否是最新的,或者是否有已知的问题。 7. 使用诊断工具:可以使用`ping`命令测试与网关、DNS服务器以及其他网络节点的连通性。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值