How to resolve the WAAPI_ERROR_MISSING_PACKAGE_SOURCES and WAAPI_ERROR_MISSING_PACKAGE_INFORMATION error returned by GetMissingPatches on Linux?
This feature is currently in beta. Expect potential changes or improvements in future versions.
Problem
On Linux-based distributions, especially Ubuntu, the GetMissingPatches
method may return WAAPI_ERROR_MISSING_PACKAGE_RESOURCES
or WAAPI_ERROR_MISSING_PACKAGE_INFORMATION
. This error prevents the retrieval of missing patch information during the method's invocation.
This issue is caused by missing or corrupted package sources. In certain cases, it occurs due to the initial machine setup lacking any configured sources, which leads to the error described above.
Solution
Option 1: Using fetch_update_repository
flag
This input flag is only available starting with SDK Engine version 4.3.3731.0 on Linux. Please ensure you have upgraded to this version or later.
The optional input flag fetch_update_repository
has been introduced in GetMissingPatches
method to update the machine’s source package before retrieving the missing patches information.
- Field Name:
input.fetch_update_repository
- Field Type:
boolean
- Description: Instructs the SDK to update the repository before retrieving missing packages.
- Behavior:
- If
fetch_update_repository
is provided and set totrue
, the SDK will attempt to update the package repository. - If
fetch_update_repository
is omitted or the value isfalse
, the SDK will skip the repository update.
- If
When using this parameter, ensure the process is running with sudo
privileges and has an active internet connection. Otherwise, the operation may fail.
Usage Example
{
"input": {
"method": 1013,
"signature": 200041
}
}
Option 2: Manually update the source package
On Ubuntu, run the below command with sudo
privileges to update the package sources. Then, re-invoke the GetMissingPatches
method to retrieve the missing patch data.
sudo apt update
If Further Assistance is required, please proceed to log a support case or chatting with our support engineer.