linux: wget raw.githubusercontent.com 超时失效

 raw.githubusercontent.com 具有ipv6地址,超时情况可能是由于本机没有正确配置ipv6.

笔者情况为,本机具有ipv6地址,但是还为配置好无法访问外网,ping6 google.com 超时.

应用 wget raw.githubusercontent.com,默认了ipv6路径导致超时。

解法方法先关闭ipv6,wget 走ipv4,后续再开启ipv6即可。

关闭方法:

编辑sysctl文件 

vim /etc/sysctl.conf

插入一下文本

net.ipv6.conf.all.disable_ipv6=1

net.ipv6.conf.default.disable_ipv6=1

net.ipv6.conf.lo.disable_ipv6=1

启动

sudo sysctl -p /etc/sysctl.conf

开启ipv6

重复操作,1变成0


 

TASK [autoware.dev_env.ros2 : Install dependencies for setting up apt sources] *** fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: W:http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu/dists/jammy/InRelease: 密钥存储在过时的 trusted.gpg 密钥环中(/etc/apt/trusted.gpg),请参见 apt-key(8) 的 DEPRECATION 一节以了解详情。, E:仓库 “https://mirror.nju.edu.cn/nvidia-cuda/ubuntu-jammy/x86_64 Release” 没有 Release 文件。, W:无法安全地用该源进行更新,所以默认禁用该源。, W:参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。, W:目标 Packages (Packages) 在 /etc/apt/sources.list.d/archive_uri-https_developer_download_nvidia_com_compute_cuda_repos_ubuntu2204_x86_64_-jammy.list:1 和 /etc/apt/sources.list.d/cuda-ubuntu2204-x86_64.list:1 中被配置了多次, W:目标 Translations (zh_CN) 在 /etc/apt/sources.list.d/archive_uri-https_developer_download_nvidia_com_compute_cuda_repos_ubuntu2204_x86_64_-jammy.list:1 和 /etc/apt/sources.list.d/cuda-ubuntu2204-x86_64.list:1 中被配置了多次, W:目标 Translations (zh) 在 /etc/apt/sources.list.d/archive_uri-https_developer_download_nvidia_com_compute_cuda_repos_ubuntu2204_x86_64_-jammy.list:1 和 /etc/apt/sources.list.d/cuda-ubuntu2204-x86_64.list:1 中被配置了多次, W:目标 Translations (en) 在 /etc/apt/sources.list.d/archive_uri-https_developer_download_nvidia_com_compute_cuda_repos_ubuntu2204_x86_64_-jammy.list:1 和 /etc/apt/sources.list.d/cuda-ubuntu2204-x86_64.list:1 中被配置了多次, E:无法下载 https://mirror.ghproxy.com/https://raw.githubusercontent.com/autowarefoundation/autoware/ros2/dists/repos/InRelease 明文签署文件不可用,结果为‘NOSPLIT’(您的网络需要认证吗?), E:仓库 “https://mirror.ghproxy.com/https://raw.githubusercontent.com/autowarefoundation/autoware/ros2 repos InRelease” 没有数字签名。"} PLAY RECAP ********************************************************************* localhost : ok=2 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0 Failed. 这是在安装什么依赖时报的错,怎么手动安装该依赖
07-22
yuan@yuan-virtual-machine:~/桌面/catkin_ws$ sudo rm -rf ~/.ros/rosdep/sources.cache yuan@yuan-virtual-machine:~/桌面/catkin_ws$ sudo rosdep init ERROR: default sources list file already exists: /etc/ros/rosdep/sources.list.d/20-default.list Please delete if you wish to re-initialize yuan@yuan-virtual-machine:~/桌面/catkin_ws$ rosdep update reading in sources list data from /etc/ros/rosdep/sources.list.d Hit https://mirrors.ustc.edu.cn/rosdistro/rosdep/osx-homebrew.yaml Hit https://mirrors.ustc.edu.cn/rosdistro/rosdep/base.yaml Hit https://mirrors.ustc.edu.cn/rosdistro/rosdep/python.yaml Hit https://mirrors.ustc.edu.cn/rosdistro/rosdep/ruby.yaml ERROR: unable to process source [https://mirrors.ustc.edu.cn/rosdistro/rosdep/releases/fuerte.yaml]: Failed to download target platform data for gbpdistro: HTTP Error 404: Not Found Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml Skip end-of-life distro "ardent" Skip end-of-life distro "bouncy" Skip end-of-life distro "crystal" Skip end-of-life distro "dashing" Skip end-of-life distro "eloquent" Skip end-of-life distro "foxy" Skip end-of-life distro "galactic" Skip end-of-life distro "groovy" Add distro "humble" Skip end-of-life distro "hydro" Skip end-of-life distro "indigo" Skip end-of-life distro "iron" Skip end-of-life distro "jade" Add distro "jazzy" Add distro "kilted" Skip end-of-life distro "kinetic" Skip end-of-life distro "lunar" Skip end-of-life distro "melodic" Skip end-of-life distro "noetic" Add distro "rolling" updated cache in /home/yuan/.ros/rosdep/sources.cache ERROR: Not all sources were able to be updated. [[[ ERROR: unable to process source [https://mirrors.ustc.edu.cn/rosdistro/rosdep/releases/fuerte.yaml]: Failed to download target platform data for gbpdistro: HTTP Error 404: Not Found ]]]
07-31
06-10 11:26:30.387266 4451 4451 I [ 1054.679861][schedu][0x4bc97218d][03:26:30.379052] qca6750: [4451:I:PE] Assoc req TX: vdev 0 to 00:03:7f:**:**:98 seq num 2099 06-10 11:26:30.392089 4451 4451 I [ 1054.684684][schedu][0x4bc988b50][03:26:30.383875] qca6750: [4451:I:PE] Assoc req TX: success (0) 06-10 11:26:30.407552 4451 4451 I [ 1054.700147][schedu][0x4bc9d1304][03:26:30.399338] qca6750: [4451:I:PE] Assoc rsp RX: subtype 0 vdev 0 sys role 2 lim state 10 rssi -18 from 00:03:7f:**:**:98 06-10 11:26:30.407611 4451 4451 E [ 1054.700206][schedu][0x4bc9d1788][03:26:30.399398] qca6750: [4451:E:PE] wlan_parse_ftie_sha384: FT IE not present 06-10 11:26:30.407806 4451 4451 E [ 1054.700401][schedu][0x4bc9d2613][03:26:30.399592] qca6750: [4451:E:PE] sir_convert_assoc_resp_frame2_struct: FT IE parsing failed status:0 06-10 11:26:30.407998 4451 4451 E [ 1054.700593][schedu][0x4bc9d3482][03:26:30.399784] qca6750: [4451:E:PE] lim_process_assoc_rsp_frame: received Re/AssocRsp frame failure code: 43 06-10 11:26:30.408038 4451 4451 E [ 1054.700633][schedu][0x4bc9d378f][03:26:30.399825] qca6750: [4451:E:PE] lim_process_assoc_rsp_frame: Assoc Rejected by the peer mlmestate: 10 sessionid: 0 Reason: 516 MACADDR:00:03:7f:**:**:98 06-10 11:26:30.408067 4451 4451 E [ 1054.700662][schedu][0x4bc9d39ba][03:26:30.399854] qca6750: [4451:E:PE] lim_process_mlm_assoc_cnf: SessionId:0 Association failure resultCode: 516 limSmeState:5 06-10 11:26:30.408523 4451 4451 I [ 1054.701118][schedu][0x4bc9d5bf9][03:26:30.400311] qca6750: [4451:I:mlme] mlme_set_chan_switch_in_progress: Set chan_switch_in_progress: 0 vdev 0 06-10 11:26:30.414371 0 0 E [ 1054.706966][ C2] [soft_i][0x4bc9f1282][03: 26:30.406158] qca6750: [0:E:REGULATORY] reg_process_ch_avoid_event: skipping LTE Coex unsafe channel change 06-10 11:26:30.414395 0 0 E [ 1054.706990][ C2] [soft_i][0x4bc9f1463][03: 26:30.406183] qca6750: [0:E:TIF] tgt_reg_ch_avoid_event_handler: Failed to process CH avoid event 06-10 11:26:30.417841 4451 4451 E [ 1054.710436][schedu][0x4bca016c5][03:26:30.409628] qca6750: [4451:E:CMN_MLME] mlme_sr_update: Spatial Reuse disabled for vdev_id: 0 06-10 11:26:30.418764 4451 4451 I [ 1054.711359][schedu][0x4bca05bfd][03:26:30.410551] qca6750: [4451:I:OSIF] wlan0(vdevid-0): fc:d2:02:**:**:e1 Connect with 00:03:7f:**:**:98 "Wi-Fi_200" is FAILURE, cmid 0xc00000e reason 9 status 43 06-10 11:26:30.420550 11720 11720 E [ 1054.713145][wpa_su][0x4bca0e200][03:26:30.412338] qca6750: [11720:E:OSIF] wlan_cfg80211_mc_cp_stats_get_station_stats: peer is null 06-10 11:26:30.420575 11720 11720 E [ 1054.713170][wpa_su][0x4bca0e3ff][03:26:30.412364] qca6750: [11720:E:HDD] wlan_hdd_get_station_stats: Invalid stats 06-10 11:26:30.420587 11720 11720 E [ 1054.713182][wpa_su][0x4bca0e4eb][03:26:30.412376] qca6750: [11720:E:HDD] hdd_get_station_info_ex: wlan_hdd_get_station_stats fail
06-11
Cloning into '/data/data/com.termux/files/home/buildAPKs/opt/api/github'... remote: Enumerating objects: 1638, done. remote: Counting objects: 100% (29/29), done. remote: Compressing objects: 100% (29/29), done. remote: Total 1638 (delta 0), reused 0 (delta 0), pack-reused 1609 (from 1) Receiving objects: 100% (1638/1638), 230.23 KiB | 613.00 KiB/s, done. Resolving deltas: 100% (814/814), done. Activating wake lock: DONE Creating symlinks: DONE Updating buildAPKs: 'init.bash' is loading sources from repository submodule 'https://github.com/BuildAPKs/buildAPKs.entertainment' into buildAPKs. This may take a little while to complete: Updating module ~/buildAPKs/sources/entertainment to the newest version... error: pathspec 'https://github.com/BuildAPKs/buildAPKs.entertainment' did not match any file(s) known to git error: pathspec 'sources/entertainment' did not match any file(s) known to git Cloning into '/data/data/com.termux/files/home/buildAPKs/sources/entertainment'... remote: Enumerating objects: 77, done. remote: Counting objects: 100% (77/77), done. remote: Compressing objects: 100% (50/50), done. remote: Total 77 (delta 7), reused 70 (delta 7), pack-reused 0 (from 0) Receiving objects: 100% (77/77), 43.82 KiB | 435.00 KiB/s, done. Resolving deltas: 100% (7/7), done. BuildAPKs init.bash prep.bash: Processing elements in directory /data/data/com.termux/files/home/buildAPKs/sources/entertainment/: Please wait... Running 'sha512sum --quiet -c sha512.sum' in directory '/data/data/com.termux/files/home/buildAPKs/sources/entertainment': DONE BuildAPKs init.bash prep.bash /data/data/com.termux/files/home/buildAPKs/sources/entertainment/: DONE Getting https://github.com/twuster/Rubix/tarball/51be3c6c808ff95d0533ad77deac088c2af49f80 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--: 0 0 0 0 0 0 0 0 --:--:-- --:--: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 95862 0 95862 0 0 59563 0 --:--:-- 0:00:100 148k 0 148k 0 0 93476 0 --:--:-- 0:00:01 --:--:-- 3646k Populating /data/data/com.termux/files/home/buildAPKs/sources/entertainment/twuster/Rubix/: twuster-Rubix-51be3c6/AndroidManifest.xml BuildAPKs init.bash prep.bash: Processing elements in directory /data/data/com.termux/files/home/buildAPKs/sources/entertainment/twuster/Rubix: Please wait... BuildAPKs init.bash prep.bash /data/data/com.termux/files/home/buildAPKs/sources/entertainment/twuster/Rubix: DONE Getting https://github.com/uvwxy/android-snappy/tarball/e5c16c6bc72ce70d7a667e3d94a14c068e5bb30b % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:100 9 100 9 0 0 14 0 --:--:-- --:--:-- --:--:-- 14 tar: This does not look like a tar archive tar: Exiting with failure status due to previous errors Retrieving project archive from https://github.com/BuildAPKs/buildAPKs.tarballs/e5c16c6bc72ce70d7a667e3d94a14c068e5bb30b % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 47 ms: Could not connect to server Populating /data/data/com.termux/files/home/buildAPKs/sources/entertainment/uvwxy/android-snappy/: tar: This does not look like a tar archive tar: Exiting with failure status due to previous errors ERROR return value 1 received by init.bash ma.bash init.bash trap.bash: Exiting due to error signal AndroidManifest.xml near or at line number 54 by `grep` with return value 1.,. BuildAPKs init.bash ma.bash init.bash trap.bash ERROR: Generated script error signal tar near or at line number 54 by `(` with return value 212,.[0m Signal 212 exit received by init.bash ma.bash trap.bash: Exiting... setup.buildAPKs.bash : DONE 🏁
08-16
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值