Установка хромированного драйвера в Circle CI - PullRequest
0 голосов
/ 14 мая 2019

У меня есть следующие команды в конфигурации Circle CI для установки драйвера chrome для запуска автоматических тестовых случаев.

sudo apt-get update
sudo apt-get install lsb-release libappindicator3-1
curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome.deb
sudo sed -i 's|HERE/chrome"|HERE/chrome" --no-sandbox|g' /opt/google/chrome/google-chrome
rm google-chrome.deb

Теперь выдается ошибка:

Ign http://deb.debian.org jessie InRelease

Ign http://http.debian.net jessie-backports InRelease

Get:1 http://deb.debian.org jessie-updates InRelease [7340 B]

Get:2 http://security.debian.org jessie/updates InRelease [44.9 kB]

Get:3 http://deb.debian.org jessie Release.gpg [2420 B]

Ign http://http.debian.net jessie-backports Release.gpg

Get:4 http://deb.debian.org jessie Release [148 kB]

Ign http://http.debian.net jessie-backports Release

Get:5 http://security.debian.org jessie/updates/main amd64 Packages [829 kB]

Get:6 http://deb.debian.org jessie/main amd64 Packages [9098 kB]

Err http://http.debian.net jessie-backports/main amd64 Packages


Err http://http.debian.net jessie-backports/main amd64 Packages


Err http://http.debian.net jessie-backports/main amd64 Packages


Err http://http.debian.net jessie-backports/main amd64 Packages


Err http://http.debian.net jessie-backports/main amd64 Packages
  404  Not Found

Fetched 10.1 MB in 1s (8456 kB/s)
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/InRelease  Unable to find expected entry 'main/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://http.debian.net/debian/dists/jessie-backports/main/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
Exited with code 100

поэтому, думая, что добавление архивов репо решит проблему, я добавил что-то вроде этого

    sudo -i

printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list

exit

sudo apt-get update

sudo apt-get install lsb-release libappindicator3-1

curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

sudo dpkg -i google-chrome.deb

sudo sed -i 's|HERE/chrome"|HERE/chrome" --no-sandbox|g' /opt/google/chrome/google-chrome

rm google-chrome.deb

exit 0

это снова блокирует процесс и отображает приглашение оболочки на временной шкале хода выполнения задания Circle CI, как показано на рисунке. Как это можно исправить? Мое единственное требование - установить драйвер Chrome. enter image description here

...