原因:配置dns是国内dns,不能正常解析,影响下载插件。

wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | bash

debian

1、设置IP地址、网关
nano /etc/network/interfaces /etc/network/interfacesbak #备份原有配置文件
nano /etc/network/interfaces #编辑网网卡配置文件
auto lo
auto eth0 #开机自动连接网络
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static #static表示使用固定ip,dhcp表述使用动态ip
address 192.168.21.166 #设置ip地址
netmask 255.255.255.0 #设置子网掩码
gateway 192.168.21.2 #设置网关
ctrl+o #保存配置
ctrl+x #退出

2、设置dns
cp /etc/resolv.conf /etc/resolv.confbak #备份原有dns配置文件
nano /etc/resolv.conf #编辑配置文件
nameserver 8.8.8.8 #设置首选dns
nameserver 8.8.4.4 #设置备用dns
ctrl+o #保存配置
ctrl+x #退出

3、重启网络
service networking restart #重启网络

相关文章:

  • 2021-07-18
  • 2021-07-27
  • 2021-04-02
  • 2022-12-23
  • 2021-06-18
  • 2021-09-17
  • 2022-01-30
  • 2022-12-23
猜你喜欢
  • 2021-12-26
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
  • 2022-01-17
  • 2021-06-02
相关资源
相似解决方案