sudo apt-get update 报错:解析“ports.ubuntu.com:http”时出现系统故障 - getaddrinfo (16: 设备或资源忙)

  • 报错:
    错误:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
    解析“ports.ubuntu.com:http”时出现系统故障 - getaddrinfo (16: 设备或资源忙)
    错误:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports xenial InRelease
    解析“mirrors.tuna.tsinghua.edu.cn:http”时出现系统故障 - getaddrinfo (16: 设备或资源忙)
    错误:3 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
    解析“ports.ubuntu.com:http”时出现系统故障 - getaddrinfo (16: 设备或资源忙)
    错误:4 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
    解析“ports.ubuntu.com:http”时出现系统故障 - getaddrinfo (16: 设备或资源忙)
    错误:5 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
    解析“ports.ubuntu.com:http”时出现系统故障 - getaddrinfo (16: 设备或资源忙)
    正在读取软件包列表… 完成
    W: 无法下载 http://ports.ubuntu.com/ubuntu-ports/dists/focal/InRelease 解析“ports.ubuntu.com:http”时出现系统故障 - getaddrinfo (16: 设备或资源忙)
    W: 无法下载 http://ports.ubuntu.com/ubuntu-ports/dists/focal-updates/InRelease 解析“ports.ubuntu.com:http”时出现系统故障 - getaddrinfo (16: 设备或资源忙)
    W: 无法下载 http://ports.ubuntu.com/ubuntu-ports/dists/focal-backports/InRelease 解析“ports.ubuntu.com:http”时出现系统故障 - getaddrinfo (16: 设备或资源忙)
    W: 无法下载 http://ports.ubuntu.com/ubuntu-ports/dists/focal-security/InRelease 解析“ports.ubuntu.com:http”时出现系统故障 - getaddrinfo (16: 设备或资源忙)
    W: 无法下载 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/xenial/InRelease 解析“mirrors.tuna.tsinghua.edu.cn:http”时出现系统故障 - getaddrinfo (16: 设备或资源忙)
    W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。

  • 报错原因:报错原因:手贱是根本原因!直接原因是把root下的目录和文件权限都改为了777

  • 报错分析:报错分析:update对权限要求比较敏感,它的安全机制要求比较高。Linux是开源的,用户拥有所有权限,只是有些操作安全有些操作危险

  • 解决办法:修改/etc; /etc/systemd; /etc/systemd/system; /usr; /usr/lib; /usr/lib/systemd; /usr/lib/systemd/system 的权限,基本上都是修改为755(系统可读可写可执行,但所属组和其他用户可读可执行不可写)(可参考正常/root下对应目录或文件的权限来修改)

  • 查看权限命令:
    ls -l Directory name / file name

  • 修改755权限命令:
    sudo chmod 755 Directory name / file name

参考博文:https://forums.developer.nvidia.com/t/dns-related-issues-with-custom-carrier-board-and-l4t-35-3-1/255657

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值