Затыки при скриптовой установке пакетов
Народ подскажите пожалуйста с чем связано то обстоятельство что
при ручной установке пакета
yes | gdebi /путь/до/дебфайла
Пакет устанавливается нормально
однако если создаю скрипт установки пакетов (пакетов несколько)
установщик перестает их видеть и ругается однако по указанным
путям файлы существуют (примеры приведу ниже) причем что интересно
часть пакетов в скрипте устанавливается без проблем другая с
проблемами установщик говорит что не видит файлов, пробовал разные
варианты установки (см ниже ) результат один проблемы для
множества файлов а по одиночке все ставится без проблем -но как
же это доооооооооооооооооооолго. Итак примеры скрипта c
результатами :
bash '/tmp/reinst.sh'
Usage: gdebi [options] filename
For a graphical version run gdebi-gtk
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-n, --non-interactive
Run non-interactive (dangerous!)
-o APT_OPTS, --option=APT_OPTS
Set an APT configuration option
-q, --quiet Do not show progress information
--apt-line Simulate only and print a apt-get install
compatible
line to stderr
--root=ROOTDIR Use alternative root dir
Usage: gdebi [options] filename
For a graphical version run gdebi-gtk
#!/bin/sh
#var 1 reinst.sh
yes | gdebi $(find /media -name 'libwinpr-
credentials0.1_1.1.0~git20140921.1.440916e+dfsg1-
5ubuntu1_i386.deb')
yes | gdebi $(find /media -name 'libwinpr-credui0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb')
yes | gdebi $(find /media -name 'libwinpr-crt0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb')
yes | gdebi $(find /media -name 'libwinpr-crypto0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb')
yes | gdebi $(find /media -name 'libwinpr-error0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb')
yes | gdebi $(find /media -name 'libwinpr-io0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb')
yes | gdebi $(find /media -name 'libwinpr-pipe0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb')
yes | gdebi $(find /media -name 'libwinpr-sspicli0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb')
yes | gdebi $(find /media -name 'libwinpr-timezone0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb')
yes | gdebi $(find /media -name 'libwinpr-winhttp0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb')
yes | gdebi $(find /media -name 'libwinpr-winsock0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb')
#!/bin/sh
# var 2 reinst.sh
yes | gdebi $(find /media -name libwinpr-credentials0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi $(find /media -name libwinpr-credui0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi $(find /media -name libwinpr-crt0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi $(find /media -name libwinpr-crypto0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi $(find /media -name libwinpr-error0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi $(find /media -name libwinpr-io0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi $(find /media -name libwinpr-pipe0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi $(find /media -name libwinpr-sspicli0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi $(find /media -name libwinpr-timezone0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi $(find /media -name libwinpr-winhttp0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi $(find /media -name libwinpr-winsock0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
#!/bin/sh
# var 3 reinst.sh
yes | gdebi $(find /media -name "libwinpr-credentials0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb")
yes | gdebi $(find /media -name "libwinpr-credui0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb")
yes | gdebi $(find /media -name "libwinpr-crt0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb")
yes | gdebi $(find /media -name "libwinpr-crypto0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb")
yes | gdebi $(find /media -name "libwinpr-error0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb")
yes | gdebi $(find /media -name "libwinpr-io0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb")
yes | gdebi $(find /media -name "libwinpr-pipe0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb")
yes | gdebi $(find /media -name "libwinpr-sspicli0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb")
yes | gdebi $(find /media -name "libwinpr-timezone0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb")
yes | gdebi $(find /media -name "libwinpr-winhttp0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb")
yes | gdebi $(find /media -name "libwinpr-winsock0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb")
#!/bin/sh
# var 4 reinst.sh
yes | gdebi /media/mint/5E7F1DD650F53361/11042023/libwinpr-credentials0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi /media/mint/5E7F1DD650F53361/11042023/libwinpr-credui0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi /media/mint/5E7F1DD650F53361/11042023/libwinpr-crt0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi /media/mint/5E7F1DD650F53361/11042023/libwinpr-crypto0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi /media/mint/5E7F1DD650F53361/11042023/libwinpr-error0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi /media/mint/5E7F1DD650F53361/11042023/libwinpr-io0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi /media/mint/5E7F1DD650F53361/11042023/libwinpr-pipe0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi /media/mint/5E7F1DD650F53361/11042023/libwinpr-sspicli0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi /media/mint/5E7F1DD650F53361/11042023/libwinpr-timezone0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi /media/mint/5E7F1DD650F53361/11042023/libwinpr-winhttp0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
yes | gdebi /media/mint/5E7F1DD650F53361/11042023/libwinpr-winsock0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb)
bash /tmp/reinst.sh
gdebi error, file not found: /media/mint/5E7F1DD650F53361/11042023/libwinpr-credentials0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
gdebi error, file not found: /media/mint/5E7F1DD650F53361/11042023/libwinpr-credui0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
gdebi error, file not found:
/media/mint/5E7F1DD650F53361/11042023/libwinpr-crt0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
gdebi error, file not found: /media/mint/5E7F1DD650F53361/11042023/libwinpr-crypto0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
gdebi error, file not found: /media/mint/5E7F1DD650F53361/11042023/libwinpr-error0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
gdebi error, file not found: /media/mint/5E7F1DD650F53361/11042023/libwinpr-io0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
gdebi error, file not found: /media/mint/5E7F1DD650F53361/11042023/libwinpr-pipe0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
gdebi error, file not found: /media/mint/5E7F1DD650F53361/11042023/libwinpr-sspicli0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
gdebi error, file not found: /media/mint/5E7F1DD650F53361/11042023/libwinpr-timezone0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
gdebi error, file not found: /media/mint/5E7F1DD650F53361/11042023/libwinpr-winhttp0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
gdebi error, file not found: /media/mint/5E7F1DD650F53361/11042023/libwinpr-winsock0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
#!/bin/sh
#var 5 reinst
apt install -y /media/mint/5E7F1DD650F53361/11042023/libwinpr-credentials0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
apt install -y /media/mint/5E7F1DD650F53361/11042023/libwinpr-credui0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
apt install -y /media/mint/5E7F1DD650F53361/11042023/libwinpr-crt0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
apt install -y /media/mint/5E7F1DD650F53361/11042023/libwinpr-crypto0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
apt install -y /media/mint/5E7F1DD650F53361/11042023/libwinpr-error0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
apt install -y /media/mint/5E7F1DD650F53361/11042023/libwinpr-io0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
apt install -y /media/mint/5E7F1DD650F53361/11042023/libwinpr-pipe0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
apt install -y /media/mint/5E7F1DD650F53361/11042023/libwinpr-sspicli0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
apt install -y /media/mint/5E7F1DD650F53361/11042023/libwinpr-timezone0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
apt install -y /media/mint/5E7F1DD650F53361/11042023/libwinpr-winhttp0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
apt install -y /media/mint/5E7F1DD650F53361/11042023/libwinpr-winsock0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
bash '/tmp/reinst2.sh'
Reading package lists... Done
E: Unsupported file /media/mint/5E7F1DD650F53361/11042023/libwinpr-credentials0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb given on commandline
Reading package lists... Done
E: Unsupported file /media/mint/5E7F1DD650F53361/11042023/libwinpr-credui0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb given on commandline
Reading package lists... Done
E: Unsupported file /media/mint/5E7F1DD650F53361/11042023/libwinpr-crt0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb given on commandline
Reading package lists... Done
E: Unsupported file /media/mint/5E7F1DD650F53361/11042023/libwinpr-crypto0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb given on commandline
Reading package lists... Done
E: Unsupported file /media/mint/5E7F1DD650F53361/11042023/libwinpr-error0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb given on commandline
Reading package lists... Done
E: Unsupported file /media/mint/5E7F1DD650F53361/11042023/libwinpr-io0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb given on commandline
Reading package lists... Done
E: Unsupported file /media/mint/5E7F1DD650F53361/11042023/libwinpr-pipe0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb given on commandline
Reading package lists... Done
E: Unsupported file /media/mint/5E7F1DD650F53361/11042023/libwinpr-sspicli0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb given on commandline
Reading package lists... Done
E: Unsupported file /media/mint/5E7F1DD650F53361/11042023/libwinpr-timezone0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb given on commandline
Reading package lists... Done
E: Unsupported file /media/mint/5E7F1DD650F53361/11042023/libwinpr-winhttp0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb given on commandline
Reading package lists... Done
E: Unsupported file /media/mint/5E7F1DD650F53361/11042023/libwinpr-winsock0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb given on commandline
ls -lA /media/mint/5E7F1DD650F53361/11042023/libwinpr-credentials0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb
ls: cannot access '/media/mint/5E7F1DD650F53361/11042023/libwinpr-credentials0.1_1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb': No such file or directory
locate -b "libwinpr*credui*deb"
/media/mint/5E7F1DD650F53361/11042023/libwinpr-credui0.1_1.1.0_git20140921.1.440916e+dfsg1-5ubuntu1_i386.deb