簡體   English   中英

AWS EC2 t2.micro:sudo apt install 和 wget 連接錯誤

[英]AWS EC2 t2.micro: sudo apt install and wget connection error

AWS t2.micro:sudo apt install 和 wget 連接錯誤。

$ wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.67/bin/apache-tomcat-9.0.67.tar.gz
--2022-10-04 05:41:44--  https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.67/bin/apache-tomcat-9.0.67.tar.gz
Resolving dlcdn.apache.org (dlcdn.apache.org)... 151.101.2.132, 2a04:4e42::644
Connecting to dlcdn.apache.org (dlcdn.apache.org)|151.101.2.132|:443...


$ sudo apt install net-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  net-tools
0 upgraded, 1 newly installed, 0 to remove and 22 not upgraded.
Need to get 196 kB of archives.
After this operation, 864 kB of additional disk space will be used.
0% [Connecting to us-east-1.ec2.archive.ubuntu.com (3.87.126.146)]

嘗試修復您的 resolve.conf 並添加一個有效的名稱服務器。 Google 提供了一個免費的 8.8.8.8。

vi /etc/resolve.conf

名稱服務器 8.8.8.8

這可以提供幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM