Scoop: OpenSSH installation fails: "Can't shim 'usr/bin/sh.exe': File doesn't exist."

Created on 10 Jul 2018  路  3Comments  路  Source: lukesampson/scoop

Running scoop install openssh on a fresh Windows 10 installation, it appears that the script is pulling down a number of .tar.xz files, extracting the first one, then skipping forward without extracting the other files. This thus leads to it failing when trying to link a binary that doesn't exist, as it wasn't extracted.

Installing 'openssh' (7.6p1) [64bit]
Loading gcc-libs-6.4.0-1-x86_64.pkg.tar.xz from cache
Loading heimdal-1.5.3-9-x86_64.pkg.tar.xz from cache
Loading heimdal-libs-1.5.3-9-x86_64.pkg.tar.xz from cache
Loading icu-59.1-1-x86_64.pkg.tar.xz from cache
Loading libcrypt-2.1-1-x86_64.pkg.tar.xz from cache
Loading libdb-5.3.28-2-x86_64.pkg.tar.xz from cache
Loading libedit-3.1-20170329-x86_64.pkg.tar.xz from cache
Loading libopenssl-1.0.2.m-1-x86_64.pkg.tar.xz from cache
Loading libreadline-7.0.003-1-x86_64.pkg.tar.xz from cache
Loading libsqlite-3.19.3.0-2-x86_64.pkg.tar.xz from cache
Loading msys2-runtime-2.9.0-2-x86_64.pkg.tar.xz from cache
Loading ncurses-6.0.20170708-2-x86_64.pkg.tar.xz from cache
Loading openssh-7.6p1-1-x86_64.pkg.tar.xz from cache
Loading zlib-1.2.11-1-x86_64.pkg.tar.xz from cache
Loading bash-4.4.012-1-x86_64.pkg.tar.xz from cache
Checking hash of gcc-libs-6.4.0-1-x86_64.pkg.tar.xz... ok.
Extracting... Running pre-install script...


    Directory: C:\Users\silve\scoop\apps\openssh\7.6p1


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        7/10/2018   1:34 PM                tmp
d-----        7/10/2018   1:34 PM                home
Junction created for C:\Users\silve\scoop\apps\openssh\7.6p1\home\silve <<===>> C:\Users\silve
Linking ~\scoop\apps\openssh\current => ~\scoop\apps\openssh\7.6p1
Creating shim for 'findssl.sh'.
Can't shim 'usr/bin/sh.exe': File doesn't exist.
bug

Most helpful comment

@r15ch13 Awesome, fixes the issue entirely. Openssh installed successfully. Thank you for the very quick response.

All 3 comments

Should be fixed with https://github.com/lukesampson/scoop/commit/0b13f37bc1443f59dd5194dc13ae66f2a849774e
Please run scoop update and try again.

@r15ch13 Awesome, fixes the issue entirely. Openssh installed successfully. Thank you for the very quick response.

having the exact same issue. scoop is up to date

位 scoop install openssh
Installing 'openssh' (7.6p1) [64bit]
Loading gcc-libs-6.4.0-1-x86_64.pkg.tar.xz from cache
Checking hash of gcc-libs-6.4.0-1-x86_64.pkg.tar.xz ... ok.
Loading heimdal-1.5.3-9-x86_64.pkg.tar.xz from cache
Checking hash of heimdal-1.5.3-9-x86_64.pkg.tar.xz ... ok.
Loading heimdal-libs-1.5.3-9-x86_64.pkg.tar.xz from cache
Checking hash of heimdal-libs-1.5.3-9-x86_64.pkg.tar.xz ... ok.
Loading icu-59.1-1-x86_64.pkg.tar.xz from cache
Checking hash of icu-59.1-1-x86_64.pkg.tar.xz ... ok.
Loading libcrypt-2.1-1-x86_64.pkg.tar.xz from cache
Checking hash of libcrypt-2.1-1-x86_64.pkg.tar.xz ... ok.
Loading libdb-5.3.28-2-x86_64.pkg.tar.xz from cache
Checking hash of libdb-5.3.28-2-x86_64.pkg.tar.xz ... ok.
Loading libedit-3.1-20170329-x86_64.pkg.tar.xz from cache
Checking hash of libedit-3.1-20170329-x86_64.pkg.tar.xz ... ok.
Loading libopenssl-1.0.2.m-1-x86_64.pkg.tar.xz from cache
Checking hash of libopenssl-1.0.2.m-1-x86_64.pkg.tar.xz ... ok.
Loading libreadline-7.0.003-1-x86_64.pkg.tar.xz from cache
Checking hash of libreadline-7.0.003-1-x86_64.pkg.tar.xz ... ok.
Loading libsqlite-3.19.3.0-2-x86_64.pkg.tar.xz from cache
Checking hash of libsqlite-3.19.3.0-2-x86_64.pkg.tar.xz ... ok.
Loading msys2-runtime-2.9.0-2-x86_64.pkg.tar.xz from cache
Checking hash of msys2-runtime-2.9.0-2-x86_64.pkg.tar.xz ... ok.
Loading ncurses-6.0.20170708-2-x86_64.pkg.tar.xz from cache
Checking hash of ncurses-6.0.20170708-2-x86_64.pkg.tar.xz ... ok.
Loading openssh-7.6p1-1-x86_64.pkg.tar.xz from cache
Checking hash of openssh-7.6p1-1-x86_64.pkg.tar.xz ... ok.
Loading zlib-1.2.11-1-x86_64.pkg.tar.xz from cache
Checking hash of zlib-1.2.11-1-x86_64.pkg.tar.xz ... ok.
Loading bash-4.4.012-1-x86_64.pkg.tar.xz from cache
Checking hash of bash-4.4.012-1-x86_64.pkg.tar.xz ... ok.
Extracting gcc-libs-6.4.0-1-x86_64.pkg.tar.xz ... done.
Extracting heimdal-1.5.3-9-x86_64.pkg.tar.xz ... done.
Extracting heimdal-libs-1.5.3-9-x86_64.pkg.tar.xz ... done.
Extracting icu-59.1-1-x86_64.pkg.tar.xz ... done.
Extracting libcrypt-2.1-1-x86_64.pkg.tar.xz ... done.
Extracting libdb-5.3.28-2-x86_64.pkg.tar.xz ... done.
Extracting libedit-3.1-20170329-x86_64.pkg.tar.xz ... done.
Extracting libopenssl-1.0.2.m-1-x86_64.pkg.tar.xz ... done.
Extracting libreadline-7.0.003-1-x86_64.pkg.tar.xz ... done.
Extracting libsqlite-3.19.3.0-2-x86_64.pkg.tar.xz ... done.
Extracting msys2-runtime-2.9.0-2-x86_64.pkg.tar.xz ... done.
Extracting ncurses-6.0.20170708-2-x86_64.pkg.tar.xz ... done.
Extracting openssh-7.6p1-1-x86_64.pkg.tar.xz ... done.
Extracting zlib-1.2.11-1-x86_64.pkg.tar.xz ... done.
Extracting bash-4.4.012-1-x86_64.pkg.tar.xz ... done.
Running pre-install script...


    Verzeichnis: C:\Users\maxi\scoop\apps\openssh\7.6p1


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----       20.09.2018     10:05                tmp
d-----       20.09.2018     10:05                home
Verbindung erstellt f眉r C:\Users\maxi\scoop\apps\openssh\7.6p1\home\maxi <<===>> C:\Users\maxi
Linking ~\scoop\apps\openssh\current => ~\scoop\apps\openssh\7.6p1
Creating shim for 'findssl.sh'.
Can't shim 'usr/bin/sh.exe': File doesn't exist.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

SinisterBlade picture SinisterBlade  路  3Comments

vpratfr picture vpratfr  路  3Comments

eBaeza picture eBaeza  路  3Comments

borekb picture borekb  路  3Comments

thorstenkampe picture thorstenkampe  路  3Comments