worepress更新失败解决办法

更新失败错误代码

  • 下载失败。: Too Many Requests,下载失败。
  • cURL error 18: transfer closed with 12444718 bytes remaining to read

解决办法

一、解决办法:使用下载工具下载最新安装程序

  • 复制WordPress下载地址
    英文版地址:https://wordpress.org/latest.zip
    中文版地址:https://cn.wordpress.org/latest-zh_CN.zip
  • 打开下载软件(迅雷或其它下载工具 ),新建下载任务
  • 复制粘贴上面的下载地址即可正常下载了。

二、上传并安装下载的更新程序

  • 进FTP或主机管理后台删除根目录下的wp-includes和wp-admin文件夹。
  • 把下载的更新程序解压在本地电脑的文件夹里,将除了wp-content文件夹外的所有文件都上传并覆盖到你博客主机相对应的位置,遇到是否覆盖时,选择全部覆盖。
  • 运行http://你的博客地址/wp-admin/upgrade.php,执行升级。

Ubuntu使用do-release-upgrade升级到新版本系统

命令参数

用法: do-release-upgrade [options]

Options:
-h, –help show this help message and exit
-V, –version 显示版本并退出
-d, –devel-release 如果使用最新的支持版本,则升级到开发版本
–data-dir=DATA_DIR 包含数据文件的文件夹
-p, –proposed 尝试通过 $distro-proposed 更新到最新版本。
-m MODE, –mode=MODE 以特定模式升级。 目前支持:用“桌面”为桌面系统,“服务器”为服务器系统升级。
-f FRONTEND, –frontend=FRONTEND
运行指定的前端
-c, –check-dist-upgrade-only
仅在有新的发行版发布时检查,并通过退出码(exit code)报告结果
–allow-third-party Try the upgrade with third party mirrors and
repositories enabled instead of commenting them out.
-q, –quiet

使用示例

将系统升级至最新的发行版

robin@robin-B450M-GAMING:~$ sudo do-release-upgrade

将系统升级至最新的开发版本,不建议生产环境使用

robin@robin-B450M-GAMING:~$ sudo do-release-upgrade -d