Устанавливаю Chrome на vps через paramiko, но он не устанавливается
`i = 0
while i < ServersNumber:
ChromeLocal = ('C:/infinite/packages/chrome.deb')
ChromeRemote = ('/home/chrome.deb')
client = paramiko.SSHClient()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.connect(hostname=host[i], username='root', key_filename = 'C:/infinite/servers/key')
hostname = host[i]
print(hostname)
sftp = client.open_sftp()
stdin, stdout, stderr = client.exec_command('apt-get update')
print(stdout.readlines())
sftp.put(ChromeLocal, ChromeRemote)
stdin, stdout, stderr = client.exec_command('dpkg -i chrome.deb')
print(stdout.readlines())
stdin, stdout, stderr = client.exec_command('apt-get install -f')
print(stdout.readlines())
stdin, stdout, stderr = client.exec_command('Y\n')
print(stdout.readlines())
client.close()
i+=1`
Получаю:
['Hit:1
http://ru.archive.ubuntu.com/ubuntu bionic InRelease\n', 'Get:2
http://ru.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]\n', 'Get:3
http://ru.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]\n', 'Get:4
http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]\n', 'Fetched 252 kB in 1s (267 kB/s)\n', 'Reading package lists...\n']
['(Reading database ... 59368 files and directories currently installed.)\n', 'Preparing to unpack chrome.deb ...\n', 'Unpacking google-chrome-stable (87.0.4280.66-1) over (87.0.4280.66-1) ...\n', 'Processing triggers for mime-support (3.60ubuntu1) ...\n', 'Processing triggers for man-db (2.8.3-2ubuntu0.1) ...\n']
Пробовал по разному устанавливать и сам деб файл на сервер загружал и через wget, не работает. apt-get install -f На это получаю долгую загрузку в консоли и ничего в итоге не происходит.