Closed kykc closed 4 months ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
You should be able to bypass that missing package by adding --ignore-missing
when running apt.
Also, worth mentioning you don't need to create a dockerfile just to add in net-tools when we have this: https://github.com/linuxserver/docker-mods/tree/universal-package-install
All of the available options are bad, but it's unfortunately the way they package the software and the way apt operates.
You should be able to bypass that missing package by adding
--ignore-missing
when running apt.
Sadly, no luck
root@2c73653608eb:/usr/lib/unifi# apt install --ignore-missing -y net-tools
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
unifi : Depends: mongodb-server (>= 1:3.6.0) but it is not installable or
mongodb-10gen (>= 3.6.0) but it is not installable or
mongodb-org-server (>= 3.6.0) but it is not installable
Depends: mongodb-server (< 1:5.0.0) but it is not installable or
mongodb-10gen (< 5.0.0) but it is not installable or
mongodb-org-server (< 5.0.0) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
FYI deb package dependency on mongodb-server
can be amended prior to installation of the package during image build like this:
RUN mkdir /tmp/control
RUN ar -p /tmp/unifi.deb control.tar.gz | tar -xvz -C /tmp/control
RUN sed -i '/^ mongodb-server/d' /tmp/control/control
RUN tar -cvzf /tmp/control.tar.gz -C /tmp/control .
RUN ar -r /tmp/unifi.deb /tmp/control.tar.gz
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
Looking to try and fix this by installing from their zip bundle rather than deb repo package in https://github.com/linuxserver/docker-unifi-network-application/pull/67. We don't want to screw with the deb package to edit the deps because it's liable to break unexpectedly in the future.
You're welcome to test once the PR build finishes and see if it works properly for you.
Is there an existing issue for this?
Current Behavior
In its current state packages cannot be installed using
apt
.Expected Behavior
Being able to install packages inside the container or extending
Dockerfile
Steps To Reproduce
Dockerfile
docker build .
Environment
CPU architecture
x86-64
Docker creation
Container logs