matthewjberger / scoop-nerd-fonts

A scoop bucket for installing nerd fonts
The Unlicense
353 stars 34 forks source link

Source-Han-Serif-SC install with error #118

Closed kele14x closed 3 years ago

kele14x commented 3 years ago

Hi,

I got some error when install Source-Han-Serif-SC (1.001):

sudo scoop install Source-Han-Serif-SC
Installing 'Source-Han-Serif-SC' (1.001) [64bit]
SourceHanSerifSC_EL-M.zip (70.6 MB) [=========================================================================] 100%
Checking hash of SourceHanSerifSC_EL-M.zip ... ok.
SourceHanSerifSC_SB-H.zip (55.7 MB) [=========================================================================] 100%
Checking hash of SourceHanSerifSC_SB-H.zip ... ok.
Extracting SourceHanSerifSC_EL-M.zip ... done.
Extracting SourceHanSerifSC_SB-H.zip ... done.
Running installer script...
Copy-Item:
Line |
   6 |    Copy-Item $_.FullName -destination "$env:windir\Fonts"
     |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The requested operation cannot be performed on a file with a user-mapped section open. : 'C:\Windows\Fonts\SourceHanSerifSC-Bold.otf'
Copy-Item:
Line |
   6 |    Copy-Item $_.FullName -destination "$env:windir\Fonts"
     |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The requested operation cannot be performed on a file with a user-mapped section open. : 'C:\Windows\Fonts\SourceHanSerifSC-ExtraLight.otf'

The font files seems be copied successfully (I see font under Fonts folder), but error is given.

matthewjberger commented 3 years ago

Unfortunately this is a spurious error that happens sometimes on windows, but can't be prevented from the manifest. :( My only solution so far has been to reboot to free locks on any user-mapped sections