Action failed: sudo apt-get --only-upgrade install google-chrome-stable

Hi Every one, I am new here, I am getting the following error when trying to upload my code to github from Circle CI.

requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 google-chrome-stable : Depends: libpango-1.0-0 (>= 1.14.0) but it is not going to be installed
                        Depends: libpangocairo-1.0-0 (>= 1.14.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get --only-upgrade install google-chrome-stable returned exit code 100

Action failed: sudo apt-get --only-upgrade install google-chrome-stable```

I have this in the circle.yml like suggested in the other comments 

```dependencies:
  pre:
    - google-chrome --version
    - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
    - sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
    - sudo apt-get update
    - sudo apt-get --only-upgrade install google-chrome-stable
    - google-chrome --version```

Any help would be appreciated

Best Regards

Looks like you might be running on Ubuntu 12.04 which is deprecated. Can you update your project to use the newer Trusty image? This can be found in the project settings under build environment.

i.e.
https://circleci.com/$VCS/$ORG/$REPO/edit#build-environment

Thank you for your reply… I will give it a try :slight_smile:

1 Like