MacOS 10.13.3 : Impossible de faire la dernière mise à jours

L’erreur dans /var/log/install.log est la suivante :

2018-05-04 15:36:38+02 XXXX softwareupdate_notify_agent[773]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-76232" =         {
                    ErrorCode = 112;
                    ErrorDomain = PKInstallErrorDomain;
                    InstalledLater = 0;
                    State = Error;
                };
            };
            UpdateNotificationsOnly = 1;
        }
2018-05-04 15:36:38+02 XXXX softwareupdate_notify_agent[773]: appstoreupdateagent notified

Voici plus d’information sur mon système et mon matériel :

Informations matériel :
  Nom du modèle :	MacBook Pro
  Identifiant du modèle :	MacBookPro9,1
  Nom du processeur :	Intel Core i7
  Vitesse du processeur :	2,3 GHz
  Nombre de processeurs :	1
  Nombre total de cœurs :	4
  Cache de niveau 2 (par cœur) :	256 Ko
  Cache de niveau 3 :	6 Mo
  Mémoire :	16 Go
  Version de la ROM de démarrage :	MBP91.00D7.B00
  Version SMC (système) :	2.1f175

Vue d’ensemble du logiciel système :
  Version du système : macOS 10.13.3 (17D102)
  Version du noyau : Darwin 17.4.0
  Volume de démarrage : Macintosh HD
  Mode de démarrage : Normal
  Mémoire virtuelle sécurisée : activée
  Protection de l’intégrité du système : activée

Si je cherche tous les PostLogoutUpdatesInstalled dans /var/log/install.log :

Sep 30 21:21:00 XXXX softwareupdate_notify_agent[461]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "031-25201" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
                "031-63178" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
                "031-70458" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
                "031-75159" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
                "031-78814" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
            };
            UpdateNotificationsOnly = 1;
        }
Sep 30 21:21:00 XXXX softwareupdate_notify_agent[461]: appstoreupdateagent notified
...
Oct 26 09:07:57 XXXX softwareupdate_notify_agent[471]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "031-75995" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
                "031-81873" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
            };
            UpdateNotificationsOnly = 1;
        }
Oct 26 09:07:57 XXXX softwareupdate_notify_agent[471]: appstoreupdateagent notified
...
Dec 14 07:55:54 XXXX softwareupdate_notify_agent[455]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "031-78817" =         {
                    InstalledLater = 0;
                    State = Pending;
                };
                "031-93196" =         {
                    InstalledLater = 0;
                    State = Pending;
                };
                "zzzz031-72618" =         {
                    InstalledLater = 0;
                    State = Pending;
                };
            };
            UpdateNotificationsOnly = 1;
        }
Dec 14 07:55:54 XXXX softwareupdate_notify_agent[455]: appstoreupdateagent notified
...
Dec 14 08:29:38 XXXX softwareupdate_notify_agent[502]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "031-78817" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
                "031-93196" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
                "zzzz031-72618" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
            };
            UpdateNotificationsOnly = 1;
        }
Dec 14 08:29:38 XXXX softwareupdate_notify_agent[502]: appstoreupdateagent notified
...
Jan 18 15:10:54 XXXX softwareupdate_notify_agent[459]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "031-97120" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
            };
            UpdateNotificationsOnly = 1;
        }
Jan 18 15:10:54 XXXX softwareupdate_notify_agent[459]: appstoreupdateagent notified
...
Jan 25 11:08:18 XXXX softwareupdate_notify_agent[416]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "031-94947" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
                "zzzz031-94943" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
            };
            UpdateNotificationsOnly = 1;
        }
Jan 25 11:08:18 XXXX softwareupdate_notify_agent[416]: appstoreupdateagent notified
...
Mar 28 11:27:08 XXXX softwareupdate_notify_agent[3363]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "031-96040" =         {
                    InstalledLater = 0;
                    State = Pending;
                };
                "031-98397" =         {
                    InstalledLater = 0;
                    State = Pending;
                };
            };
            SoftwareUpdateCount = 2;
            SoftwareUpdatesAvailable = 1;
            UpdatesRequireRestart = 1;
        }
Mar 28 11:27:08 XXXX softwareupdate_notify_agent[3363]: appstoreupdateagent notified
...
Mar 28 18:47:15 XXXX softwareupdate_notify_agent[430]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "031-96040" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
            };
            UpdateNotificationsOnly = 1;
        }
Mar 28 18:47:15 XXXX softwareupdate_notify_agent[430]: appstoreupdateagent notified
...
May 15 22:05:37 XXXX softwareupdate_notify_agent[634]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "031-95400" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
                "091-03063" =         {
                    InstalledLater = 0;
                    State = Pending;
                };
                "091-10728" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
                "zzzz091-14261" =         {
                    InstalledLater = 0;
                    State = Pending;
                };
                "zzzz091-14333" =         {
                    InstalledLater = 0;
                    State = Pending;
                };
            };
            UpdateNotificationsOnly = 1;
        }
May 15 22:05:37 XXXX softwareupdate_notify_agent[634]: appstoreupdateagent notified
....
Jul 25 18:40:08 XXXX softwareupdate_notify_agent[1120]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-01401" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
                "091-22828" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
                "zzzz091-22851" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
            };
            SoftwareUpdateCount = 0;
            SoftwareUpdatesAvailable = 0;
        }
Jul 25 18:40:08 M XXXX softwareupdate_notify_agent[1120]: appstoreupdateagent notified
...
Oct 31 21:40:00 XXXX softwareupdate_notify_agent[1769]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-33402" =         {
                    InstalledLater = 0;
                    State = Pending;
                };
                "091-41764" =         {
                    InstalledLater = 0;
                    State = Pending;
                };
                "zzzz091-30749" =         {
                    InstalledLater = 0;
                    State = Pending;
                };
            };
            SoftwareUpdateCount = 3;
            SoftwareUpdatesAvailable = 1;
            UpdatesRequireRestart = 1;
        }
Oct 31 21:40:00 XXXX softwareupdate_notify_agent[1769]: appstoreupdateagent notified
...
Dec  8 10:08:20 XXXX softwareupdate_notify_agent[437]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-25500" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
                "091-39292" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
                "zzzz091-31210" =         {
                    InstalledLater = 0;
                    State = Installed;
                };
            };
            UpdateNotificationsOnly = 1;
        }
Dec  8 10:08:20 XXXX softwareupdate_notify_agent[437]: appstoreupdateagent notified
...
2018-01-11 16:32:13+01 XXXX softwareupdate_notify_agent[777]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-58876" =         {
                    InstalledLater = 0;
                    State = ArmedForAtomicInstall;
                };
            };
            UpdateNotificationsOnly = 1;
        }
2018-01-11 16:32:13+01 XXXX softwareupdate_notify_agent[777]: appstoreupdateagent notified
...
2018-01-24 19:41:56+01 XXXX softwareupdate_notify_agent[527]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-62783" =         {
                    InstalledLater = 0;
                    State = ArmedForAtomicInstall;
                };
                "zzzz091-44971" =         {
                    InstalledLater = 0;
                    State = Pending;
                };
            };
            UpdateNotificationsOnly = 1;
        }
2018-01-24 19:41:56+01 XXXX softwareupdate_notify_agent[527]: appstoreupdateagent notified
...
2018-02-23 09:47:02+01 XXXX softwareupdate_notify_agent[672]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-69251" =         {
                    InstalledLater = 0;
                    State = ArmedForAtomicInstall;
                };
            };
            UpdateNotificationsOnly = 1;
        }
2018-02-23 09:47:02+01 XXXX softwareupdate_notify_agent[672]: appstoreupdateagent notified
...
018-03-30 10:34:27+02 XXXX softwareupdate_notify_agent[726]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-75535" =         {
                    ErrorCode = 112;
                    ErrorDomain = PKInstallErrorDomain;
                    InstalledLater = 0;
                    State = Error;
                };
                "091-76232" =         {
                    ErrorCode = 112;
                    ErrorDomain = PKInstallErrorDomain;
                    InstalledLater = 0;
                    State = Error;
                };
                "zzzz091-76328" =         {
                    ErrorCode = 112;
                    ErrorDomain = PKInstallErrorDomain;
                    InstalledLater = 0;
                    State = Error;
                };
            };
            UpdateNotificationsOnly = 1;
        }
...
2018-03-31 10:07:16+02 XXXX softwareupdate_notify_agent[803]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-75535" =         {
                    ErrorCode = 112;
                    ErrorDomain = PKInstallErrorDomain;
                    InstalledLater = 0;
                    State = Error;
                };
                "091-76232" =         {
                    ErrorCode = 112;
                    ErrorDomain = PKInstallErrorDomain;
                    InstalledLater = 0;
                    State = Error;
                };
            };
            UpdateNotificationsOnly = 1;
        }
2018-03-31 10:07:16+02 XXXX softwareupdate_notify_agent[803]: appstoreupdateagent notified
...
2018-04-03 09:46:29+02 XXXX softwareupdate_notify_agent[758]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-76232" =         {
                    ErrorCode = 112;
                    ErrorDomain = PKInstallErrorDomain;
                    InstalledLater = 0;
                    State = Error;
                };
            };
            UpdateNotificationsOnly = 1;
        }
2018-04-03 09:46:29+02 XXXX softwareupdate_notify_agent[758]: appstoreupdateagent notified
...
2018-04-06 15:39:58+02 XXXX softwareupdate_notify_agent[760]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-76232" =         {
                    ErrorCode = 112;
                    ErrorDomain = PKInstallErrorDomain;
                    InstalledLater = 0;
                    State = Error;
                };
            };
            UpdateNotificationsOnly = 1;
        }
2018-04-06 15:39:58+02 XXXX softwareupdate_notify_agent[760]: appstoreupdateagent notified
...
2018-04-06 20:22:10+02 XXXX softwareupdate_notify_agent[559]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-76232" =         {
                    ErrorCode = 112;
                    ErrorDomain = PKInstallErrorDomain;
                    InstalledLater = 0;
                    State = Error;
                };
            };
            UpdateNotificationsOnly = 1;
        }
2018-04-06 20:22:10+02 XXXX softwareupdate_notify_agent[559]: appstoreupdateagent notified
...
2018-04-10 11:23:43+02 XXXX softwareupdate_notify_agent[749]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-76232" =         {
                    ErrorCode = 112;
                    ErrorDomain = PKInstallErrorDomain;
                    InstalledLater = 0;
                    State = Error;
                };
            };
            UpdateNotificationsOnly = 1;
        }
2018-04-10 11:23:43+02 XXXX softwareupdate_notify_agent[749]: appstoreupdateagent notified
...
2018-04-10 20:52:59+02 XXXX softwareupdate_notify_agent[533]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-76232" =         {
                    ErrorCode = 112;
                    ErrorDomain = PKInstallErrorDomain;
                    InstalledLater = 0;
                    State = Error;
                };
            };
            UpdateNotificationsOnly = 1;
        }
2018-04-10 20:52:59+02 XXXX softwareupdate_notify_agent[533]: appstoreupdateagent notified
...
2018-04-11 11:33:35+02 XXXX softwareupdate_notify_agent[489]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-76232" =         {
                    ErrorCode = 112;
                    ErrorDomain = PKInstallErrorDomain;
                    InstalledLater = 0;
                    State = Error;
                };
            };
            UpdateNotificationsOnly = 1;
        }
2018-04-11 11:33:35+02 XXXX softwareupdate_notify_agent[489]: appstoreupdateagent notified
...
2018-04-12 10:28:26+02 XXXX softwareupdate_notify_agent[740]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-76232" =         {
                    ErrorCode = 112;
                    ErrorDomain = PKInstallErrorDomain;
                    InstalledLater = 0;
                    State = Error;
                };
            };
            UpdateNotificationsOnly = 1;
        }
2018-04-12 10:28:26+02 XXXX softwareupdate_notify_agent[740]: appstoreupdateagent notified
...
2018-04-14 14:01:31+02 XXXX softwareupdate_notify_agent[770]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-76232" =         {
                    ErrorCode = 112;
                    ErrorDomain = PKInstallErrorDomain;
                    InstalledLater = 0;
                    State = Error;
                };
            };
            UpdateNotificationsOnly = 1;
        }
2018-04-14 14:01:31+02 XXXX softwareupdate_notify_agent[770]: appstoreupdateagent notified
...
2018-05-04 15:36:38+02 XXXX softwareupdate_notify_agent[773]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-76232" =         {
                    ErrorCode = 112;
                    ErrorDomain = PKInstallErrorDomain;
                    InstalledLater = 0;
                    State = Error;
                };
            };
            UpdateNotificationsOnly = 1;
        }
2018-05-04 15:36:38+02 XXXX softwareupdate_notify_agent[773]: appstoreupdateagent notified
...

Etape n°1 : Google est mon ami (Je cherche sur Google la même erreur) :

J’ai vu qu’une personne avait le même problème que moi : https://gist.github.com/johngrimes/3822c94c60c6c5babc6d42c2dff9fd89
En français cela donne :

La série d’actions qui ont finalement résolu le problème étaient:

Démarrez en mode sans échec (maintenez la touche Maj enfoncée lors de la mise sous tension ou du redémarrage).
Accédez à l’App Store et installez la mise à jour en attente.
Le redémarrage a échoué et a montré le journal d’installation. Cette fois, au lieu de cliquer sur « Redémarrer », j’ai sélectionné « Startup Disk … » dans le menu. Cette fois, quand j’ai choisi le disque dur principal, il a démarré avec succès, et ça va bien depuis.
Pas très scientifique, mais j’espère que cela aidera quelqu’un avec le même problème.

Plus loin on peut lire :

Oui, je viens aussi de récupérer de cette erreur googling pour

/Volumes/Macintosh HD/Library/Updates/AtomicUpdates/091-76232/091-76232.English.dist) ne s’est pas chargé avec l’erreur: Le fichier n’existe pas.

Tout ce que j’ai fait était l’étape 3. « disque de démarrage .. » du menu et choisissez le disque dur principal.

Si je regarde dans le répertoire :

$ ls -l /Volumes/Macintosh\ HD/Library/Updates/*
-rw-r--r--@ 1 root  wheel  966  4 mai 15:40 /Volumes/Macintosh HD/Library/Updates/PPDVersions.plist
-rw-r--r--@ 1 root  wheel  182  4 mai 15:40 /Volumes/Macintosh HD/Library/Updates/ProductMetadata.plist
-rw-r--r--  1 root  wheel  260  4 mai 15:30 /Volumes/Macintosh HD/Library/Updates/index.plist

Je pense que je n’ai pas le même problème … il y a aussi ce lien : https://discussions.apple.com/thread/8339321 il a la même erreur que mois mais que la version 10.13.4 . Donc ce n’est pas le même problème.

Etape n°2 : J’analyse plus en détail les logs :

A noter l’erreur :

2018-05-04 15:29:58+02 XXXX system_installd[558]: replaceRecovery: HFS/CS EnsureRecoveryPartition: Vérification et réutilisation du booter
2018-05-04 15:29:58+02 XXXX system_installd[558]: replaceRecovery: HFS/CS EnsureRecoveryPartition: Réparation du système de fichiers.
2018-05-04 15:29:58+02 XXXX system_installd[558]: replaceRecovery: HFS/CS EnsureRecoveryPartition: Formatage du booter
2018-05-04 15:29:58+02 XXXX system_installd[558]: replaceRecovery: HFS/CS EnsureRecoveryPartition: newfs_hfs: cannot create filesystem on /dev/rdisk0s3: Operation not permitted
2018-05-04 15:29:58+02 XXXX system_installd[558]: replaceRecovery: HFS/CS EnsureRecoveryPartition: Operation 95.0% complete
2018-05-04 15:29:58+02 XXXX system_installd[558]: replaceRecovery: HFS/CS EnsureRecoveryPartition: Détachement de l’image disque du système de base
2018-05-04 15:29:58+02 XXXX system_installd[558]: replaceRecovery: HFS/CS EnsureRecoveryPartition: Operation fully complete
2018-05-04 15:29:58+02 XXXX system_installd[558]: replaceRecovery: HFS/CS EnsureRecoveryPartition: Operation finished

J’ai lancé la commande sur un Terminal :

defaults write com.apple.DiskUtility DUDebugMenuEnabled 1

Puis j’ai exécuté S.O.S sur le disque « Macintosh HD » :

Etape n°3 : Je tente une première action :

$ diskutil list

/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.1 TB     disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            1.0 TB     disk0s2
   3:                 Apple_Boot                         650.0 MB   disk0s3

/dev/disk1 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        +644.2 GB   disk1
   1:                        EFI EFI                     209.7 MB   disk1s1
   2:                  Apple_HFS Copies de sauvegarde... 643.9 GB   disk1s2

$ sudo newfs_hfs -J -v "Recovery HD" /dev/disk0s3 
newfs_hfs: cannot create filesystem on /dev/rdisk0s3: Operation not permitted

$ csrutil status
System Integrity Protection status: enabled.

$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.1 TB     disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            1.0 TB     disk0s2
   3:                 Apple_Boot                         650.0 MB   disk0s3

/dev/disk1 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        +644.2 GB   disk1
   1:                        EFI EFI                     209.7 MB   disk1s1
   2:                  Apple_HFS Copies de sauvegarde... 643.9 GB   disk1s2

$ sudo newfs_hfs -J -v "Recovery HD" /dev/rdisk0s3 
Password:
newfs_hfs: cannot create filesystem on /dev/rdisk0s3: Operation not permitted

$ fsck_hfs -l /dev/disk0s3
** /dev/rdisk0s3 (NO WRITE)
Can't open /dev/rdisk0s3: Permission denied

$ fsck_hfs -r -d /dev/disk0s3
Unable to open block device /dev/disk0s3: Permission deniedjournal_replay(/dev/disk0s3) returned 13
** /dev/rdisk0s3 (NO WRITE)
Can't open /dev/rdisk0s3: Permission denied

Etape n°4 : Je tente une DEUXIEME action :

Je passe en mode sans échec (en appuyant sur shift pendant le démarrage) , ce mode est appelé sécurisé … j’ai du mal à comprendre pourquoi. Pour plus de documentation sur ce mode : https://support.apple.com/fr-fr/HT201262 : Utiliser le mode sans échec pour isoler des problèmes avec votre Mac .

Je tente donc une nouvelle installation :

Dans les logs je peux voir que cela échoue encore une fois :

...
2018-05-05 15:36:38+02 XXXX system_installd[459]: PackageKit: ----- Begin install -----
2018-05-05 15:36:38+02 XXXX system_installd[459]: PackageKit: request=PKInstallRequest <2 packages, destination=/>
2018-05-05 15:36:38+02 XXXX system_installd[459]: PackageKit: packages=(
            "PKLeopardPackage <id=com.apple.pkg.macOSUpd10.13.4.RecoveryHDUpdate.17E199, version=1.0.0.0, url=file:///Library/Updates/091-76232/macOSUpd10.13.4.RecoveryHDUpdate.pkg>",
            "PKLeopardPackage <id=com.apple.pkg.macOSBrain, version=10.13.4.1.1.1522206870, url=file:///Library/Updates/091-76232/macOSBrain.pkg>"
        )
2018-05-05 15:36:38+02 XXXX system_installd[459]: PackageKit: Failed to clear quarantine on Apple-signed package PKLeopardPackage <id=com.apple.pkg.macOSUpd10.13.4.RecoveryHDUpdate.17E199, version=1.0.0.0, url=file:///Library/Updates/091-76232/macOSUpd10.13.4.RecoveryHDUpdate.pkg>: Item not quarantined (-1)
2018-05-05 15:36:38+02 XXXX system_installd[459]: PackageKit: Failed to clear quarantine on Apple-signed package PKLeopardPackage <id=com.apple.pkg.macOSBrain, version=10.13.4.1.1.1522206870, url=file:///Library/Updates/091-76232/macOSBrain.pkg>: Item not quarantined (-1)
2018-05-05 15:36:38+02 XXXX system_installd[459]: PackageKit: Extracting file:///Library/Updates/091-76232/macOSBrain.pkg (destination=/.PKInstallSandboxManager-SystemSoftware/6D475B8B-7CD6-4A68-B3EF-0D263AF6E8EC.activeSandbox/Root, uid=0)
...
2018-05-05 15:36:46+02 XXXX diskmanagementd[454]: diskmanagement: [DMToolRecoveryPartition ensureBooter:storage:phyUDS:logUDS:phyREF:logREF:copierForRecoveryFiles:hostOSXForBootRootFiles:recBSD:percentBegin:percentEnd:]: READY TO DO CASE: case=Reuse spaceDeltaB=0 booterDeltaB=0 (adviceIfUnable=-69886)
2018-05-05 15:36:46+02 XXXX diskmanagementd[454]: diskmanagement: [DMToolRecoveryPartition populateBooter:verifyType:verifyMinSize:clearMode:copierForRecoveryFiles:hostOSXForBootRootFiles:statusReportingDisk:percentBegin:percentEnd:]: inPartitionUDS=0x70000d1396a0=disk0s3 inVfyType/MinSize=Apple_Boot/650002432 inClearMode=RepairDeletefiles inRecCopier=0x7ff157a07840 inBRHostMP=/ inStatusDisk=0x7ff157b07328=disk0s2=Macintosh HD inPct=23..87
2018-05-05 15:36:46+02 XXXX diskmanagementd[708]: diskmanagement: rawLaunch: execve(2) pid=708 /System/Library/Filesystems/hfs.fs/Contents/Resources/newfs_hfs -J -U 0 -G 0 -v Recovery HD /dev/rdisk0s3 .
2018-05-05 15:36:46+02 XXXX diskmanagementd[454]: diskmanagement: rawLaunch_block_invoke: waitpid(2) pid=708 ret/errno=708/10 status=0x00000100 exit=1
2018-05-05 15:36:46+02 XXXX diskmanagementd[454]: diskmanagement: [DMToolRecoveryPartition populateBooter:verifyType:verifyMinSize:clearMode:copierForRecoveryFiles:hostOSXForBootRootFiles:statusReportingDisk:percentBegin:percentEnd:]: retErr=-69832
2018-05-05 15:36:46+02 XXXX diskmanagementd[454]: diskmanagement: [DMToolRecoveryPartition ensureBooter:storage:phyUDS:logUDS:phyREF:logREF:copierForRecoveryFiles:hostOSXForBootRootFiles:recBSD:percentBegin:percentEnd:]: retErr=-69832 outDisk=(null)
2018-05-05 15:36:46+02 XXXX diskmanagementd[454]: diskmanagement: [DMToolRecoveryPartition ensureRecoveryPartitionForVolume:]: at exit; err=-69832
2018-05-05 15:36:46+02 XXXX diskmanagementd[454]: diskmanagement: [DMToolRecoveryPartition ensureRecoveryPartitionForVolume:]: output recoveryDiskBSD=(null) physicalDonorBSD=disk0s2
2018-05-05 15:36:46+02 XXXX diskmanagementd[454]: diskmanagement: [DMToolRecoveryPartition ensureRecoveryPartitionForVolume:]
2018-05-05 15:36:46+02 XXXX system_installd[459]: replaceRecovery: HFS/CS EnsureRecoveryPartition: Error: File system formatter failed (-69832)
2018-05-05 15:36:46+02 XXXX system_installd[459]: replaceRecovery: ./Tools/dm - dm - Version 5
...
2018-05-05 15:36:46+02 XXXX system_installd[459]: replaceRecovery: HFS/CS EnsureRecoveryPartition: Vérification et réutilisation du booter
2018-05-05 15:36:46+02 XXXX system_installd[459]: replaceRecovery: HFS/CS EnsureRecoveryPartition: Réparation du système de fichiers.
2018-05-05 15:36:46+02 XXXX system_installd[459]: replaceRecovery: HFS/CS EnsureRecoveryPartition: Formatage du booter
2018-05-05 15:36:46+02 XXXX system_installd[459]: replaceRecovery: HFS/CS EnsureRecoveryPartition: newfs_hfs: cannot create filesystem on /dev/rdisk0s3: Operation not permitted
2018-05-05 15:36:46+02 XXXX system_installd[459]: replaceRecovery: HFS/CS EnsureRecoveryPartition: Operation 95.0% complete
...
2018-05-05 15:36:46+02 XXXX system_installd[459]: PackageKit: releasing backupd
2018-05-05 15:36:46+02 XXXX system_installd[459]: PackageKit: allow user idle system sleep
2018-05-05 15:36:46+02 XXXX system_installd[459]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "Une erreur s’est produite pendant l’exécution des scripts du paquet « macOSUpd10.13.4.RecoveryHDUpdate.pkg »." UserInfo={NSFilePath=replaceRecovery, NSURL=file:///Library/Updates/091-76232/macOSUpd10.13.4.RecoveryHDUpdate.pkg, PKInstallPackageIdentifier=com.apple.pkg.macOSUpd10.13.4.RecoveryHDUpdate.17E199, NSLocalizedDescription=Une erreur s’est produite pendant l’exécution des scripts du paquet « macOSUpd10.13.4.RecoveryHDUpdate.pkg ».} {
            NSFilePath = replaceRecovery;
            NSLocalizedDescription = "Une erreur s\U2019est produite pendant l\U2019ex\U00e9cution des scripts du paquet \U00ab\U00a0macOSUpd10.13.4.RecoveryHDUpdate.pkg\U00a0\U00bb.";
            NSURL = "file:///Library/Updates/091-76232/macOSUpd10.13.4.RecoveryHDUpdate.pkg";
            PKInstallPackageIdentifier = "com.apple.pkg.macOSUpd10.13.4.RecoveryHDUpdate.17E199";
        }
...
2018-05-05 15:41:20+02 XXXX softwareupdated[694]: xpc_add_bundle /System/Library/PrivateFrameworks/SoftwareUpdate.framework/XPCServices/ManualProductStasherService.xpc
2018-05-05 15:41:20+02 XXXX softwareupdate_notify_agent[769]: Notifying with params: {
            PostLogoutUpdatesInstalled =     {
                "091-76232" =         {
                    ErrorCode = 112;
                    ErrorDomain = PKInstallErrorDomain;
                    InstalledLater = 0;
                    State = Error;
                };
            };
            UpdateNotificationsOnly = 1;
        }
2018-05-05 15:41:20+02 XXXX softwareupdate_notify_agent[769]: appstoreupdateagent notified
...

Il va falloir que je fasse des posts sur des blogs …

Etape n°5 : DEMANDE D’AIDE SUR Forums.macg.co :

https://forums.macg.co/threads/erreur-cannot-create-filesystem-on-dev-rdisk0s3-operation-not-permitted.1304619/ .

Mon login utilisateur : CYBERNEURONES .
Demande de macomania : (Pour information SIPSystem Integrity Protection à ne pas confondre avec SIP le protocole de communication … )

$ diskutil list

/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.1 TB     disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            1.0 TB     disk0s2
   3:                 Apple_Boot                         650.0 MB   disk0s3

/dev/disk1 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        +644.2 GB   disk1
   1:                        EFI EFI                     209.7 MB   disk1s1
   2:                  Apple_HFS Copies de sauvegarde... 643.9 GB   disk1s2
$ csrutil status
System Integrity Protection status: enabled.
$ csrutil disable
csrutil: failed to modify system integrity configuration. This tool needs to be executed from the Recovery OS.

Solution :

« Il faut alors que tu re-démarres par internet via les 3 touches ⌘⌥R (cmd alt R) –> qui va télécharger en RAM un OS de secours 10.13. La commande csrutil sera alors valide. »

$ sudo newfs_hfs -J -v "Recovery HD" /dev/disk0s3

Initialized /dev/rdisk0s3 as a 620 MB case-insensitive HFS Plus volume with a 8192k journal

Afin J’AI PU FAIRE la MISE A JOURS :

Un grand merci au forum et à macomania !

par contre j’ai toujours le mode sans SIP :

$ csrutil status
System Integrity Protection status: disabled.

$ csrutil enable
csrutil: failed to modify system integrity configuration. This tool needs to be executed from the Recovery OS.

$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.1 TB     disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            1.0 TB     disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

Pour finir :

Souviens-toi que le SIP verrouille beaucoup de commandes à destination du disque de démarrage. Par exemple la commande gpt rien que de lecture de la table GPT. Ou gdisk (de Roderick Smith) rien qu’en lecture de la GPT aussi. Donc quand tu obtiens comme retour d’une commande sudo :

operation non permitted

tu peux te dire que c’est l’effet du SIP (si tu l’as réactivé)

Etape n°6 : DEMANDE D’AIDE SUR Forums.macrumors.com :
https://forums.macrumors.com/threads/newfs_hfs-cannot-create-filesystem-on-dev-rdisk0s3-operation-not-permitted.2117778/ .

Moins réactif que le forums français …

A suivre.

MacOS : 10.13.3 : Problème sur la mise à jours

Voici la mise à jours qui ne semble pas bien se faire : 10.13.4 :

Si je regarde dans /var/log/install.log, l’historique :

$ grep "Previous System Version" /var/log/install.log
2017-12-31 14:27:11+01 ... softwareupdated[369]: Previous System Version : (null), Current System Version : 10.13.2 (17C88)
2017-12-31 17:33:02+01 ... softwareupdated[237]: Previous System Version : 10.13.2 (17C88), Current System Version : 10.13.2 (17C88)
...
2018-01-11 16:10:00+01 .... softwareupdated[283]: Previous System Version : 10.13.2 (17C88), Current System Version : 10.13.2 (17C205)
2018-01-11 20:18:10+01 .... softwareupdated[453]: Previous System Version : 10.13.2 (17C205), Current System Version : 10.13.2 (17C205)
...
2018-01-24 08:02:53+01 .... softwareupdated[254]: Previous System Version : 10.13.2 (17C205), Current System Version : 10.13.2 (17C205)
2018-01-24 19:16:34+01 .... softwareupdated[242]: Previous System Version : 10.13.2 (17C205), Current System Version : 10.13.3 (17D47)
...
2018-02-23 09:24:26+01 .... softwareupdated[269]: Previous System Version : 10.13.3 (17D47), Current System Version : 10.13.3 (17D102)
2018-02-23 18:19:42+01 .... softwareupdated[507]: Previous System Version : 10.13.3 (17D102), Current System Version : 10.13.3 (17D102)
...
2018-04-14 14:01:10+02  .... softwareupdated[691]: Previous System Version : 10.13.3 (17D102), Current System Version : 10.13.3 (17D102)

La dernière mise à jour qui a fonctionnait était le 2018-02-23 09:24:26+01.

Pour avoir l’heure de la demande de reboot je regarde aussi dans /var/log/install.log

$ grep "Rebooting system after post-logout install" /var/log/install.log 
2018-01-11 15:27:03+01 ... Software Update[3509]: Rebooting system after post-logout install
2018-01-24 18:28:15+01 ... Software Update[3702]: Rebooting system after post-logout install
2018-02-23 08:40:42+01 ... Software Update[2690]: Rebooting system after post-logout install
2018-03-30 10:27:44+02 ... Software Update[1394]: Rebooting system after post-logout install
2018-03-31 10:00:21+02 ... Software Update[4265]: Rebooting system after post-logout install
2018-04-03 09:39:42+02 ... Software Update[2276]: Rebooting system after post-logout install
2018-04-06 15:33:10+02 ... Software Update[4120]: Rebooting system after post-logout install
2018-04-10 11:16:54+02 ... Software Update[1336]: Rebooting system after post-logout install
2018-04-12 10:24:54+02 ... Software Update[1160]: Rebooting system after post-logout install
2018-04-14 13:57:54+02 ... Software Update[3778]: Rebooting system after post-logout install

Je pense que c’est la troisième fois que j’essaye de faire cette mise à jours.

Au niveau des erreurs, si je regarde les erreurs après 2018-04-14 13:57:54+02  :

Erreur n°1 (en remontant):

  • 2018-04-14 14:01:03+02 … mbfloagent[345]: Photos: findURLToUpgrade /Users/…./Pictures/Bibliothèque Photos.photoslibrary, error: (null), upgradeType: 2

Erreur n°2 :

  • 2018-04-14 13:58:30+02 … diskmanagementd[260]: diskmanagement: [DMToolMountMisc _DAOperation_performsync_ :disk:options:mountpoint:arguments:asEUID:asEGID:timeoutSec:dissenter:dissenterPID:]: [un]mount failed: err=-69842 un0mt1=1 timeout=0 dissenter=1 dissenterpid=0 dissenterstatus=-119930868=0xf8da000c

Erreur n°3 :

  • 2018-04-14 13:57:53+02 … softwareupdated[240]: SoftwareUpdate: error on install of 091-76232: Error Domain=PKInstallErrorDomain Code=112 « Une erreur s‚Äôest produite pendant l‚Äôex√©cution des scripts du paquet ¬´¬†macOSUpd10.13.4.RecoveryHDUpdate.pkg¬†¬ª. » UserInfo={SUErrorUpdateTitle=Mise √† jour de macOS¬†High¬†Sierra¬†10.13.4, NSURL=file:///Library/Updates/091-76232/macOSUpd10.13.4.RecoveryHDUpdate.pkg, PKInstallPackageIdentifier=com.apple.pkg.macOSUpd10.13.4.RecoveryHDUpdate.17E199, NSLocalizedDescription=Une erreur s‚Äôest produite pendant l‚Äôex√©cution des scripts du paquet ¬´¬†macOSUpd10.13.4.RecoveryHDUpdate.pkg¬†¬ª., SUErrorRelatedCode=SUErrorCodeInstallFailure, NSFilePath=replaceRecovery, SUErrorUpdateProductKey=091-76232}. Reporting statistics.

Erreur n°4 :

  • 2018-04-14 13:57:53+02 …  softwareupdated[240]: Changing status (_installProducts) for key 091-76232 from « installing » to « install error »

Erreur n°5 :

  • 2018-04-14 13:57:53+02 …  system_installd[3745]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 « Une erreur s’est produite pendant l’exécution des scripts du paquet « macOSUpd10.13.4.RecoveryHDUpdate.pkg ». » UserInfo={NSFilePath=replaceRecovery, NSURL=file:///Library/Updates/091-76232/macOSUpd10.13.4.RecoveryHDUpdate.pkg, PKInstallPackageIdentifier=com.apple.pkg.macOSUpd10.13.4.RecoveryHDUpdate.17E199, NSLocalizedDescription=Une erreur s’est produite pendant l’exécution des scripts du paquet « macOSUpd10.13.4.RecoveryHDUpdate.pkg ».} {    NSLocalizedDescription = « Une erreur s\U2019est produite pendant l\U2019ex\U00e9cution des scripts du paquet \U00ab\U00a0macOSUpd10.13.4.RecoveryHDUpdate.pkg\U00a0\U00bb. »;

Erreur n°6 : 

  • 2018-04-14 13:57:52+02 …  diskmanagementd[1392]: diskmanagement: [DMToolRecoveryPartition ensureRecoveryPartitionForVolume:]: at exit; err=-69832

Erreur n°7.1[un]mount failed: err=-69842

  • 2018-04-13 14:27:39+02 … softwareupdated[232]: SoftwareUpdate: Added background transaction [0x1] for macOS High Sierra 10.13.4 Update-
  • 2018-04-13 14:27:40+02 … diskmanagementd[2899]: diskmanagement: [DMToolMountMisc _DAOperation_performsync_:disk:options:mountpoint:arguments:asEUID:asEGID:timeoutSec:dissenter:dissenterPID:]: [un]mount failed: err=-69842 un0mt1=1 timeout=0 dissenter=1 dissenterpid=0 dissenterstatus=-119930868=0xf8da000c

Erreur n°7.2[un]mount failed: err=-69842

  • 2018-04-14 13:57:46+02 … softwareupdated[240]: SoftwareUpdate: Added foreground transaction [0x1] for macOS High Sierra 10.13.4 Update-
  • 2018-04-14 13:57:47+02 …  diskmanagementd[1392]: diskmanagement: [DMToolMountMisc _DAOperation_performsync_:disk:options:mountpoint:arguments:asEUID:asEGID:timeoutSec:dissenter:dissenterPID:]: [un]mount failed: err=-69842 un0mt1=1 timeout=0 dissenter=1 dissenterpid=0 dissenterstatus=-119930868=0xf8da000c

Je pense qu’il y a d’autres erreurs mais elles semblent être mineure.

On a l’impression que c’est un problème de disque dur, mais il y a de la place :

Par contre je retrouve de même code d’erreur avec diskutil :

$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.1 TB     disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            1.0 TB     disk0s2
   3:                 Apple_Boot                         650.0 MB   disk0s3

$ diskutil cs list
No CoreStorage logical volume groups found

$ diskutil ap list
No APFS Containers found

$ diskutil verifyDisk disk0
Started partition map verification on disk0
Checking prerequisites
Checking the partition list
Checking the partition map size
Checking for an EFI system partition
Checking the EFI system partition's size
Checking the EFI system partition's file system
Checking the EFI system partition's folder content
Checking all HFS data partition loader spaces
Checking booter partitions
Checking booter partition disk0s3
Verifying file system
Problems were found with the partition map which might prevent booting
Error: -69846: Unrecognized file system

$ diskutil verifyVolume disk0s1
Started file system verification on disk0s1 EFI
Verifying file system
Volume is already unmounted
Performing fsck_msdos -n /dev/rdisk0s1
** /dev/rdisk0s1
** Phase 1 - Preparing FAT
** Phase 2 - Checking Directories
** Phase 3 - Checking for Orphan Clusters
7 files, 186265 KiB free (372530 clusters)
File system check exit code is 0
Restoring the original state found as unmounted
Finished file system verification on disk0s1 EFI

$ diskutil verifyVolume disk0s2
Started file system verification on disk0s2 Macintosh HD
Verifying file system
Volume could not be unmounted
Using live mode
Performing fsck_hfs -fn -l -x /dev/rdisk0s2
Performing live verification
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume Macintosh HD appears to be OK
File system check exit code is 0
Restoring the original state found as mounted
Finished file system verification on disk0s2 Macintosh HD

$ diskutil verifyVolume disk0s3
Error starting file system verification for disk0s3: Unrecognized file system (-69846)

On dirait que c’est la 3ème partition (disk0s3 : Apple_Boot) qui pose problème … pourtant j’ai bien le pc qui boote correctement.

Il est aussi possible de faire toutes les actions en mode fenêtre, mais il n’y a pas d’erreur :

aucune erreur avec les fenêtres, car on est uniquement sur le disque disk0s2.

J’ai trouvé une erreur similaire :

mais pas vraiment de solution.

Misère.

Suppression de Kies.app : 100% de reset et 100% de CPU . Misère.

J’ai en boucle ce logs, dans /var/log/system.log sur mon mac ( MacOS : 10.13.3 )  :

Apr 14 14:11:26  com.apple.xpc.launchd[1] (com.yourcompany.KiesViaWiFiAgent.3256[837]): Service exited due to signal: Terminated: 15 sent by KiesAgent[745]
Apr 14 14:11:27  KiesAgent[745]: enter launchWiFiAgent!!
Apr 14 14:11:27  KiesAgent[745]: /Applications/Kies.app/Contents/MacOS/KiesViaWiFiAgent.app
Apr 14 14:11:27  KiesAgent[745]: starting KiesViaWiFiAgent
Apr 14 14:11:27  KiesAgent[745]: start KiesAgent!
Apr 14 14:11:27  KiesAgent[745]: Exit wifiAgent!
Apr 14 14:11:27  KiesViaWiFiAgent[838]: objc[838]: Class KMRijndael is implemented in both /Applications/Kies.app/Contents/MacOS/KiesViaWiFiAgent.app/Contents/Frameworks/DeviceCenter.framework/Versions/A/KMBase.framework/Versions/A/KMBase (0x6aba24) and /Applications/Kies.app/Contents/MacOS/KiesViaWiFiAgent.app/Contents/MacOS/KiesViaWiFiAgent (0x31520). One of the two will be used. Which one is undefined.
Apr 14 14:11:27  KiesViaWiFiAgent[838]: objc[838]: Class AESCryption is implemented in both /Applications/Kies.app/Contents/MacOS/KiesViaWiFiAgent.app/Contents/Frameworks/DeviceCenter.framework/Versions/A/KMBase.framework/Versions/A/KMBase (0x6aad94) and /Applications/Kies.app/Contents/MacOS/KiesViaWiFiAgent.app/Contents/MacOS/KiesViaWiFiAgent (0x31550). One of the two will be used. Which one is undefined.
Apr 14 14:11:27  KiesViaWiFiAgent[838]: Folder is not existed - path is (null)/WifiAgent.
Apr 14 14:11:27  KiesViaWiFiAgent[838]: CreateFolder is Failed - path is (null)/WifiAgent. error = Error Domain=NSCocoaErrorDomain Code=513 "Vous n’êtes pas autorisé à enregistrer le fichier « WifiAgent » dans le dossier « (null) »." UserInfo={NSFilePath=(null)/WifiAgent, NSUnderlyingError=0xa081b0 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
Apr 14 14:11:43 com.apple.xpc.launchd[1] (com.yourcompany.KiesViaWiFiAgent.3256[838]): Service exited due to signal: Terminated: 15 sent by KiesAgent[745]

Si je fais des statistiques plus précises :

$ grep "KiesAgent" /var/log/system.log | wc -l
     460
$ wc -l /var/log/system.log
    3931 /var/log/system.log

J’ai 460/3931 lignes qui sont sur ce problème en boucle … donc bye-bye Kies.app (Version 3.1.0.15094_7 )  .

Suite à la suppression je n’ai plus vu de problème …

$ grep "KiesAgent" /var/log/system.log | grep "enter launchWiFiAgent" | awk '{print $1 " " $2 " " $3}' | tail -20
Apr 14 14:20:41
Apr 14 14:20:57
Apr 14 14:21:13
Apr 14 14:21:30
Apr 14 14:21:46
Apr 14 14:22:02
Apr 14 14:22:19
Apr 14 14:22:35
Apr 14 14:22:51
Apr 14 14:23:08
Apr 14 14:23:24
Apr 14 14:23:40
Apr 14 14:23:56
Apr 14 14:24:13
Apr 14 14:24:29
Apr 14 14:24:45
Apr 14 14:25:02
Apr 14 14:25:18
Apr 14 14:25:34
Apr 14 14:25:51

Fin de Twitter sous Mac … et migration vers Tweebot (pour 5,49 Euros)

En passant