Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apt-get update && apt-get upgrade command failing in buildspec #102

Closed
snebhu3 opened this issue Apr 19, 2022 · 6 comments
Closed

apt-get update && apt-get upgrade command failing in buildspec #102

snebhu3 opened this issue Apr 19, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@snebhu3
Copy link

snebhu3 commented Apr 19, 2022

Describe the bug
apt-get -q update 1> /dev/null && apt-get -q upgrade -y 1> /dev/null command failing in buildspec with below error:

COMMAND_EXECUTION_ERROR Message: Error while executing command: apt-get update && apt-get upgrade -y. Reason: exit status 100

Debug logs:

Configuration file '/usr/lib/jvm/java-1.8.0-amazon-corretto/jre/lib/security/policy/limited/local_policy.jar'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** local_policy.jar (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package java-1.8.0-amazon-corretto-jdk:amd64 (--configure):
 end of file on stdin at conffile prompt
Setting up python2.7-minimal (2.7.17-1~18.04ubuntu1.7) ...
update-binfmts: warning: Couldn't load the binfmt_misc module.
Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-0ubuntu2.1) ...
Setting up libssl-dev:amd64 (1.1.1-1ubuntu2.1~18.04.15) ...
Setting up libxml2-utils (2.9.4+dfsg1-6.1ubuntu1.5) ...
Setting up python2.7 (2.7.17-1~18.04ubuntu1.7) ...
Setting up libpython3.6-minimal:amd64 (3.6.9-1~18.04ubuntu1.7) ...
Setting up libpython3.6-stdlib:amd64 (3.6.9-1~18.04ubuntu1.7) ...
Setting up python3.6-minimal (3.6.9-1~18.04ubuntu1.7) ...
update-binfmts: warning: Couldn't load the binfmt_misc module.
Setting up libpython3.6:amd64 (3.6.9-1~18.04ubuntu1.7) ...
Setting up python3.6 (3.6.9-1~18.04ubuntu1.7) ...
Processing triggers for libc-bin (2.27-3ubuntu1.5) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
 java-1.8.0-amazon-corretto-jdk:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
  • Impacted CFCT Version: Confirmed impact on version v2.2.0. Likely to impact older versions too.

  • Impacted CFCT Regions: Confirmed in us-west-2, likely to impact other regions too.

Workaround
Insert command : apt-mark hold java-1.8.0-amazon-corretto-jdk in buildspec right before the impacted command: apt-get -q update 1> /dev/null && apt-get -q upgrade -y 1> /dev/null

@snebhu3 snebhu3 added the bug Something isn't working label Apr 19, 2022
@snebhu3 snebhu3 pinned this issue Apr 19, 2022
@kingstobcj
Copy link

Facing the same issue which is blocking account vending workflow

@sboonyakiatACR
Copy link

Same issue. This is from mine

[Container] 2022/04/19 20:27:26 Waiting for agent ping
[Container] 2022/04/19 20:27:27 Waiting for DOWNLOAD_SOURCE
[Container] 2022/04/19 20:27:27 Phase is DOWNLOAD_SOURCE
[Container] 2022/04/19 20:27:27 CODEBUILD_SRC_DIR=/codebuild/output/src230558664/src
[Container] 2022/04/19 20:27:27 YAML location is /codebuild/readonly/buildspec.yml
[Container] 2022/04/19 20:27:27 Processing environment variables
[Container] 2022/04/19 20:27:28 Selecting 'python' runtime version '3.8' based on manual selections...
[Container] 2022/04/19 20:27:28 Selecting 'ruby' runtime version '2.6' based on manual selections...
[Container] 2022/04/19 20:27:28 Running command echo "Installing Python version 3.8 ..."
Installing Python version 3.8 ...

[Container] 2022/04/19 20:27:28 Running command pyenv global $PYTHON_38_VERSION

[Container] 2022/04/19 20:27:28 Running command echo "Installing Ruby version 2.6 ..."
Installing Ruby version 2.6 ...

[Container] 2022/04/19 20:27:28 Running command rbenv global $RUBY_26_VERSION

[Container] 2022/04/19 20:27:30 Moving to directory /codebuild/output/src230558664/src
[Container] 2022/04/19 20:27:30 Configuring ssm agent with target id: codebuild:964928ba-ab9b-4e61-984b-eaf526cb6c57
[Container] 2022/04/19 20:27:30 Successfully updated ssm agent configuration
[Container] 2022/04/19 20:27:30 Registering with agent
[Container] 2022/04/19 20:27:30 Phases found in YAML: 4
[Container] 2022/04/19 20:27:30 INSTALL: 4 commands
[Container] 2022/04/19 20:27:30 PRE_BUILD: 6 commands
[Container] 2022/04/19 20:27:30 BUILD: 4 commands
[Container] 2022/04/19 20:27:30 POST_BUILD: 2 commands
[Container] 2022/04/19 20:27:30 Phase complete: DOWNLOAD_SOURCE State: SUCCEEDED
[Container] 2022/04/19 20:27:30 Phase context status code: Message:
[Container] 2022/04/19 20:27:30 Entering phase INSTALL
[Container] 2022/04/19 20:27:30 Running command export current=$(pwd)

[Container] 2022/04/19 20:27:30 Running command if [ -f manifest.yaml ];then export current=$(pwd);else if [ -f custom-control-tower-configuration/manifest.yaml ]; then export current=$(pwd)/custom-control-tower-configuration; else echo 'manifest.yaml does not exist at the root level of custom-control-tower-configuration.zip or inside custom-control-tower-configuration folder, please check the ZIP file'; exit 1; fi; fi;

[Container] 2022/04/19 20:27:30 Running command apt-get update && apt-get upgrade -y
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:2 https://apt.corretto.aws stable InRelease [10.7 kB]
Get:3 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
Get:4 https://dl.google.com/linux/chrome/deb stable InRelease [1811 B]
Get:5 https://download.mono-project.com/repo/ubuntu stable-bionic InRelease [5143 B]
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:8 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:9 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic InRelease [20.8 kB]
Get:10 http://ppa.launchpad.net/malteworld/ppa/ubuntu bionic InRelease [15.3 kB]
Get:11 http://archive.canonical.com/ubuntu bionic InRelease [10.2 kB]
Get:12 https://apt.corretto.aws stable/main amd64 Packages [8754 B]
Get:13 https://apt.corretto.aws stable/main i386 Packages [2823 B]
Get:14 https://dl.yarnpkg.com/debian stable/main i386 Packages [10.9 kB]
Get:15 https://dl.yarnpkg.com/debian stable/main all Packages [10.9 kB]
Get:16 https://dl.yarnpkg.com/debian stable/main amd64 Packages [10.9 kB]
Get:17 https://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1090 B]
Get:18 https://download.mono-project.com/repo/ubuntu stable-bionic/main i386 Packages [49.1 kB]
Get:19 https://download.mono-project.com/repo/ubuntu stable-bionic/main amd64 Packages [49.1 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
Get:21 http://archive.ubuntu.com/ubuntu bionic/restricted i386 Packages [13.5 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [177 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages [11.3 MB]
Get:26 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic/main i386 Packages [3159 B]
Get:27 http://security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [6610 B]
Get:28 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [21.1 kB]
Get:29 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1490 kB]
Get:30 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic/main amd64 Packages [3163 B]
Get:31 http://archive.ubuntu.com/ubuntu bionic/main i386 Packages [1328 kB]
Get:32 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
Get:33 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [3165 kB]
Get:34 http://archive.canonical.com/ubuntu bionic/partner amd64 Packages [1587 B]
Get:35 http://archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages [41.7 kB]
Get:36 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [29.8 kB]
Get:37 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [12.7 kB]
Get:38 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2272 kB]
Get:39 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [2696 kB]
Get:40 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [1832 kB]
Get:41 http://archive.canonical.com/ubuntu bionic/partner i386 Packages [1584 B]
Get:42 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [941 kB]
Get:43 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [2023 kB]
Get:44 http://security.ubuntu.com/ubuntu bionic-security/restricted i386 Packages [31.2 kB]
Get:45 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [1271 kB]
Get:46 http://archive.ubuntu.com/ubuntu bionic-backports/main i386 Packages [12.2 kB]
Get:47 http://archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [12.9 kB]
Get:48 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [12.9 kB]
Get:49 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [12.2 kB]
Get:50 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [885 kB]
Get:51 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [1430 kB]
Fetched 44.6 MB in 4s (10.3 MB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
git git-man google-chrome-stable gzip java-1.8.0-amazon-corretto-jdk
java-11-amazon-corretto-jdk lib32z1 libkeyutils1 liblzma-dev liblzma5
libpython2.7-minimal libpython2.7-stdlib libpython3.6 libpython3.6-minimal
libpython3.6-stdlib libssl-dev libssl1.0.0 libssl1.1 libxml2 libxml2-dev
libxml2-utils linux-libc-dev openssl python2.7 python2.7-minimal python3.6
python3.6-minimal rsync tar tzdata xz-utils yarn zlib1g zlib1g-dev
34 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 426 MB of archives.
After this operation, 15.2 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 gzip amd64 1.6-5ubuntu1.2 [90.3 kB]
Get:2 https://apt.corretto.aws stable/main amd64 java-1.8.0-amazon-corretto-jdk amd64 1:8.332.08-1 [118 MB]
Get:3 https://dl.google.com/linux/chrome/deb stable/main amd64 google-chrome-stable amd64 100.0.4896.127-1 [87.1 MB]
Get:4 https://dl.yarnpkg.com/debian stable/main amd64 yarn all 1.22.18-1 [893 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 tar amd64 1.29b-2ubuntu0.3 [234 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-0ubuntu2.1 [176 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 zlib1g amd64 1:1.2.11.dfsg-0ubuntu2.1 [56.4 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6 amd64 3.6.9-118.04ubuntu1.7 [1414 kB]
Get:9 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic/main amd64 git amd64 1:2.36.0-0ppa1
ubuntu18.04.1 [5877 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libssl-dev amd64 1.1.1-1ubuntu2.118.04.15 [1568 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libssl1.1 amd64 1.1.1-1ubuntu2.1
18.04.15 [1303 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3.6 amd64 3.6.9-118.04ubuntu1.7 [203 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6-stdlib amd64 3.6.9-1
18.04ubuntu1.7 [1710 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3.6-minimal amd64 3.6.9-118.04ubuntu1.7 [1610 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6-minimal amd64 3.6.9-1
18.04ubuntu1.7 [534 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 liblzma-dev amd64 5.2.2-1.3ubuntu0.1 [145 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 liblzma5 amd64 5.2.2-1.3ubuntu0.1 [91.1 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7 amd64 2.7.17-118.04ubuntu1.7 [248 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7-stdlib amd64 2.7.17-1
18.04ubuntu1.7 [1917 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7-minimal amd64 2.7.17-118.04ubuntu1.7 [1288 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7-minimal amd64 2.7.17-1
18.04ubuntu1.7 [335 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libxml2-dev amd64 2.9.4+dfsg1-6.1ubuntu1.5 [757 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libxml2 amd64 2.9.4+dfsg1-6.1ubuntu1.5 [663 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 openssl amd64 1.1.1-1ubuntu2.118.04.15 [614 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 tzdata all 2022a-0ubuntu0.18.04 [190 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 xz-utils amd64 5.2.2-1.3ubuntu0.1 [83.8 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libkeyutils1 amd64 1.5.9-9.2ubuntu2.1 [8764 B]
Get:28 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libssl1.0.0 amd64 1.0.2n-1ubuntu5.8 [1088 kB]
Get:29 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 rsync amd64 3.1.2-2.1ubuntu1.4 [334 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 lib32z1 amd64 1:1.2.11.dfsg-0ubuntu2.1 [58.5 kB]
Get:31 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libxml2-utils amd64 2.9.4+dfsg1-6.1ubuntu1.5 [35.9 kB]
Get:32 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-libc-dev amd64 4.15.0-176.185 [986 kB]
Get:33 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic/main amd64 git-man all 1:2.36.0-0ppa1
ubuntu18.04.1 [1926 kB]
Get:34 https://apt.corretto.aws stable/main amd64 java-11-amazon-corretto-jdk amd64 1:11.0.15.9-1 [194 MB]
Preconfiguring packages ...
Fetched 426 MB in 10s (44.1 MB/s)
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 52308 files and directories currently installed.)
Preparing to unpack .../gzip_1.6-5ubuntu1.2_amd64.deb ...
Unpacking gzip (1.6-5ubuntu1.2) over (1.6-5ubuntu1.1) ...
Setting up gzip (1.6-5ubuntu1.2) ...
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 52308 files and directories currently installed.)
Preparing to unpack .../tar_1.29b-2ubuntu0.3_amd64.deb ...
Unpacking tar (1.29b-2ubuntu0.3) over (1.29b-2ubuntu0.2) ...
Setting up tar (1.29b-2ubuntu0.3) ...
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 52308 files and directories currently installed.)
Preparing to unpack .../zlib1g-dev_1%3a1.2.11.dfsg-0ubuntu2.1_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-0ubuntu2.1) over (1:1.2.11.dfsg-0ubuntu2) ...
Preparing to unpack .../zlib1g_1%3a1.2.11.dfsg-0ubuntu2.1_amd64.deb ...
Unpacking zlib1g:amd64 (1:1.2.11.dfsg-0ubuntu2.1) over (1:1.2.11.dfsg-0ubuntu2) ...
Setting up zlib1g:amd64 (1:1.2.11.dfsg-0ubuntu2.1) ...
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 52308 files and directories currently installed.)
Preparing to unpack .../0-libpython3.6_3.6.9-118.04ubuntu1.7_amd64.deb ...
Unpacking libpython3.6:amd64 (3.6.9-1
18.04ubuntu1.7) over (3.6.9-118.04ubuntu1.6) ...
Preparing to unpack .../1-libssl-dev_1.1.1-1ubuntu2.1
18.04.15_amd64.deb ...
Unpacking libssl-dev:amd64 (1.1.1-1ubuntu2.118.04.15) over (1.1.1-1ubuntu2.118.04.14) ...
Preparing to unpack .../2-libssl1.1_1.1.1-1ubuntu2.118.04.15_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1-1ubuntu2.1
18.04.15) over (1.1.1-1ubuntu2.118.04.14) ...
Preparing to unpack .../3-python3.6_3.6.9-1
18.04ubuntu1.7_amd64.deb ...
Unpacking python3.6 (3.6.9-118.04ubuntu1.7) over (3.6.9-118.04ubuntu1.6) ...
Preparing to unpack .../4-libpython3.6-stdlib_3.6.9-118.04ubuntu1.7_amd64.deb ...
Unpacking libpython3.6-stdlib:amd64 (3.6.9-1
18.04ubuntu1.7) over (3.6.9-118.04ubuntu1.6) ...
Preparing to unpack .../5-python3.6-minimal_3.6.9-1
18.04ubuntu1.7_amd64.deb ...
Unpacking python3.6-minimal (3.6.9-118.04ubuntu1.7) over (3.6.9-118.04ubuntu1.6) ...
Preparing to unpack .../6-libpython3.6-minimal_3.6.9-118.04ubuntu1.7_amd64.deb ...
Unpacking libpython3.6-minimal:amd64 (3.6.9-1
18.04ubuntu1.7) over (3.6.9-118.04ubuntu1.6) ...
Preparing to unpack .../7-liblzma-dev_5.2.2-1.3ubuntu0.1_amd64.deb ...
Unpacking liblzma-dev:amd64 (5.2.2-1.3ubuntu0.1) over (5.2.2-1.3) ...
Preparing to unpack .../8-liblzma5_5.2.2-1.3ubuntu0.1_amd64.deb ...
Unpacking liblzma5:amd64 (5.2.2-1.3ubuntu0.1) over (5.2.2-1.3) ...
Setting up liblzma5:amd64 (5.2.2-1.3ubuntu0.1) ...
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 52308 files and directories currently installed.)
Preparing to unpack .../00-google-chrome-stable_100.0.4896.127-1_amd64.deb ...
Unpacking google-chrome-stable (100.0.4896.127-1) over (99.0.4844.51-1) ...
Preparing to unpack .../01-python2.7_2.7.17-1
18.04ubuntu1.7_amd64.deb ...
Unpacking python2.7 (2.7.17-118.04ubuntu1.7) over (2.7.17-118.04ubuntu1.6) ...
Preparing to unpack .../02-libpython2.7-stdlib_2.7.17-118.04ubuntu1.7_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.17-1
18.04ubuntu1.7) over (2.7.17-118.04ubuntu1.6) ...
Preparing to unpack .../03-python2.7-minimal_2.7.17-1
18.04ubuntu1.7_amd64.deb ...
Unpacking python2.7-minimal (2.7.17-118.04ubuntu1.7) over (2.7.17-118.04ubuntu1.6) ...
Preparing to unpack .../04-libpython2.7-minimal_2.7.17-118.04ubuntu1.7_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.17-1
18.04ubuntu1.7) over (2.7.17-118.04ubuntu1.6) ...
Preparing to unpack .../05-libxml2-dev_2.9.4+dfsg1-6.1ubuntu1.5_amd64.deb ...
Unpacking libxml2-dev:amd64 (2.9.4+dfsg1-6.1ubuntu1.5) over (2.9.4+dfsg1-6.1ubuntu1.4) ...
Preparing to unpack .../06-libxml2_2.9.4+dfsg1-6.1ubuntu1.5_amd64.deb ...
Unpacking libxml2:amd64 (2.9.4+dfsg1-6.1ubuntu1.5) over (2.9.4+dfsg1-6.1ubuntu1.4) ...
Preparing to unpack .../07-openssl_1.1.1-1ubuntu2.1
18.04.15_amd64.deb ...
Unpacking openssl (1.1.1-1ubuntu2.118.04.15) over (1.1.1-1ubuntu2.118.04.14) ...
Preparing to unpack .../08-tzdata_2022a-0ubuntu0.18.04_all.deb ...
Unpacking tzdata (2022a-0ubuntu0.18.04) over (2021e-0ubuntu0.18.04) ...
Preparing to unpack .../09-xz-utils_5.2.2-1.3ubuntu0.1_amd64.deb ...
Unpacking xz-utils (5.2.2-1.3ubuntu0.1) over (5.2.2-1.3) ...
Preparing to unpack .../10-libkeyutils1_1.5.9-9.2ubuntu2.1_amd64.deb ...
Unpacking libkeyutils1:amd64 (1.5.9-9.2ubuntu2.1) over (1.5.9-9.2ubuntu2) ...
Preparing to unpack .../11-libssl1.0.0_1.0.2n-1ubuntu5.8_amd64.deb ...
Unpacking libssl1.0.0:amd64 (1.0.2n-1ubuntu5.8) over (1.0.2n-1ubuntu5.7) ...
Preparing to unpack .../12-rsync_3.1.2-2.1ubuntu1.4_amd64.deb ...
Unpacking rsync (3.1.2-2.1ubuntu1.4) over (3.1.2-2.1ubuntu1.3) ...
Preparing to unpack .../13-git_1%3a2.36.0-0ppa1ubuntu18.04.1_amd64.deb ...
Unpacking git (1:2.36.0-0ppa1
ubuntu18.04.1) over (1:2.35.1-0ppa1ubuntu18.04.1) ...
Preparing to unpack .../14-git-man_1%3a2.36.0-0ppa1
ubuntu18.04.1_all.deb ...
Unpacking git-man (1:2.36.0-0ppa1ubuntu18.04.1) over (1:2.35.1-0ppa1ubuntu18.04.1) ...
Preparing to unpack .../15-java-1.8.0-amazon-corretto-jdk_1%3a8.332.08-1_amd64.deb ...
Unpacking java-1.8.0-amazon-corretto-jdk:amd64 (1:8.332.08-1) over (1:8.322.06-2) ...
Preparing to unpack .../16-java-11-amazon-corretto-jdk_1%3a11.0.15.9-1_amd64.deb ...
Unpacking java-11-amazon-corretto-jdk:amd64 (1:11.0.15.9-1) over (1:11.0.14.10-1) ...
Preparing to unpack .../17-lib32z1_1%3a1.2.11.dfsg-0ubuntu2.1_amd64.deb ...
Unpacking lib32z1 (1:1.2.11.dfsg-0ubuntu2.1) over (1:1.2.11.dfsg-0ubuntu2) ...
Preparing to unpack .../18-libxml2-utils_2.9.4+dfsg1-6.1ubuntu1.5_amd64.deb ...
Unpacking libxml2-utils (2.9.4+dfsg1-6.1ubuntu1.5) over (2.9.4+dfsg1-6.1ubuntu1.4) ...
Preparing to unpack .../19-linux-libc-dev_4.15.0-176.185_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.15.0-176.185) over (4.15.0-171.180) ...
Preparing to unpack .../20-yarn_1.22.18-1_all.deb ...
Unpacking yarn (1.22.18-1) over (1.22.17-1) ...
Setting up git-man (1:2.36.0-0ppa1~ubuntu18.04.1) ...
Setting up libssl1.0.0:amd64 (1.0.2n-1ubuntu5.8) ...
Setting up tzdata (2022a-0ubuntu0.18.04) ...

Current default time zone: 'Etc/UTC'
Local time is now: Tue Apr 19 20:29:39 UTC 2022.
Universal Time is now: Tue Apr 19 20:29:39 UTC 2022.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Setting up yarn (1.22.18-1) ...
Setting up linux-libc-dev:amd64 (4.15.0-176.185) ...
Setting up libxml2:amd64 (2.9.4+dfsg1-6.1ubuntu1.5) ...
Setting up java-11-amazon-corretto-jdk:amd64 (1:11.0.15.9-1) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/java because link group java is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/keytool because link group keytool is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/rmid because link group rmid is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/rmiregistry because link group rmiregistry is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/jjs because link group jjs is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/pack200 because link group pack200 is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/unpack200 because link group unpack200 is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/javac because link group javac is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/jar because link group jar is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/jarsigner because link group jarsigner is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/javadoc because link group javadoc is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/javap because link group javap is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/jcmd because link group jcmd is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/jconsole because link group jconsole is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/jdb because link group jdb is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/jdeps because link group jdeps is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/jinfo because link group jinfo is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/jmap because link group jmap is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/jps because link group jps is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/jrunscript because link group jrunscript is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/jstack because link group jstack is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/jstat because link group jstat is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/jstatd because link group jstatd is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/rmic because link group rmic is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/java-11-amazon-corretto/bin/serialver because link group serialver is broken
Setting up libxml2-dev:amd64 (2.9.4+dfsg1-6.1ubuntu1.5) ...
Setting up rsync (3.1.2-2.1ubuntu1.4) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up libssl1.1:amd64 (1.1.1-1ubuntu2.118.04.15) ...
Setting up xz-utils (5.2.2-1.3ubuntu0.1) ...
Setting up openssl (1.1.1-1ubuntu2.1
18.04.15) ...
Setting up lib32z1 (1:1.2.11.dfsg-0ubuntu2.1) ...
Setting up google-chrome-stable (100.0.4896.127-1) ...
Setting up liblzma-dev:amd64 (5.2.2-1.3ubuntu0.1) ...
Setting up libkeyutils1:amd64 (1.5.9-9.2ubuntu2.1) ...
Setting up libpython2.7-minimal:amd64 (2.7.17-118.04ubuntu1.7) ...
Setting up git (1:2.36.0-0ppa1
ubuntu18.04.1) ...
Setting up libpython2.7-stdlib:amd64 (2.7.17-1~18.04ubuntu1.7) ...
Setting up java-1.8.0-amazon-corretto-jdk:amd64 (1:8.332.08-1) ...

Configuration file '/usr/lib/jvm/java-1.8.0-amazon-corretto/jre/lib/security/policy/limited/local_policy.jar'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** local_policy.jar (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package java-1.8.0-amazon-corretto-jdk:amd64 (--configure):
end of file on stdin at conffile prompt
Setting up python2.7-minimal (2.7.17-118.04ubuntu1.7) ...
update-binfmts: warning: Couldn't load the binfmt_misc module.
Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-0ubuntu2.1) ...
Setting up libssl-dev:amd64 (1.1.1-1ubuntu2.1
18.04.15) ...
Setting up libxml2-utils (2.9.4+dfsg1-6.1ubuntu1.5) ...
Setting up python2.7 (2.7.17-118.04ubuntu1.7) ...
Setting up libpython3.6-minimal:amd64 (3.6.9-1
18.04ubuntu1.7) ...
Setting up libpython3.6-stdlib:amd64 (3.6.9-118.04ubuntu1.7) ...
Setting up python3.6-minimal (3.6.9-1
18.04ubuntu1.7) ...
update-binfmts: warning: Couldn't load the binfmt_misc module.
Setting up libpython3.6:amd64 (3.6.9-118.04ubuntu1.7) ...
Setting up python3.6 (3.6.9-1
18.04ubuntu1.7) ...
Processing triggers for libc-bin (2.27-3ubuntu1.5) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
java-1.8.0-amazon-corretto-jdk:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

[Container] 2022/04/19 20:29:48 Command did not exit successfully apt-get update && apt-get upgrade -y exit status 100
[Container] 2022/04/19 20:29:48 Phase complete: INSTALL State: FAILED
[Container] 2022/04/19 20:29:48 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: apt-get update && apt-get upgrade -y. Reason: exit status 100

@sboonyakiatACR
Copy link

snebhu3

Workaround from @snebhu3 works

@schwinbp
Copy link

@snebhu3 thanks for workaround!

@Eelviny
Copy link

Eelviny commented Apr 20, 2022

Workaround is good - thanks @snebhu3

@snebhu3
Copy link
Author

snebhu3 commented Apr 21, 2022

We have released v2.3.0 which resolves this issue.

@snebhu3 snebhu3 closed this as completed Apr 21, 2022
@balltrev balltrev unpinned this issue Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants