By using AWS re:Post, you agree to the Terms of Use

Upgrade LZ to v2.4.4 - Java 1.8.0 error


Trying to upgrade LZ to V2.4.4 but getting stuck in the first step of the codebuild (container configuration). It seems that is using an OS image that is crashing due packages during the process. At the moment apt-get upgrade is trying to install a newer version of java JDK, which's requiring a manual interaction not mapped (potentially causing the error bellow):

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

That causes Google Chrome packages to fail, further down the line.

Errors were encountered while processing:
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
E: Sub-process /usr/bin/dpkg returned an error code (1)

First of all, not sure why AWS still using apt-get instead of APT to manage packages and further more using Chrome packages to containers executions.

Anyway, have anyone faced and fixed this?


asked 5 months ago13 views