Explain the function of static keyword and final keyword in Java in detail>>>
Recently, when building the vagrant server, an access error occurred when using sudo apt get update
Err http://archive.ubuntu.com trusty InRelease
Err http://archive.ubuntu.com trusty-updates InRelease
Err http://security.ubuntu.com trusty-security InRelease
Err http://archive.ubuntu.com trusty Release.gpg
Could not resolve 'archive.ubuntu.com'
Err http://security.ubuntu.com trusty-security Release.gpg
Could not resolve 'security.ubuntu.com'
Err http://archive.ubuntu.com trusty-updates Release.gpg
Could not resolve 'archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease
Using Ping www.baidu.com
found that data can be returned, but Ping archive. Ubuntu. Com
did not respond, host machine has access to return
The correction method is:
Step 1: modify host /etc/hosts
and add the following mapping
91.189.91.93 archive.ubuntu.com
91.189.91.93 security.ubuntu.com
Step 2: restart the network service
$ /etc/init.d/networking restart
Similar Posts:
- Linux Error: apt-get 404 not found [How to Solve]
- [Solved] Ubuntu sudo apt-get update Warning: Failed to fetch
- [Solved] Mac docker Build Image apt-get update Error: GPG Signature Error
- System update error: no_PUBKEY [How to Solve]
- Docker-compose up -d nginx Error: Unable to find expected entry… [How to Solve]
- unzip error “End-of-central-directory signature not found”
- Root permission NPM global installation (- G) will still have insufficient permissions. Please know the parameter unsafe perm
- Android SDK manager can’t be updated to solve the problem that dl.google.com can’t be connected
- PING[ARC2]: Heartbeat failed to connect to standby ‘gqtzdb_dg’. Error is 16047
- [Solved] E: Encountered a section with no Package: header