question

jg-6461 avatar image
0 Votes"
jg-6461 asked jg-6461 edited

Install Print and Document Services failed


On Windows Server 2016, I am trying to install "Print and Document Services"
I get the message
"The specified package is not valid Windows package error 0x800f0805"
Researching the issue, I tried:
sfc /scannow
dism /online /cleanup-image /restorehealth
sfc /scannow

Didn't help.
I saw that this might be a language issue,
I went to Control Panel -> Region , language is set to Match Windows Display Language

I ran lpksetup , and there is only one, English, language installed.

Ideas?

windows-server-2016
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered jg-6461 edited

Hello Jg-6461

The reference to the languages issue is to the presence of exotic languages in the registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\PackageDetect

Sometimes deleting Language packs that are not related to the system may mitigate this error. Please, before making any changes to a registry key or folder, always save a backup of that key in case you need it recovered.

On the other hand, one workaround is to Export the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages" from a server where you can deploye the role (even not fully configured) then import in the problematic server. This will also mitigate the error during the installation.

All in all I would recommend to try to add the feature using DISM and see if that helps versus installing through GUI.
https://docs.microsoft.com/en-us/archive/blogs/joscon/adding-features-with-dism




--If the reply is helpful, please Upvote and Accept as answer--

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Found this in the CBS.log file which was generated when I tried to install the Print and Document services feature:
None of which is very helpful.

Session: 30919730_707435469 initialized by client DISM Package Manager Provider, external staging directory: (null), external registry directory: (null
Not able to find an installed package package from moniker: @Foundation [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]
Failed to resolve package from moniker [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]
Failed to OpenPackage using worker session [HRESULT = 0x800f0805]
Session: 30919730_749233083 initialized by client WindowsUpdateAgent, external staging directory: (null), external registry directory: (null
Failed to internally open package. [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]
Failed to OpenPackage using worker session [HRESULT = 0x800f0805]
Session: 30919730_749493395 initialized by client WindowsUpdateAgent, external staging directory: (null), external registry directory: (null
Failed to internally open package. [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]
Failed to OpenPackage using worker session [HRESULT = 0x800f0805]



Having a problem deleting keys in PackageDetect. Added the needed permission to my account, but still unable to delete all non en-us entries.

Here is what my PackageDetect tree looks like. Am I supposed to delete ALL these language related entries? (excepting en-us of course).

144610-regeditscreenshort.png


0 Votes 0 ·