Hi,
I have a script that is used to deploy our containers to balena Cloud and uit stopped working for some reason. I’ve got some information from output.log
:
…
…
53 ^[[3A^[[0J^[[2K^M[Build] Building services… \
52 ^[[2K^M[Build] ecoationROS Successfully tagged basestation_ecoationros:latest
51 ^[[2K^M[Build] UniFiController [========> ] 42% Step 8/19: or been moved out of Incoming.
50 ^[[3A^[[0J^[[2K^M[Build] Building services… |
49 ^[[2K^M[Build] ecoationROS Successfully tagged basestation_ecoationros:latest
48 ^[[2K^M[Build] UniFiController [========> ] 42% Step 8/19: E: Unable to correct problems, you have held broken packages.
47 ^[[3A^[[0J^[[2K^M[Build] Building services… /
46 ^[[2K^M[Build] ecoationROS Successfully tagged basestation_ecoationros:latest
45 ^[[2K^M[Build] UniFiController [========> ] 42% Step 8/19: E: Unable to correct problems, you have held broken packages.
44 ^[[3A^[[0J^[[2K^M[Build] Building services… -
43 ^[[2K^M[Build] ecoationROS Successfully tagged basestation_ecoationros:latest
42 ^[[2K^M[Build] UniFiController [========> ] 42% Step 8/19: E: Unable to correct problems, you have held broken packages.
41 ^[[3A^[[0J^[[2K^M[Build] Built 2 services in 0:51
40 ^[[2K^M[Build] ecoationROS Successfully tagged basestation_ecoationros:latest
39 ^[[2K^M[Build] UniFiController [========> ] 42% Step 8/19: E: Unable to correct problems, you have held broken packages.
38 ^[[?25h[Error] Deploy failed
37 The command ‘/bin/sh -c apt-get update && apt-get install -y --allow-unauthenticated --no-install-recommends curl=7.47.0-1ubuntu2.14 wget=1.17.1-1ubuntu1.5 net-tools=1.60-26ubuntu1 openssh-server=1:7.2p2-4ubuntu2.8 && apt-get clean && rm -r f /var/cache/apt && rm -rf /var/lib/apt/lists/’ returned a non-zero code: 100
36 Error: The command '/bin/sh -c apt-get update && apt-get install -y --allow-unauthenticated --no-install-recommends curl=7.47.0-1ubuntu2.14 wget=1.17.1-1ubuntu1.5 net-tools=1.60-26ubuntu1 openssh-server=1:7.2p2-4ubuntu2.8 && apt-get clean && rm -rf /var/cache/apt && rm -rf /var/lib/apt/lists/’ returned a non-zero code: 100
The apt lines tht throw an error 100 are correct I think, they are not the cause for the error, are they?
The above UniFi Controller messages seem troublesome though
Hi,
Can you provide a little more information about your script? Are you doing a balena push <app-name>
to build and deploy your application or are you running some preliminary steps (not included in your Dockerfile.template or docker-compose.yml? On the surface, it looks like one or more packages are not installing correctly, which is breaking later steps of the build.
John
The deployment step looks like:
echo "Deploying Release ${GIT_TAG_VERSION} to ${APP}"
34 source ROS/versions/VERSIONS_${MACHINE} && \
35 rm docker-compose.yml -rf && \
36 GIT_TAG_VERSION=${GIT_TAG_VERSION} \
37 envsubst < "docker-compose-template-${MACHINE_LOWERCASE}.yml" > "docker-compose.yml" && \
38 DEBUG=1 balena deploy ${APP} --projectName ${MACHINE} --tag ${APP_TAG} --build 2>&1 | tee ${OUTFILE}
Executing the script, I get the following on stdout:
$ ./deploy_balena_app BASESTATION BS-Stage-Alpha
tagged LCDUpdate.20.07.1.RC.6
Deploying Release LCDUpdate.20.07.1.RC.6@5694fa3 to BS-Stage-Alpha
[debug] original argv0="balena" argv=[/home/ubuntu/common/balena-cli/balena,/snapshot/versioned-source/bin/balena,deploy,BS-Stage-Alpha,--projectName,BASESTATION,--tag,0.1.16-RC.6,--build] length=9
[Debug] Parsing input...
[Debug] Loading project...
[Debug] Resolving project...
[Info] Compose file detected
[Debug] Creating project...
[Info] Building for amd64/intel-nuc
[Debug] Found build tasks:.. -
[Debug] ecoationROS: build [./ROS/app/ecoation-basestation-app]
[Debug] UniFiController: build [./UNIFI_CONTROLLER/app/unifi-controller-app]
[Debug] Resolving services with [intel-nuc|amd64]
[Debug] Found project types:
[Debug] ecoationROS: Standard Dockerfile
[Debug] UniFiController: Standard Dockerfile
[Debug] Prepared tasks; building...
[Build] Building services... /
[Build] Building services... -
[Build] Built 2 services in 0:51
[Build] ecoationROS Successfully tagged basestation_ecoationros:latest
[Build] UniFiController [========> ] 42% Step 8/19: E: Unable to correct problems, you have held broken packages.
[Error] Deploy failed
The command '/bin/sh -c apt-get update && apt-get install -y --allow-unauthenticated --no-install-recommends curl=7.47.0-1ubuntu2.14 wget=1.17.1-1ubuntu1.5 net-tools=1.60-26ubuntu1 openssh-server=1:7.2p2-4ubuntu2.8 && apt-get clean && rm -rf /var/cache/apt && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
Error: The command '/bin/sh -c apt-get update && apt-get install -y --allow-unauthenticated --no-install-recommends curl=7.47.0-1ubuntu2.14 wget=1.17.1-1ubuntu1.5 net-tools=1.60-26ubuntu1 openssh-server=1:7.2p2-4ubuntu2.8 && apt-get clean && rm -rf /var/cache/apt && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
at Stream.<anonymous> (/snapshot/versioned-source/node_modules/resin-docker-build/build/builder.js:178:23)
at Stream.stream.write (/snapshot/versioned-source/node_modules/through/index.js:26:11)
at Stream.ondata (internal/streams/legacy.js:15:31)
at Stream.emit (events.js:189:13)
at Stream.EventEmitter.emit (domain.js:441:20)
at drain (/snapshot/versioned-source/node_modules/through/index.js:36:16)
at Stream.stream.queue.stream.push (/snapshot/versioned-source/node_modules/through/index.js:45:5)
at Parser.exports.parse.parser.onToken (/snapshot/versioned-source/node_modules/JSONStream/index.js:132:18)
at Parser.proto.write (/snapshot/versioned-source/node_modules/jsonparse/jsonparse.js:135:34)
at Stream.<anonymous> (/snapshot/versioned-source/node_modules/JSONStream/index.js:23:12)
at Stream.stream.write (/snapshot/versioned-source/node_modules/through/index.js:26:11)
at IncomingMessage.ondata (_stream_readable.js:689:20)
at IncomingMessage.emit (events.js:189:13)
at IncomingMessage.EventEmitter.emit (domain.js:441:20)
at addChunk (_stream_readable.js:284:12)
at readableAddChunk (_stream_readable.js:265:11)
at IncomingMessage.Readable.push (_stream_readable.js:220:10)
at HTTPParser.parserOnBody (_http_common.js:122:22)
at Socket.socketOnData (_http_client.js:442:20)
at Socket.emit (events.js:189:13)
at Socket.EventEmitter.emit (domain.js:441:20)
at addChunk (_stream_readable.js:284:12)
at readableAddChunk (_stream_readable.js:265:11)
at Socket.Readable.push (_stream_readable.js:220:10)
at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
at createBuildStream.Bluebird.try.then (/snapshot/versioned-source/node_modules/resin-docker-build/build/builder.js:72:20)
at Builder.createBuildStream (/snapshot/versioned-source/node_modules/resin-docker-build/build/builder.js:71:97)
at Promise (/snapshot/versioned-source/node_modules/resin-multibuild/build/build.js:82:17)
at Object.runBuildTask (/snapshot/versioned-source/node_modules/resin-multibuild/build/build.js:59:12)
at /snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:157:34
at Generator.next (<anonymous>)
at __awaiter (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:8:71)
at new Promise (<anonymous>)
at __awaiter (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:4:12)
at performSingleBuild (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:155:12)
at Bluebird.map (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:140:20)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at process.topLevelDomainCallback (domain.js:120:23)
at Object.<anonymous> (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:139:39)
at Generator.next (<anonymous>)
at fulfilled (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:5:58)
From previous event:
at runCommand (/snapshot/versioned-source/build/app-capitano.js:181:14)
at Object.exports.run (/snapshot/versioned-source/build/app-capitano.js:193:39)
at routeCliFramework (/snapshot/versioned-source/build/preparser.js:39:79)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (pkg/prelude/bootstrap.js:1322:13)
at startup (internal/bootstrap/node.js:320:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:659:3)
If you need help, don't hesitate in contacting our support forums at
https://forums.balena.io
it definitely seems to be the UniFiController that’s causing me grief!
on stdout it looks like:
$ ./deploy_balena_app BASESTATION BS-Stage-Alpha
tagged LCDUpdate.20.07.1.RC.6
Deploying Release LCDUpdate.20.07.1.RC.6@5694fa3 to BS-Stage-Alpha
[debug] original argv0="balena" argv=[/home/ubuntu/common/balena-cli/balena,/snapshot/versioned-source/bin/balena,deploy,BS-Stage-Alpha,--projectName,BASESTATION,--tag,0.1.16-RC.6,--build] length=9
[Debug] Parsing input...
[Debug] Loading project...
[Debug] Resolving project...
[Info] Compose file detected
[Debug] Creating project...
[Info] Building for amd64/intel-nuc
[Debug] Found build tasks:.. -
[Debug] ecoationROS: build [./ROS/app/ecoation-basestation-app]
[Debug] UniFiController: build [./UNIFI_CONTROLLER/app/unifi-controller-app]
[Debug] Resolving services with [intel-nuc|amd64]
[Debug] Found project types:
[Debug] ecoationROS: Standard Dockerfile
[Debug] UniFiController: Standard Dockerfile
[Debug] Prepared tasks; building...
[Build] Building services... /
[Build] Building services... -
[Build] Built 2 services in 0:51
[Build] ecoationROS Successfully tagged basestation_ecoationros:latest
[Build] UniFiController [========> ] 42% Step 8/19: E: Unable to correct problems, you have held broken packages.
[Error] Deploy failed
The command '/bin/sh -c apt-get update && apt-get install -y --allow-unauthenticated --no-install-recommends curl=7.47.0-1ubuntu2.14 wget=1.17.1-1ubuntu1.5 net-tools=1.60-26ubuntu1 openssh-server=1:7.2p2-4ubuntu2.8 && apt-get clean && rm -rf /var/cache/apt && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
Error: The command '/bin/sh -c apt-get update && apt-get install -y --allow-unauthenticated --no-install-recommends curl=7.47.0-1ubuntu2.14 wget=1.17.1-1ubuntu1.5 net-tools=1.60-26ubuntu1 openssh-server=1:7.2p2-4ubuntu2.8 && apt-get clean && rm -rf /var/cache/apt && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
at Stream.<anonymous> (/snapshot/versioned-source/node_modules/resin-docker-build/build/builder.js:178:23)
at Stream.stream.write (/snapshot/versioned-source/node_modules/through/index.js:26:11)
at Stream.ondata (internal/streams/legacy.js:15:31)
at Stream.emit (events.js:189:13)
at Stream.EventEmitter.emit (domain.js:441:20)
at drain (/snapshot/versioned-source/node_modules/through/index.js:36:16)
at Stream.stream.queue.stream.push (/snapshot/versioned-source/node_modules/through/index.js:45:5)
at Parser.exports.parse.parser.onToken (/snapshot/versioned-source/node_modules/JSONStream/index.js:132:18)
at Parser.proto.write (/snapshot/versioned-source/node_modules/jsonparse/jsonparse.js:135:34)
at Stream.<anonymous> (/snapshot/versioned-source/node_modules/JSONStream/index.js:23:12)
at Stream.stream.write (/snapshot/versioned-source/node_modules/through/index.js:26:11)
at IncomingMessage.ondata (_stream_readable.js:689:20)
at IncomingMessage.emit (events.js:189:13)
at IncomingMessage.EventEmitter.emit (domain.js:441:20)
at addChunk (_stream_readable.js:284:12)
at readableAddChunk (_stream_readable.js:265:11)
at IncomingMessage.Readable.push (_stream_readable.js:220:10)
at HTTPParser.parserOnBody (_http_common.js:122:22)
at Socket.socketOnData (_http_client.js:442:20)
at Socket.emit (events.js:189:13)
at Socket.EventEmitter.emit (domain.js:441:20)
at addChunk (_stream_readable.js:284:12)
at readableAddChunk (_stream_readable.js:265:11)
at Socket.Readable.push (_stream_readable.js:220:10)
at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
at createBuildStream.Bluebird.try.then (/snapshot/versioned-source/node_modules/resin-docker-build/build/builder.js:72:20)
at Builder.createBuildStream (/snapshot/versioned-source/node_modules/resin-docker-build/build/builder.js:71:97)
at Promise (/snapshot/versioned-source/node_modules/resin-multibuild/build/build.js:82:17)
at Object.runBuildTask (/snapshot/versioned-source/node_modules/resin-multibuild/build/build.js:59:12)
at /snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:157:34
at Generator.next (<anonymous>)
at __awaiter (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:8:71)
at new Promise (<anonymous>)
at __awaiter (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:4:12)
at performSingleBuild (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:155:12)
at Bluebird.map (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:140:20)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at process.topLevelDomainCallback (domain.js:120:23)
at Object.<anonymous> (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:139:39)
at Generator.next (<anonymous>)
at fulfilled (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:5:58)
From previous event:
at runCommand (/snapshot/versioned-source/build/app-capitano.js:181:14)
at Object.exports.run (/snapshot/versioned-source/build/app-capitano.js:193:39)
at routeCliFramework (/snapshot/versioned-source/build/preparser.js:39:79)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (pkg/prelude/bootstrap.js:1322:13)
at startup (internal/bootstrap/node.js:320:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:659:3)
If you need help, don't hesitate in contacting our support forums at
https://forums.balena.io
Executing the script, I get the following on stdout:
$ ./deploy_balena_app BASESTATION BS-Stage-Alpha
tagged LCDUpdate.20.07.1.RC.6
Deploying Release LCDUpdate.20.07.1.RC.6@5694fa3 to BS-Stage-Alpha
[debug] original argv0="balena" argv=[/home/ubuntu/common/balena-cli/balena,/snapshot/versioned-source/bin/balena,deploy,BS-Stage-Alpha,--projectName,BASESTATION,--tag,0.1.16-RC.6,--build] length=9
[Debug] Parsing input...
[Debug] Loading project...
[Debug] Resolving project...
[Info] Compose file detected
[Debug] Creating project...
[Info] Building for amd64/intel-nuc
[Debug] Found build tasks:.. -
[Debug] ecoationROS: build [./ROS/app/ecoation-basestation-app]
[Debug] UniFiController: build [./UNIFI_CONTROLLER/app/unifi-controller-app]
[Debug] Resolving services with [intel-nuc|amd64]
[Debug] Found project types:
[Debug] ecoationROS: Standard Dockerfile
[Debug] UniFiController: Standard Dockerfile
[Debug] Prepared tasks; building...
[Build] Building services... /
[Build] Building services... -
[Build] Built 2 services in 0:51
[Build] ecoationROS Successfully tagged basestation_ecoationros:latest
[Build] UniFiController [========> ] 42% Step 8/19: E: Unable to correct problems, you have held broken packages.
[Error] Deploy failed
The command '/bin/sh -c apt-get update && apt-get install -y --allow-unauthenticated --no-install-recommends curl=7.47.0-1ubuntu2.14 wget=1.17.1-1ubuntu1.5 net-tools=1.60-26ubuntu1 openssh-server=1:7.2p2-4ubuntu2.8 && apt-get clean && rm -rf /var/cache/apt && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
Error: The command '/bin/sh -c apt-get update && apt-get install -y --allow-unauthenticated --no-install-recommends curl=7.47.0-1ubuntu2.14 wget=1.17.1-1ubuntu1.5 net-tools=1.60-26ubuntu1 openssh-server=1:7.2p2-4ubuntu2.8 && apt-get clean && rm -rf /var/cache/apt && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
at Stream.<anonymous> (/snapshot/versioned-source/node_modules/resin-docker-build/build/builder.js:178:23)
at Stream.stream.write (/snapshot/versioned-source/node_modules/through/index.js:26:11)
at Stream.ondata (internal/streams/legacy.js:15:31)
at Stream.emit (events.js:189:13)
at Stream.EventEmitter.emit (domain.js:441:20)
at drain (/snapshot/versioned-source/node_modules/through/index.js:36:16)
at Stream.stream.queue.stream.push (/snapshot/versioned-source/node_modules/through/index.js:45:5)
at Parser.exports.parse.parser.onToken (/snapshot/versioned-source/node_modules/JSONStream/index.js:132:18)
at Parser.proto.write (/snapshot/versioned-source/node_modules/jsonparse/jsonparse.js:135:34)
at Stream.<anonymous> (/snapshot/versioned-source/node_modules/JSONStream/index.js:23:12)
at Stream.stream.write (/snapshot/versioned-source/node_modules/through/index.js:26:11)
at IncomingMessage.ondata (_stream_readable.js:689:20)
at IncomingMessage.emit (events.js:189:13)
at IncomingMessage.EventEmitter.emit (domain.js:441:20)
at addChunk (_stream_readable.js:284:12)
at readableAddChunk (_stream_readable.js:265:11)
at IncomingMessage.Readable.push (_stream_readable.js:220:10)
at HTTPParser.parserOnBody (_http_common.js:122:22)
at Socket.socketOnData (_http_client.js:442:20)
at Socket.emit (events.js:189:13)
at Socket.EventEmitter.emit (domain.js:441:20)
at addChunk (_stream_readable.js:284:12)
at readableAddChunk (_stream_readable.js:265:11)
at Socket.Readable.push (_stream_readable.js:220:10)
at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
at createBuildStream.Bluebird.try.then (/snapshot/versioned-source/node_modules/resin-docker-build/build/builder.js:72:20)
at Builder.createBuildStream (/snapshot/versioned-source/node_modules/resin-docker-build/build/builder.js:71:97)
at Promise (/snapshot/versioned-source/node_modules/resin-multibuild/build/build.js:82:17)
at Object.runBuildTask (/snapshot/versioned-source/node_modules/resin-multibuild/build/build.js:59:12)
at /snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:157:34
at Generator.next (<anonymous>)
at __awaiter (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:8:71)
at new Promise (<anonymous>)
at __awaiter (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:4:12)
at performSingleBuild (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:155:12)
at Bluebird.map (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:140:20)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at process.topLevelDomainCallback (domain.js:120:23)
at Object.<anonymous> (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:139:39)
at Generator.next (<anonymous>)
at fulfilled (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:5:58)
From previous event:
at runCommand (/snapshot/versioned-source/build/app-capitano.js:181:14)
at Object.exports.run (/snapshot/versioned-source/build/app-capitano.js:193:39)
at routeCliFramework (/snapshot/versioned-source/build/preparser.js:39:79)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (pkg/prelude/bootstrap.js:1322:13)
at startup (internal/bootstrap/node.js:320:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:659:3)
If you need help, don't hesitate in contacting our support forums at
https://forums.balena.io
Looking at this, I’d presume there are unresolved dependencies with the specific package versions you’re trying to install in apt-get update && apt-get install -y --allow-unauthenticated --no-install-recommends curl=7.47.0-1ubuntu2.14 wget=1.17.1-1ubuntu1.5 net-tools=1.60-26ubuntu1 openssh-server=1:7.2p2-4ubuntu2.8
. I notice you’re suppressing recommended packages with --no-install-recommends
. You might start by removing that flag. You can also do apt info <package>=version
to see full dependencies, etc.
John
1 Like
Okay, with apt show
I found out that curl=7.47.0-1ubuntu2.14
seems to have been replaced by curl=7.47.0-1ubuntu2.15
but the remaining packages do seemingly still exist. I however still get
[Build] UniFiController [========> ] 42% Step 8/19: E: Unable to correct problems, you have held broken packages.
while that piece of my Dockerfile looks like:
# UNIFI_CONTROLLER
# |-unifi-controller-app
# use run variant for a minimal variant with only runtime essentials packaged into it
ARG version=0.1.0
FROM balenalib/intel-nuc-ubuntu:xenial-run-20190927
# Set noninteractive for apt-get installs
RUN echo "debconf debconf/frontend select Noninteractive" | debconf-set-selections
COPY ./start.sh /
RUN chmod +x start.sh
COPY ./mount_hdd.sh /
RUN chmod +x mount_hdd.sh
# Install essential packages for UniFi Controller
#RUN apt-get update && apt-get install -y --allow-unauthenticated --no-install-recommends \
RUN apt-get update && apt-get install -y --allow-unauthenticated \
curl=7.47.0-1ubuntu2.15 \
wget=1.17.1-1ubuntu1.5 \
net-tools=1.60-26ubuntu1 \
openssh-server=1:7.2p2-4ubuntu2.8 \
&& apt-get clean && \
rm -rf /var/cache/apt && \
rm -rf /var/lib/apt/lists/*
If you try removing --no-install-recommends
you’ll at least see output of what else is being installed as dependencies for your main packages. Once you determine those, you can add them in and then restore --no-install-recommends
.
John
I have replaced
RUN apt-get update && apt-get install -y --allow-unauthenticated --no-install-recommends \
by
RUN apt-get update && apt-get install -y --allow-unauthenticated \
the line with --no-install-recommends
is commented out but I still only see:
[Build] UniFiController [========> ] 42% Step 8/19: E: Unable to correct problems, you have held broken packages.
[Error] Deploy failed
The command '/bin/sh -c apt-get update && apt-get install -y --allow-unauthenticated curl=7.47.0-1ubuntu2.15 wget=1.17.1-1ubuntu1.5 net-tools=1.60-26ubuntu1 openssh-server=1:7.2p2-4ubuntu2.8 && apt-get clean && rm -rf /var/cache/apt && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
Error: The command '/bin/sh -c apt-get update && apt-get install -y --allow-unauthenticated curl=7.47.0-1ubuntu2.15 wget=1.17.1-1ubuntu1.5 net-tools=1.60-26ubuntu1 openssh-server=1:7.2p2-4ubuntu2.8 && apt-get clean && rm -rf /var/cache/apt && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
Are you able to confirm that all the versions you’re looking to install are available (and compatible)?
John
I have verified with apt show
only, des this suffice?
apt show curl=7.47.0-1ubuntu2.15
apt show wget=1.17.1-1ubuntu1.5
apt show net-tools=1.60-26ubuntu1
apt show openssh-server=1:7.2p2-4ubuntu2.8
And all these packages seem to be available. What else could be the problem?
How else can I verify compatibility?
I’m now getting:
[Build] UniFiController [========> ] 42% Step 8/19: E: Unable to correct problems, you have held broken packages.
[Error] Deploy failed
The command '/bin/sh -c apt-get update && apt-get install -y --allow-unauthenticated curl=7.47.0-1ubuntu2.15 wget=1.17.1-1ubuntu1.5 net-tools=1.60-26ubuntu1 openssh-server=1:7.2p2-4ubuntu2.8 && apt-get clean && rm -rf /var/cache/apt && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
Error: The command '/bin/sh -c apt-get update && apt-get install -y --allow-unauthenticated curl=7.47.0-1ubuntu2.15 wget=1.17.1-1ubuntu1.5 net-tools=1.60-26ubuntu1 openssh-server=1:7.2p2-4ubuntu2.8 && apt-get clean && rm -rf /var/cache/apt && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
Ah okay, I now entered the directory where my Dockerfile
is and just did a docker build .
and I got a bit more info now:
The following packages have unmet dependencies:
openssh-server : Depends: openssh-client (= 1:7.2p2-4ubuntu2.8) but 1:7.2p2-4ubuntu2.10 is to be installed
Recommends: xauth but it is not going to be installed
Recommends: ncurses-term but it is not going to be installed
Recommends: ssh-import-id but it is not going to be installed
E: Unable to correct problems, you have held broken packages
Hi
Is one of the script that you are running in your dockerfile, adding a PPA for Unifi’s controller? I am trying to figure if there were any apt related changes that happened that aren’t in the dockerfile directly
Also, can you point to the installation instructions for Unifi controller that you are looking at
I am interested to see inside the bash scripts that you are running as part of your dockerfile as well. Is it possible to share them?