小编mah*_*sif的帖子

如何在 ubuntu 18.04 中不使用 ifconfig 更改 MTU?

我需要更改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 …
Run Code Online (Sandbox Code Playgroud)

networking linux ifconfig mtu ubuntu

3
推荐指数
1
解决办法
9296
查看次数

标签 统计

ifconfig ×1

linux ×1

mtu ×1

networking ×1

ubuntu ×1