我正在尝试使用“apt-get”通过带有 ssh 的 cmd 安装一个名为“expect”的软件:
ssh -t root@111.111.111 'apt-get install -v -y expect'
但是,这就是我得到的:
apt 1.0.1ubuntu2 for amd64 compiled on Aug 1 2015 19:20:48
Supported modules:
*Ver: Standard .deb
*Pkg: Debian dpkg interface (Priority 30)
Pkg: Debian APT solver interface (Priority -1000)
S.L: 'deb' Standard Debian binary tree
S.L: 'deb-src' Standard Debian source tree
Idx: Debian Source Index
Idx: Debian Package Index
Idx: Debian Translation Index
Idx: Debian dpkg status file
Idx: EDSP scenario file
Run Code Online (Sandbox Code Playgroud)
并且没有安装软件。
我的问题是:我们可以还是不能像上面一样通过 ssh 使用 apt-get?
** 顺便说一句,是的,我可以正常通过ssh登录并通过ssh安装软件。**
根据该标志的手册页,只需打印. 所以不会安装任何软件。apt-get
-v
apt-get
运行这个
ssh -t root@111.111.111 'apt-get install -y expect'
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2128 次 |
最近记录: |