在ubuntu系统中安装sysbench时报错“Could not resolve 'ports.ubuntu.com'”怎么办呢?

 

安装sysbench,报错"Could not resolve 'ports.ubuntu.com'"

安装时报错:

安装sysbench,报错"Could not resolve 'ports.ubuntu.com'"

亲测可用的方法:

修改 resolv.conf 文件中的 nameserver 中的值。

sudo vim /etc/resolv.conf

将 nameserver 中的值替换成

nameserver 8.8.8.8

保存文件后。重启network 服务

/etc/init.d/networking restart

然后执行安装sysbench命令就不会报错了。

*** nameserver 8.8.8.8 ,修改完后所有进程都可以正常运行而不会出错。***

 

参考链接: https://www.cnblogs.com/wjm956/p/9848693.html

 

 

 

相关文章:

  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-04-26
  • 2021-08-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-12
  • 2022-01-06
  • 2021-12-08
  • 2021-05-18
  • 2022-12-23
  • 2021-08-31
相关资源
相似解决方案