mah*_*sif 3 networking linux ifconfig mtu ubuntu
我需要更改MTU新安装的 ubuntu 18.04 中的大小。这可以通过 来完成ifconfig。但我无法安装ifconfig。每当我运行命令时,sudo apt install net-tools我都会收到以下错误。
Err:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 net-tools amd64 1.60+git20161116.90da8a0-1ubuntu1
Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/n/net-tools/net-tools_1.60+git20161116.90da8a0-1ubuntu1_amd64.deb Could not resolve 'archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Run Code Online (Sandbox Code Playgroud)
然后我尝试sudo apt-get update并得到以下结果
asif@asif-HP:~$ sudo apt-get update
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Could not resolve 'archive.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Could not resolve 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Could not resolve 'archive.ubuntu.com'
Err:5 http://archive.ubuntu.com/ubuntu bionic-security InRelease
Could not resolve 'archive.ubuntu.com'
Err:6 http://archive.canonical.com/ubuntu bionic InRelease
Could not resolve 'archive.canonical.com'
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not resolve 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Could not resolve 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Could not resolve 'archive.ubuntu.com'
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/bionic/InRelease Could not resolve 'archive.canonical.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Could not resolve 'archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)
实际上我正在尝试更改 MTU 大小来解决问题,Could not resolve 'archive.canonical.com'所以我陷入了僵局。现在我该怎么做?
注意:我更改了 ubuntu 存档服务器,但总是出现相同的错误。
roa*_*ima 10
您可以使用ip,它应该已经安装了。例如,
ip link set mtu 1200 eth0
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9296 次 |
| 最近记录: |