[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

debugging apt-get



I'm trying to build a docker image containing a debian package I just created locally.

I'm thus running the command `apt-get update && apt-get install -y ./X.deb` from my dockerfile. This command fails with the message

...

The following packages have unmet dependencies:
 X : Depends: Y (= 1.0.3) but it is not going to be installed

...

However, if I run `apt-get update && apt-get install Y=1.0.3` first, the build completes successfully. What could cause this behaviour ? Why would `apt-get` not be able to install a prerequisite package, when installing it explicitly works ?

Is there a way to debug this, i.e. have `apt-get` produce more verbose output that indicates *why* the prerequisite package is not going to be installed ?

(I'm running on Ubuntu 20.04, using apt-get=2.0.6)

Thanks,


Reply to: