常见发布问题
以下几节列出了将软件更新发布到更新服务器时可能出现的常见问题、可能引起问题的原因和可能的解决方案列表。
A、缺少依赖项导致发布更新失败
对带一个或多个依赖项的更新启动发布过程时,必须将更新和其所有的依赖项发布到更新服务器,否则会导致更新的发布过程失败。Updates Publisher 首先检查 Windows Server Update Services (WSUS) 数据库中的依赖项,如果存在这些依赖项,则会将该更新发布到更新服务器。如果更新服务器数据库中没有一个或多个依赖项,则 Updates Publisher 将会检查缺少的依赖项是否在 Updates Publisher 的数据库中,如果在,则会从资源中下载依赖项并将其发布到更新服务器。如果在两个位置中均未找到一个或多个依赖项,则更新的发布过程失败。该发布过程将会继续进行其他已经标记为发布的更新。
B、一个或多个更新不能由工具发布
尝试标记发布软件更新时,以下错误消息显示在发布向导页的"确认"页面:
One or more updates are not able to be published by the tool.
向 UpdatesPublisher.log 中写入了下列日志条目:
Flag For Publish : Update with package id packageID is not updates publisher compliant or this update cannot be found in the database
Flag For Publish : Software update does not contain IsInstalled rules.
在解决此错误时,请验证以下事项:
软件更新定义至少通过一个已安装的验证规则创建。至少为定义创建一个已安装的验证规则,然后重新发布软件更新。
基于 MSI 的更新所具有的适用性规则配置不正确。修改适用性规则并重新发布软件更新。
软件更新定义中有一个或多个不推荐使用的规则。从软件更新定义中删除不推荐使用的规则,然后为软件更新设置发布标记。
C、尝试发布更新时出错
发布软件更新时,以下错误消息显示在发布向导的"确认"页面:
An error occurred while attempting to publish updates.
Error 1: Update server '' does not appear to be configured with a certificate for publishing, publishing aborted.
向 UpdatesPublisher.log 中写入了下列日志条目:
Publish: : Update server '' does not appear to be configured with a certificate for publishing, publishing aborted.
在解决此错误时,请验证以下事项:
在"设置"对话框的"更新服务器"选项卡指定的数字证书无效。
D、由于发布到更新服务器过程中出错,更新尚未发布
发布软件更新时,以下错误消息显示在发布向导的"确认"页面:
The following X update(s) were not published due to an error during publishing to the update server:
此错误消息在出现其他问题时也会显示。通过读取 UpdatesPublisher.log 可识别每种问题。
E、文件的文件签名验证失败
向 UpdatesPublisher.log 中写入了下列日志条目:
Publish: : Exception occurred during publishing: Verification of file signature failed for file: path to file and file name
在解决此错误时,请验证以下事项:
必须将在"设置"对话框的"更新服务器"选项卡上指定的更新服务器证书复制到"受信任的发布服务器"证书存储,如果在更新服务器计算机上使用了自签名证书,则必须将证书复制到"受信任的根证书颁发机构"证书存储。如果证书对于更新服务器而言是远程的,则必须将证书复制到 Updates Publisher 计算机上的证书存储。
F、CreateDirectory 失败
向 UpdatesPublisher.log 中写入了下列日志条目:
Publish: : Exception occurred during publishing: CreateDirectory failed
在解决此错误时,请验证以下事项:
用户没有权限访问更新服务器上的 UpdateServicesPackages 共享文件夹。
G、由于内容检索过程中出错,更新尚未发布
发布软件更新时,以下错误消息显示在发布向导的"确认"页面:
The following X update(s) were not published due to an error during content retrieval:
Error 1: product name
向 UpdatesPublisher.log 中写入了下列日志条目:
Publish: : Failed to download update content to local file, error: "The remote name could not be resolved: 'server name'
Publish: : Update UpdateID will not be published
在解决此错误时,请验证以下事项:
在软件更新定义中指定的下载 URL 无效。验证下载 URL 设置并重新发布软件更新。
参考:微软技术支持库。