I am trying to use apt-get to install a software called expect via cmd with ssh:ssh -t root@111.111.111 'apt-get install -v -y expect'However, this is what I get:apt 1.0.1ubuntu2 for amd64 compiled on Aug  1 2015 19:20:48Supported 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 fileAnd the software is not installed.My question is: can or can't we use apt-get via ssh like above?** By the way, yes, I can normally log in via ssh and install the software via ssh. **
How to use apt-get install via ssh cmd
apt