Skip to content

Commit 79f6f66

Browse files
authored
ci: apt error "you have held broken packages" #3503
Problem: CI jobs are failing with apt error "E: Unable to correct problems, you have held broken packages". ``` [Container] 2023/05/26 18:36:57 Running command n $NODE_16_VERSION copying : node/16.20.0 installed : v16.20.0 (with npm 8.19.4) [Container] 2023/05/26 18:37:27 Moving to directory /codebuild/output/src277245994/src/github.com/aws/aws-toolkit-vscode [Container] 2023/05/26 18:37:27 Configuring ssm agent with target id: codebuild:f31d92a4-ae0b-4718-977e-2abd1b4018cd [Container] 2023/05/26 18:37:27 Successfully updated ssm agent configuration [Container] 2023/05/26 18:37:27 Registering with agent [Container] 2023/05/26 18:37:27 Phases found in YAML: 3 [Container] 2023/05/26 18:37:27 INSTALL: 2 commands [Container] 2023/05/26 18:37:27 PRE_BUILD: 2 commands [Container] 2023/05/26 18:37:27 BUILD: 6 commands [Container] 2023/05/26 18:37:27 Phase complete: DOWNLOAD_SOURCE State: SUCCEEDED [Container] 2023/05/26 18:37:27 Phase context status code: Message: [Container] 2023/05/26 18:37:27 Entering phase INSTALL [Container] 2023/05/26 18:37:27 Running command >/dev/null apt -yqq update WARNING: apt does not have a stable CLI interface. Use with caution in scripts. W: https://apt.corretto.aws/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. W: https://dl.yarnpkg.com/debian/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. [Container] 2023/05/26 18:37:32 Running command >/dev/null apt -y install libatk1.0-0 libgtk-3-dev libxss1 xvfb libnss3-dev libasound2 libasound2-plugins libsecret-1-0 WARNING: apt does not have a stable CLI interface. Use with caution in scripts. E: Unable to correct problems, you have held broken packages. [Container] 2023/05/26 18:37:33 Command did not exit successfully >/dev/null apt -y install libatk1.0-0 libgtk-3-dev libxss1 xvfb libnss3-dev libasound2 libasound2-plugins libsecret-1-0 exit status 100 [Container] 2023/05/26 18:37:33 Phase complete: INSTALL State: FAILED [Container] 2023/05/26 18:37:33 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: >/dev/null apt -y install libatk1.0-0 libgtk-3-dev libxss1 xvfb libnss3-dev libasound2 libasound2-plugins libsecret-1-0. Reason: exit status 100 ``` Solution: The `libnss3-dev` and `libsecret-1-0` items are apparently no longer needed, so remove them. Fixes #3502
1 parent ecd0eea commit 79f6f66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

buildspec/linuxIntegrationTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ phases:
3232
- 'python3.7 --version'
3333
- 'python3.8 --version'
3434
# Dependencies for running vscode.
35-
- '>/dev/null apt-get -yqq install libatk1.0-0 libgtk-3-dev libxss1 xvfb libnss3-dev libasound2 libasound2-plugins libsecret-1-0'
35+
- '>/dev/null apt-get -yqq install libatk1.0-0 libgtk-3-dev libxss1 xvfb libasound2 libasound2-plugins'
3636
- '>/dev/null pip3 install --upgrade aws-sam-cli'
3737
# Print info about sam (version, location, …).
3838
- 'pip3 show aws-sam-cli'

buildspec/linuxTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ phases:
1313
# Without this, "Unable to locate package libatk1.0-0".
1414
- '>/dev/null apt-get -yqq update'
1515
# Dependencies for running vscode.
16-
- '>/dev/null apt-get -yqq install libatk1.0-0 libgtk-3-dev libxss1 xvfb libnss3-dev libasound2 libasound2-plugins libsecret-1-0'
16+
- '>/dev/null apt-get -yqq install libatk1.0-0 libgtk-3-dev libxss1 xvfb libasound2 libasound2-plugins'
1717

1818
pre_build:
1919
commands:

0 commit comments

Comments
 (0)