title: WebDriverException: Message: Service /content/chromedriver unexpectedly exited. Status code was: -6 with ChromeDriver Google Colab and Selenium
body: <p>I was trying to run headless Chrome browser using Selenium to scrape contents from the web. I installed headless Chrome using wget and then unzipped in my current folder.</p>
  
  <pre><code>!wget "http://chromedriver.storage.googleapis.com/2.25/chromedriver_linux64.zip"
  !unzip chromedriver_linux64.zip
  </code></pre>
  
  <p>Now when I am loading the driver</p>
  
  <pre><code>from selenium.webdriver.chrome.options import Options
  import os
  # instantiate a chrome options object so you can set the size and headless preference
  chrome_options = Options()
  chrome_options.add_argument("--headless")
  chrome_options.add_argument("--window-size=1920x1080")
  
  chrome_driver = os.getcwd() +"/chromedriver"
  driver = webdriver.Chrome(chrome_options=chrome_options,executable_path=chrome_driver)
  </code></pre>
  
  <p>I am getting an error</p>
  
  <pre><code>WebDriverException                        Traceback (most recent call last)
  &lt;ipython-input-67-0aeae0cfd891&gt; in &lt;module&gt;()
  ----&gt; 1 driver = webdriver.Chrome(chrome_options=chrome_options, executable_path=chrome_driver)
    2 driver.get("https://www.google.com")
    3 lucky_button = driver.find_element_by_css_selector("[name=btnI]")
    4 lucky_button.click()
    5 /usr/local/lib/python3.6/dist-packages/selenium/webdriver/chrome/webdriver.py in __init__(self, executable_path, port, chrome_options, service_args, desired_capabilities, service_log_path)
   60             service_args=service_args,
   61             log_path=service_log_path)
  ---&gt; 62         self.service.start()
   63 
   64         try:
  
   /usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py in start(self)
   84         count = 0
   85         while True:
   ---&gt; 86             self.assert_process_still_running()
   87             if self.is_connectable():
   88                 break
  
   /usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py in assert_process_still_running(self)
   97             raise WebDriverException(
   98                 'Service %s unexpectedly exited. Status code was: %s'
   ---&gt; 99                 % (self.path, return_code)
  100             )
  101 
  
  WebDriverException: Message: Service /content/chromedriver unexpectedly exited. Status code was: -6
  </code></pre>
  
  <h2>Update</h2>
  
  <p>So after some research I tried the other way </p>
  
  <pre><code>!apt install chromium-chromedriver
  import selenium as se
  
  options = se.webdriver.ChromeOptions()
  options.add_argument('headless')
  
  driver = se.webdriver.Chrome(chrome_options=options)
  </code></pre>
  
  <p>On Google Colab which again gives me the same error</p>
  
  <pre><code>WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: -6
  </code></pre>