I’m trying to install the chrome in my ubuntu aws lightsail server to use in a selenium aplication, but when I try to install it in the server I get the following errors,
first I run sudo apt update
then
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
to download the file, here’s the response
--2024-07-15 23:04:20-- https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Resolving dl.google.com (dl.google.com)... 2607:f8b0:4004:c06::be, 2607:f8b0:4004:c06::88, 2607:f8b0:4004:c06::5b, ...
Connecting to dl.google.com (dl.google.com)|2607:f8b0:4004:c06::be|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 108773084 (104M) [application/x-debian-package]
Saving to: ‘google-chrome-stable_current_amd64.deb’
google-chrome-stable_current_ 100%[================================================>] 103.73M 239MB/s in 0.4s
2024-07-15 23:04:21 (239 MB/s) - ‘google-chrome-stable_current_amd64.deb’ saved [108773084/108773084]
And then to install it using dpkg sudo dpkg -i google-chrome-stable_current_amd64.deb
I get the following error:
ubuntu@ip-172-26-9-7:~$ sudo dpkg -i google-chrome-stable_current_amd64.deb
(Reading database ... 160968 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (126.0.6478.126-1) ...
dpkg-deb: error: <decompress> subprocess was killed by signal (Killed)
dpkg: error processing archive google-chrome-stable_current_amd64.deb (--install):
cannot copy extracted data for './opt/google/chrome/chrome' to '/opt/google/chrome/chrome.dpkg-new': unexpected end of
file or stream
Errors were encountered while processing:
google-chrome-stable_current_amd64.deb
I’ve tried dowloading the google-chrome-stable_current_amd64.deb several times, since another simillar issues said this was a dpkg corrupted file issue, but it did not resolve, any ideas?