drush 安装Localization update 模块时出现错误,无法下载成功,错误图片如下:
错误代码:
simplexml_load_file(): I/O warning : failed to load external entity [warning]
"" Project.php:96
Failed to get available update data from [error]
https://updates.drupal.org/release-history/l10n_update/7.x
Could not download requested project(s). [error]
解决办法:
这个问题是网卡ip 设置引起的错误,
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none #dhcp << 这里出现错误,把none改为dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s3
UUID=2f232392-8566-479e-8578-3c059b5bec78
DEVICE=enp0s3
ONBOOT=yes
IPADDR=192.168.2.106 #<<删除这行ip地址配置
重新配置网卡信息,
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s3
UUID=2f232392-8566-479e-8578-3c059b5bec78
DEVICE=enp0s3
ONBOOT=yes
重启网络就可以了。
systemctl restart network #重启网络