Исправляем ошибки установки обновлений Windows 7

Windows 7 по-прежнему остается популярной операционной системой в корпоративной среде, несмотря на то, что уже вышли две новые версии клиентских ОС. Расширенная поддержка «семёрки» закончится лишь 14 января 2020 г., а это значит, что ближайшие 4 года для нее будут выходить обновления, исправляющие обнаруженные уязвимости.

Существует правило – если есть обновления, то есть и проблемы с их установкой. Давайте разберем, какие основные проблемы возникают при обновлении Windows 7 через Windows Server Update Services (WSUS) и как их исправить с наименьшими затратами.

Ошибка #1. Failed to find updates with error code 80244010

Эту ошибку вы практически гарантированно будете наблюдать на любой системе, впервые обратившейся к серверу WSUS. В WindowsUpdate. log также встретится предупреждение:
WARNING: Exceeded max server round trips

Причина проблемы в том, что список обновлений стал слишком большим, и клиент не может принять его за один заход. Подробности — blogs. technet. microsoft. com/sus/2008/09/18/wsus-clients-fail-with-warning-syncserverupdatesinternal-failed-0x80244010
Какое решение предлагает Microsoft? Если после ошибки запустить повторный поиск обновлений, то процесс загрузки метаданных продолжится с момента возникновения ошибки. Терпение господа, терпение. Три, пять попыток wuauclt /detectnow – и все образуется. Не забудьте при повторном поиске дождаться окончания предыдущего цикла поиска, иначе магия не сработает!

Ошибка #2. Не устанавливаются обновления Windows с ошибкой 0x80070308

Встречается эпизодически, и в одном случае из 100 у нее есть единственное и очень специфическое решение — удалить ключ
HKLM\Components\PendingRequired=1

Перезагрузиться. Здесь важно не переусердствовать, не следует удалять никакие другие ключи в этом разделе, даже если они вам очень не нравятся, потому что после этого обновления прекратят ставиться навсегда.

Ошибка #3. Все другие ошибки

Проблема заключается в том, что во время установки обновлений в системе могут появиться битые файлы. Что является причиной — неисправная сеть, диск, оперативная память, сам Windows Update – выяснить не получится, а исправить ошибки для установки последующих обновлений придется.

Как правило, повреждаются *.cat, *.mum, *.manifest файлы. У кого-то повреждаются *.dll, но я на практике не сталкивался. И вроде бы средство SURT должно само исправить ошибки, поскольку внутри него есть огромный каталог эталонных файлов. Только в последний раз SURT обновлялся в октябре 2014 года, а исправлений на операционную систему с тех пор вышло бесчисленное множество, и многих файлов в каталоге не хватает.

Ниже я опишу последовательность действий, необходимых для исправления ошибок установки обновлений на Windows 7 x64 с использованием SURT. Для редакции x86 просто потребуется другой пакет SURT из KB947821.

Последовательность действий будет следующая.

1. Запустить первый проход Windows6.1-KB947821-v34-x64.msu

Пользователя от работы отвлекать не потребуется, все сделаем удаленно. Создаем следующий командный файл и запускаем его:

где BUHWKS02 – целевая машина.
Когда скрипт отработает и встанет на паузу, проверяем %windir%\Logs\CBS\CheckSUR. log
Если ошибок не найдено – дело не в битых обновлениях.
Если он заканчивается

то будем исправлять.

2. Копируем эталонные файлы на целевую машину

Microsoft предлагает нам длинную, путанную процедуру с извлечением хороших файлов из обновлений и размещением их в определенные каталоги средства SURT. При этом пути в статьях неверные. Где-то и вовсе рекомендуют подкладывать оригинальные msu файлы.

Самый простой и правильный вариант следующий — скопировать эталонные файлы с рабочей системы:

*.mum and *.cat из C:\Windows\servicing\Packages складываются в %windir%\Temp\CheckSUR\servicing\packages
*.manifest из C:\Windows\winsxs\Manifests складываются в %windir%\Temp\CheckSUR\winsxs\manifests\

Проблема в том, что битых файлов обычно десятки, и их очень сложно выбрать и скопировать. Тогда на помощь приходит следующий скрипт PowerShell (эталонной считается машина, с которой вы запускаете скрипт)

Как видите, скрипт прост и может быть легко заточен напильником под вашу инфраструктуру.

3. Запускаем второй проход Windows6.1-KB947821-v34-x64.msu
Ошибка #4. Если SURT отработал нормально, а обновления все равно не ставятся

Попробуйте прибегнуть к старому приему – сбросить службу Windows Update в исходное состояние. Для этого необходимо удалить каталог %windir%\SoftwareDistribution.

Ошибка #5

Клиент исчезает из консоли WSUS. Любопытная ошибка, связанная с неправильным клонированием машин и задвоением (затроением и т. д.) идентификаторов клиентов. Решается так:

Ошибка #6

Ошибка связана с нехваткой ресурсов в AppPool WSUS. Решение — снять лимит на потребляемую память. Как это сделать — статья.
Коротко: Открываем IIS, Application Pools, WsusPool, Advanced Settings.
Параметр Private Memory Limit устанавливаем в 0.

Продолжение темы настройки WSUS — в моей следующей статье: https://habrahabr. ru/post/329440/

PS:
Многие ошибки решены в новом клиенте WSUS:
1. KB3125574 «Windows 7 post SP1 Convenience Rollup Update». Внимательно ознакомьтесь с разделом Known issues!

Предварительно необходимо установить KB3020369 «April 2015 servicing stack update for Windows 7 and Windows Server 2008 R2».

Error 0x8024200d – Windows Update Failure [SOLVED]

If you’re seeing an error code 0x8024200d when performing a Windows update, you’re not alone. Many Windows users are reporting it. This error code usually appears when they try to update to a new build of Windows system. The reason behind it is that some update files are missing or corrupted.

The good news is you can fix it. You should be able to fix the problem quite easily using one of the solutions we’ve listed below. You may not have to try them all. Just work your way down the list until you find the one that works.

Method 1: Running the Windows Update Troubleshooter

You can download and run the Windows Update Troubleshooter to automatically diagnose and resolve any issues regarding Windows Update.

1) Click here to download the Windows Update Troubleshooter.

2) Double click the downloaded file (WindowsUpdate. diagcab) to run the troubleshooter, and then click Next.

If your current operating system is Windows 7, you just need to wait until the troubleshooter finishes the process and shows you the process result. If your current operating system is Windows 8 or Windows 10, you may need to follow the steps below.

3) If there is a more recent version of Windows Update troubleshooter available, click to run it.

4) In the new version of Windows Update troubleshooter, Click Next. The troubleshooter will check the available updates for your machine.

5) Click Apply this fix to start the update process in the background immediately.

The troubleshooter will try to fix the issue for you. You can restart your computer and try to perform the Windows update again. If it still doesn’t work, please try the next method.

Method 2: Restarting the Windows Update service

You may see this error code if there is something wrong with the Windows Update service. You can try to restart the Windows Update service to resolve this problem. Here’s how to do it:

1) On your keyboard, press the Windows Logo key and R at the same time to open the Run dialog, then type services. msc and press Enter to open the Services window.

2) Right click Windows Update and select Stop if its current status is “Running”. If the Windows Update service is not running, please skip this step.

3) On your keyboard, press the Windows Logo Key and E at the same time to open File Explorer. Copy the path below and paste it in the address bar, then press Enter on your keyboard to go to the DataStore folder.

Please paste it in the address bar.

4) Delete all the files in the folder DataStore.

When all the files are deleted, you shall see “This folder is empty”.

5) On your keyboard, press the Windows Logo Key and E at the same time to open File Explorer. Copy the path below and paste it in the address bar, then press Enter on your keyboard to open the Download folder.

Please paste it in the address bar.

6) Delete all the files in the folder Download.

When all the files are deleted, you shall see “This folder is empty”.

7) In the Services window, right click Windows Update and select Start.

Go and check Windows Update again to see whether you can perform the Windows update or not. If it still doesn’t work, please try the next method.

Method 3: Running System File Checker

System File Checker can scan for corruptions in Windows system files and restore corrupted files. When you fail to install Windows updates, it may be caused by some corruption error. In this case, running System File Checker may help you resolve this issue.

1) On your keyboard, press the Windows Logo Key and then type cmd in the search box. When you see Command Prompt in the list of results, right click it and then select Run as administrator. You will be prompted for permission. Click Ok to run the Command Prompt.

2) On your keyboard, type the command below and press Enter. If your current operating system is Windows 7, please skip this step.

3) When this command operation is completed, on your keyboard, type the following command and press Enter.

4) When this command operation is completed, close the Command Prompt and run Windows Update again to check whether this method works or not. If you still fail to install updates for your Windows system, please try the next method.

Method 4: Downloading updates from Microsoft Update Catalog manually

If all the methods mentioned above still don’t work for you, you can try to download the updates you failed to install from Microsoft Update Catalog and install them manually.

1) On your keyboard, press the Windows Logo Key and type Windows Update, and then press Enter to open Windows Update.

2) Click View update history to check the updates you failed to install. For example, if you fail to install update KB3006137, you can download the update and install it manually.

3) Follow the instructions below to view your system type:

i. On your keyboard, press the Windows Logo key and R at the same time to open the Run dialog. Type cmd and press Enter to open the Command Prompt.

ii. Type the command line systeminfo and press Enter to view your system type.

X64-based PC” indicates that your Windows OS is 64-bit; “X86-based PC” means that your Windows OS is 32-bit.

4) Visit Microsoft Update Catalog.

5) Type the update number that you want to download. In this example, type KB 3006137 and then click Search.

6) In the list of search results, select right update for your operating system and click Download.

7) In the pop-up window, click the link to start downloading the updates.

8) Double click the downloaded file and follow the on-screen instructions to install the update.

Источники:

https://habr. com/ru/post/278439/

https://www. drivereasy. com/knowledge/error-0x8024200d-windows-update-failure/

Понравилась статья? Поделиться с друзьями:
Добавить комментарий

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: