ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
21.36k stars 1.41k forks source link

"Error moving directory" error occurred when install Octave #2262

Closed ghost closed 6 years ago

ghost commented 6 years ago

I am trying to install Octave via scoop install octave, but I keep getting the following error:

Installing 'octave' (4.4.0) [64bit]
octave-4.4.0-w64.zip (406.9 MB) [=============================================================================] 100%
Checking hash of octave-4.4.0-w64.zip... ok.
Extracting... Error moving directory:
 -------------------------------------------------------------------------------    ROBOCOPY     ::     Robust File Cop
y for Windows                               ---------------------------------------------------------------------------
----    Started : 2018? 5? 17? ??? ?? 4:33:39    Source : C:\Users\Rudin\scoop\apps\octave\4.4.0\_tmp\octave-4.4.0\
  Dest : C:\Users\Rudin\scoop\apps\octave\4.4.0\      Files : *.*              Options : *.* /S /E /DCOPY:DA /COPY:DAT /MOVE
 /R:1000000 /W:30   ------------------------------------------------------------------------------  2018/05/17 16:33:39
 ERROR 2 (0x00000002) Accessing Source Directory C:\Users\Rudin\scoop\apps\octave\4.4.0\_tmp\octave-4.4.0\ The system c
annot find the file specified.
At C:\Users\Rudin\scoop\apps\scoop\current\lib\core.ps1:249 char:9
+         throw "Error moving directory: `n$out"
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Error moving di...ile specified. :String) [], RuntimeException
    + FullyQualifiedErrorId : Error moving directory:
     -------------------------------------------------------------------------------    ROBOCOPY     ::     Robust Fil
   e Copy for Windows                               -----------------------------------------------------------------
  --------------    Started : 2018? 5? 17? ??? ?? 4:33:39    Source : C:\Users\Rudin\scoop\apps\octave\4.4.0\_tmp\oc
 tave-4.4.0\      Dest : C:\Users\Rudin\scoop\apps\octave\4.4.0\      Files : *.*              Options : *.* /S /E /DCOP
Y:DA /COPY:DAT /MOVE /R:1000000 /W:30   --------------------------------------------------------------------------    -
---  2018/05/17 16:33:39 ERROR 2 (0x00000002) Accessing Source Directory C:\Users\Rudin\scoop\apps\octave\4.4.0\_    tm
p\octave-4.4.0\ The system cannot find the file specified.

I think the error occurred because scoop cannot find a directory octave\4.4.0\_tmp\octave-4.4.0, but a similar directory octave\4.4.0\_tmp\octave-4.4.0-w64 exists after trying to install.

r15ch13 commented 6 years ago

Fixed