Ubuntu apt-get 错误 -11 -system error

本文介绍了如何解决DNS解析错误的问题,通过临时修改resolv.conf文件并添加特定的域名服务器(如8.8.8.8),可以快速修复无法访问网站的情况。为了确保更改持久有效,文章还提供了网络配置文件interfaces的修改示例。

错误图片

 

上述错误是dns解析错误,不能解析域名了,所以也访问不了

解决办法,添加dns,命令如下

sudo vim /etc/resolv.conf

添加 nameserver (此外填写域名服务器,我是电信即填写)

nameserver 8.8.8.8

 

注:这样可以临时解决,不过重启系统后,这里会被还原,按如下方式修改网络配置

sudo vim /etc/network/interfaces

 

#IP配置

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.0.3.79
netmask 255.255.255.0
network 10.0.3.0
broadcast 10.0.3.255
gateway 10.0.3.1

#这里是DNS配置
dns-nameservers 8.8.8.8

最后重启下系统

sudo reboot

转载于:https://www.cnblogs.com/debmzhang/p/3369715.html

Removing intermediate container 87edf3c0fb72 ---> c532bf19312b Step 30/34 : RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common ca-certificates && add-apt-repository ppa:deadsnakes/ppa && apt-get update && apt-get install -y python3.7 python3.7-dev python3.7-distutils ---> Running in 2edc12f40ed6 Ign:1 https://deb.nodesource.com/node_16.x nodistro InRelease Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [102 kB] Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [102 kB] Err:5 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: 104.20.45.190 443] Ign:6 https://apt.kitware.com/ubuntu bionic InRelease Err:7 https://apt.kitware.com/ubuntu bionic Release Could not handshake: Error in the pull function. [IP: 66.194.253.25 443] Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [102 kB] Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [102 kB] Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [102 kB] Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [102 kB] Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [102 kB] Err:3 http://security.ubuntu.com/ubuntu bionic-security InRelease The following signatures were invalid: BADSIG 3B4FE6ACC0B21F32 Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com> Get:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [102 kB] Get:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [102 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 'https://deb.nodesource.com/node_16.x nodistro Release' no longer has a Release file. W: https://apt.kitware.com/ubuntu/dists/bionic/InRelease: No system certificates available. Try installing ca-certificates. W: https://apt.kitware.com/ubuntu/dists/bionic/Release: No system certificates available. Try installing ca-certificates. E: The repository 'https://apt.kitware.com/ubuntu bionic Release' no longer has a Release file. W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.ubuntu.com/ubuntu bionic-security InRelease: The following signatures were invalid: BADSIG 3B4FE6ACC0B21F32 Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com> The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends software-properties-common ca-certificates && add-apt-repository ppa:deadsnakes/ppa && apt-get update && apt-get install -y python3.7 python3.7-dev python3.7-distutils' returned a non-zero code: 100
最新发布
11-08
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值