发布问题疑难解答

本节中的信息包括在 System Center Updates Publisher 中发布软件更新时可能出现问题的疑难解答。此主题还包括发布软件更新之前必须满足的发布和安全要求、描述了用于帮助诊断问题的日志文件,并列出了常见问题的疑难解答解决方案。

发布要求

Updates Publisher 3.0

  • 要被配置为更新服务器的 Windows Server Update Services (WSUS) 3.0 必须安装在本地或远程计算机上,并且可以从运行 Updates Publisher 的计算机上进行访问。

  • 运行 WSUS 3.0 的计算机必须指定为**“设置”**对话框中的更新服务器。端口设置和数字证书也必须从对话框进行配置。有关详细信息,请参阅如何配置更新服务器

  • 当从运行 WSUS 3.0 的远程计算机上配置更新服务器时,WSUS 3.0 管理员控制台必须安装在运行 Updates Publisher 的计算机上。

  • 至少一个软件更新必须标记为发布。有关详细信息,请参阅如何为软件更新设置发布标志

Updates Publisher 4.0

  • 要被配置为更新服务器的 WSUS 3.0 Service Pack (SP1) 必须安装在本地或远程计算机上,并且可以从运行 Updates Publisher 的计算机上进行访问。

  • 运行 WSUS 3.0 的计算机必须指定为**“设置”**对话框中的更新服务器。端口设置和数字证书也必须从对话框进行配置。有关详细信息,请参阅如何配置更新服务器

  • 当从运行 WSUS 3.0 SP1 的远程计算机上配置更新服务器时,WSUS 3.0 SP1 管理员控制台必须安装在运行 Updates Publisher 的计算机上。

  • 至少一个软件更新必须标记为发布。有关详细信息,请参阅如何为软件更新设置发布标志

安全要求

在软件更新发布到更新服务器上时以下安全权限是必需的:

  • 启动发布操作的用户必须具有更新服务器上的管理权限。

  • 连接到更新服务器时,使用的端口必须在**“设置”对话框的“更新服务器”**选项卡指定。

  • 用于发布软件更新签名的数字证书必须在**“设置”对话框的“更新服务器”**选项卡指定。

有关 Updates Publisher 安全要求的详细信息,请参阅 Updates Publisher 的安全考虑事项

日志文件

Updates Publisher 向 UpdatesPublisher.log 文件中写入信息以帮助诊断在打开和使用控制台时可能出现的问题。系统会为打开控制台的用户在临时文件夹(默认情况下位于 %USERPROFILE%\Local Settings\Temp 中)中创建一个日志文件。

Important重要信息
Updates Publisher 日志文件必须用简单的文本编辑器(如“记事本”)来打开。如果在全文编辑器中打开日志文件,则可能会无法正确显示日志文件的内容。

UpdatesPublisher.log

当 Updates Publisher 成功将软件更新发布到本地更新服务器时,以下条目写入 UpdatesPublisher.log:

Initialized Publish Wizard

Connecting to update server

Connecting to a local update server with locally detected settings

Publishing update: 'Update GUID'

SDP XML file for publishing created at %USERPROFILE%\Local Settings\Temp\tmprandom number.tmp

Temporary SDP XML file %USERPROFILE%\Local Settings\Temp\tmprandom number.tmp created for publishing…

Retrieving content for update 'Update GUID' from 'Download URL

Content will be saved to %USERPROFILE%\Local Settings\Temp \random folder name\notepad.exe.

Downloaded content for update 'Update GUID' to local file: %USERPROFILE%\Local Settings\Temp \random folder name\notepad.exe.

Using default return codes for update…

Calling update server API for update 'Update GUID'

Calling update server API for publishing update 'Update GUID'

Removing temporary files…

Completed publishing for update 'Update GUID'

将软件更新发布到远程更新服务器包含同样的日志条目。如果发布过程失败,请检查 UpdatesPublisher.log 中可能指示故障原因的错误消息。

常见发布问题

以下几节列出了将软件更新发布到更新服务器时可能出现的常见问题、可能引起问题的原因和可能的解决方案列表。

缺少依赖项导致发布更新失败

本节中的信息仅适用于 System Center Updates Publisher 4.0.

对带一个或多个依赖项的更新启动发布过程时,必须将更新和其所有的依赖项发布到更新服务器,否则会导致更新的发布过程失败。Updates Publisher 首先检查 Windows Server Update Services (WSUS) 数据库中的依赖项,如果存在这些依赖项,则会将该更新发布到更新服务器。如果更新服务器数据库中没有一个或多个依赖项,则 Updates Publisher 将会检查缺少的依赖项是否在 Updates Publisher 的数据库中,如果在,则会从资源中下载依赖项并将其发布到更新服务器。如果在两个位置中均未找到一个或多个依赖项,则更新的发布过程失败。该发布过程将会继续进行其他已经标记为发布的更新。

一个或多个更新不能由工具发布

尝试标记发布软件更新时,以下错误消息显示在发布向导页的**“确认”**页面:

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 的更新所具有的适用性规则配置不正确。修改适用性规则并重新发布软件更新。

  • 软件更新定义中有一个或多个不推荐使用的规则。从软件更新定义中删除不推荐使用的规则,然后为软件更新设置发布标记。有关详细信息,请参阅升级到 Updates Publisher 中的“不支持的规则”部分。

尝试发布更新时出错

发布软件更新时,以下错误消息显示在发布向导的**“确认”**页面:

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.

在解决此错误时,请验证以下事项:

  • 在**“设置”对话框的“更新服务器”**选项卡指定的数字证书无效。有关配置证书的信息,请参阅如何配置更新服务器

由于发布到更新服务器过程中出错,更新尚未发布

发布软件更新时,以下错误消息显示在发布向导的**“确认”**页面:

The following X update(s) were not published due to an error during publishing to the update server:

此错误消息在出现其他问题时也会显示。通过读取 UpdatesPublisher.log 可识别每种问题。

文件的文件签名验证失败

向 UpdatesPublisher.log 中写入了下列日志条目:

Publish: : Exception occurred during publishing: Verification of file signature failed for file: path to file and file name

在解决此错误时,请验证以下事项:

  • 必须将在**“设置”对话框的“更新服务器”选项卡上指定的更新服务器证书复制到“受信任的发布服务器”证书存储,如果在更新服务器计算机上使用了自签名证书,则必须将证书复制到“受信任的根证书颁发机构”**证书存储。如果证书对于更新服务器而言是远程的,则必须将证书复制到 Updates Publisher 计算机上的证书存储。

CreateDirectory 失败

向 UpdatesPublisher.log 中写入了下列日志条目:

  • Publish: : Exception occurred during publishing: CreateDirectory failed

在解决此错误时,请验证以下事项:

  • 用户没有权限访问更新服务器上的 UpdateServicesPackages 共享文件夹。

由于内容检索过程中出错,更新尚未发布

发布软件更新时,以下错误消息显示在发布向导的**“确认”**页面:

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 设置并重新发布软件更新。

另请参阅

任务

如何配置更新服务器
如何将软件更新发布到更新服务器
如何为软件更新设置发布标志

概念

关于发布向导
Updates Publisher 的日志文件
Updates Publisher 的安全考虑事项
升级到 Updates Publisher

其他资源

发布向导
Updates Publisher 疑难解答