My build was working fine this morning, but now I have errors
about unmet dependencies:
Here is a link to the logs:
Error message:
E: Unable to correct problems, you have held broken packages.
apt-get.diagnostics
apt-get install failed
The command “sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install g+±9” failed and exited with 100 during .
The following packages have unmet dependencies:
g++-9 : Depends: gcc-9 (= 9.2.1-17ubuntu1~18.04.1) but it is not going to be installed
Depends: libstdc++-9-dev (= 9.2.1-17ubuntu1~18.04.1) but it is not going to be installed
Looks like the package dependencies changed. Adding gcc-9 and libstdc++-9-dev should resolve the issue.
Run the same apt invocation manually, adding -o Debug::pkgProblemResolver=yes to it.
This will show which packages are conflicting with those that you are installing.
Usually, this error means that some of the preinstalled conflicting dependency packages have been installed manually and as such, they aren’t being replaced automatically unless you explicitly specify a corresponding replacement dependency.
ppa:ubuntu-toolchain-r/test is broken. Some of its packages – libgcc-9-dev in particular – require dependencies (libgcc1 in particular) of greater versions than available in either stock Bionic repos or that PPA. The PPA should be providing those, I guess, since they are a part of the toolchain.