Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

CircleCI fails during Chrome install #5191

Closed
cnishina opened this issue Mar 27, 2019 · 3 comments
Closed

CircleCI fails during Chrome install #5191

cnishina opened this issue Mar 27, 2019 · 3 comments
Assignees

Comments

@cnishina
Copy link
Contributor

So many questions:

  • why am I installing browsers in an image with browsers?
  • can this test just work with the existing browser? should we switch to chromium?
  • what's this error and why now? did something change?
#!/bin/bash -eo pipefail
sudo apt-get update
sudo apt-get install python-pip tcpdump

# Have to update firefox, default is ESR.
sudo pip install --upgrade pip
sudo pip install mozdownload mozinstall
mozdownload --version latest --destination firefox.tar.bz2
mozinstall firefox.tar.bz2
sudo cp -R firefox/* /opt/firefox/

# Latest chrome is already installed in the default container.
# 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\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome
# rm google-chrome.deb
Ign http://http.us.debian.org jessie-backports InRelease

Ign http://http.us.debian.org jessie-backports Release.gpg

Ign http://http.us.debian.org jessie-backports Release

Err http://http.us.debian.org jessie-backports/main Sources
  404  Not Found [IP: 208.80.154.15 80]

Err http://http.us.debian.org jessie-backports/main amd64 Packages
  404  Not Found [IP: 208.80.154.15 80]

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

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

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

100% [Waiting for headers] [Waiting for headers]Get:2 http://security.debian.org jessie/updates/main amd64 Packages [822 kB]

Hit http://deb.debian.org jessie Release.gpg

Ign http://deb.debian.org jessie-updates Release.gpg

Hit http://deb.debian.org jessie Release

Ign http://deb.debian.org jessie-updates Release

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

9% [3 Packages 12.1 kB/9098 kB 0%] [Waiting for headers]Err http://deb.debian.org jessie-updates/main amd64 Packages
  

Err http://deb.debian.org jessie-updates/main amd64 Packages
  

Err http://deb.debian.org jessie-updates/main amd64 Packages
  

Err http://deb.debian.org jessie-updates/main amd64 Packages
  

Err http://deb.debian.org jessie-updates/main amd64 Packages
  404  Not Found

100% [3 Packages 9098 kB]Fetched 9965 kB in 1s (6687 kB/s)
W: Failed to fetch http://http.us.debian.org/debian/dists/jessie-backports/main/source/Sources  404  Not Found [IP: 208.80.154.15 80]

W: Failed to fetch http://http.us.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages  404  Not Found [IP: 208.80.154.15 80]

W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/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
@cnishina cnishina self-assigned this Mar 27, 2019
cnishina added a commit to cnishina/protractor that referenced this issue Mar 29, 2019
@cnishina
Copy link
Contributor Author

After investigation, we are doing a sudo apt-get update to install firefox. This isn't needed since we are using an image with browsers. Removing it appears to work.

cnishina added a commit to cnishina/protractor that referenced this issue Mar 29, 2019
@devoto13
Copy link
Contributor

The 404s are because Debian Jessie was achieved and some repositories were removed. See this thread for more details. Probably not very useful information given the solution, but just in case 😄

@cnishina
Copy link
Contributor Author

Neat! The internet has all the answers! Anyway, it looks like the fix is to just delete that part of the config.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants