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

Re: debugging apt-get




On 2022-10-15 01:27, Johannes Schauer Marin Rodrigues wrote:
Hi,

Quoting Stefan Seefeld (2022-10-15 00:10:14)
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 ?
most likely because 1.0.3 is not the candidate version of Y. What is the output
of this command:

apt-cache policy Y

```

user@9c4903b5942b:~$ apt-cache policy Y
Y:
 Installed: (none)
 Candidate: 1.0.3
 Version table:
    1.0.3 500
       500 repo focal/main amd64 Packages
    1.0.1 500
       500 repo focal/main amd64 Packages

```


      
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 ?
Sure! Run apt with these options:

 -oDebug::pkgProblemResolver=true
 -oDebug::pkgDepCache::Marker=1
 -oDebug::pkgDepCache::AutoInstall=1

OK, here is the output of that. In my initial report I used "X" and "Y" as a placeholder. The actual package I'm trying to install is called  "tnav-service-tools". Thus, the full command - including debug options - reads:

```

sudo apt-get update && sudo apt-get install -oDebug::pkgProblemResolver=true  -oDebug::pkgDepCache::Marker=1  -oDebug::pkgDepCach
e::AutoInstall=1 ./workspace/tnav-service-tools_0.0.0_amd64.deb

```

And it produces the attached output. Can you please help me interpret the output ?

For further context: in our setup we have two debian package repos configured - both hosted by an artifactory instance. One is a caching proxy called "debian-upstream", the other is an in-house repo hosting in-house packages, called "debian-stable".


Thanks !

Stefan
-- 

      ...ich hab' noch einen Koffer in Berlin...
Hit:1 https://artifacts.thinksurgical.com/artifactory/debian-upstream focal InRelease
Get:2 https://artifacts.thinksurgical.com/artifactory/debian-upstream focal-security InRelease [114 kB]
Get:3 https://artifacts.thinksurgical.com/artifactory/debian-upstream focal-updates InRelease [114 kB]
Get:4 https://artifacts.thinksurgical.com/artifactory/debian-stable focal InRelease [2,391 B]
Ign:4 https://artifacts.thinksurgical.com/artifactory/debian-stable focal InRelease    
Get:5 https://artifacts.thinksurgical.com/artifactory/debian-upstream focal-security/universe amd64 Packages [918 kB]
Get:6 https://artifacts.thinksurgical.com/artifactory/debian-upstream focal-security/main amd64 Packages [2,223 kB]
Get:7 https://artifacts.thinksurgical.com/artifactory/debian-upstream focal-updates/universe amd64 Packages [1,216 kB]
Get:8 https://artifacts.thinksurgical.com/artifactory/debian-upstream focal-updates/main amd64 Packages [2,689 kB]
Fetched 7,276 kB in 5s (1,538 kB/s)                        
Reading package lists... Done
W: GPG error: https://artifacts.thinksurgical.com/artifactory/debian-stable focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9C02A42828F7DE11
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'tnav-service-tools' instead of './workspace/tnav-service-tools_0.0.0_amd64.deb'
  tnav-service-tools:amd64 Depends on think-navigation:amd64 < none | 1.0.6 @un uH > (= 1.0.5) can't be satisfied!
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) tnav-service-tools:amd64 < none -> 0.0.0 @un puN Ib >
Broken tnav-service-tools:amd64 Depends on tsi-qt:amd64 < none | 5.15.10-1 @un uH > (= 5.15.10-1)
  Considering tsi-qt:amd64 0 as a solution to tnav-service-tools:amd64 9999
  Re-Instated libdrm-common:amd64
  Re-Instated libdrm2:amd64
  Re-Instated libglvnd0:amd64
  Re-Instated libglapi-mesa:amd64
  Re-Instated libx11-xcb1:amd64
  Re-Instated libxcb-dri2-0:amd64
  Re-Instated libxcb-dri3-0:amd64
  Re-Instated libxcb-glx0:amd64
  Re-Instated libxcb-present0:amd64
  Re-Instated libxcb-shm0:amd64
  Re-Instated libxcb-sync1:amd64
  Re-Instated libxcb-xfixes0:amd64
  Re-Instated libxfixes3:amd64
  Re-Instated libxshmfence1:amd64
  Re-Instated libxxf86vm1:amd64
  Re-Instated libdrm-amdgpu1:amd64
  Re-Instated libpciaccess0:amd64
  Re-Instated libdrm-intel1:amd64
  Re-Instated libdrm-nouveau2:amd64
  Re-Instated libdrm-radeon1:amd64
  Re-Instated libllvm12:amd64
  Re-Instated libsensors-config:amd64
  Re-Instated libsensors5:amd64
  Re-Instated libvulkan1:amd64
  Re-Instated libgl1-mesa-dri:amd64
  Re-Instated libglx-mesa0:amd64
  Re-Instated libglx0:amd64
  Re-Instated libgl1:amd64
  Re-Instated libgl1-mesa-glx:amd64
  Re-Instated xkb-data:amd64
  Re-Instated libxkbcommon0:amd64
  Re-Instated libxcb-xkb1:amd64
  Re-Instated libxkbcommon-x11-0:amd64
  Re-Instated libxcb-icccm4:amd64
  Re-Instated libxcb-util1:amd64
  Re-Instated libxcb-image0:amd64
  Re-Instated libxcb-keysyms1:amd64
  Re-Instated libxcb-randr0:amd64
  Re-Instated libxcb-render0:amd64
  Re-Instated libxcb-render-util0:amd64
  Re-Instated libxcb-xinerama0:amd64
  Re-Instated libxdamage1:amd64
  Re-Instated libgraphene-1.0-0:amd64
  Re-Instated libwayland-server0:amd64
  Re-Instated libgbm1:amd64
  Re-Instated libwayland-client0:amd64
  Re-Instated libegl-mesa0:amd64
  Re-Instated libegl1:amd64
  Re-Instated liborc-0.4-0:amd64
  Re-Instated libgstreamer-plugins-base1.0-0:amd64
  Re-Instated libwayland-egl1:amd64
  Re-Instated libgstreamer-gl1.0-0:amd64
  Re-Instated libjpeg-turbo8:amd64
  Re-Instated libjpeg8:amd64
  Re-Instated gstreamer1.0-gl:amd64
  Re-Instated libcdparanoia0:amd64
  Re-Instated libogg0:amd64
  Re-Instated libopus0:amd64
  Re-Instated libpixman-1-0:amd64
  Re-Instated libxrender1:amd64
  Re-Instated libcairo2:amd64
  Re-Instated libtheora0:amd64
  Re-Instated libvisual-0.4-0:amd64
  Re-Instated libvorbis0a:amd64
  Re-Instated libvorbisenc2:amd64
  Re-Instated gstreamer1.0-plugins-base:amd64
  Re-Instated libgpm2:amd64
  Re-Instated libslang2:amd64
  Re-Instated libaa1:amd64
  Re-Instated libraw1394-11:amd64
  Re-Instated libavc1394-0:amd64
  Re-Instated libcaca0:amd64
  Re-Instated libcairo-gobject2:amd64
  Re-Instated libdv4:amd64
  Re-Instated libflac8:amd64
  Re-Instated libjbig0:amd64
  Re-Instated libwebp6:amd64
  Re-Instated libtiff5:amd64
  Re-Instated libgdk-pixbuf2.0-common:amd64
  Re-Instated libgdk-pixbuf2.0-0:amd64
  Re-Instated libgstreamer-plugins-good1.0-0:amd64
  Re-Instated libiec61883-0:amd64
  Re-Instated libsamplerate0:amd64
  Re-Instated libjack-jackd2-0:amd64
  Re-Instated libmp3lame0:amd64
  Re-Instated libmpg123-0:amd64
  Re-Instated libspeex1:amd64
  Re-Instated libshout3:amd64
  Re-Instated libtag1v5-vanilla:amd64
  Re-Instated libtag1v5:amd64
  Re-Instated libtwolame0:amd64
  Re-Instated libv4lconvert0:amd64
  Re-Instated libv4l-0:amd64
  Re-Instated libvpx6:amd64
  Re-Instated libwavpack1:amd64
  Re-Instated gstreamer1.0-plugins-good:amd64
  Re-Instated libaom0:amd64
  Re-Instated libfribidi0:amd64
  Re-Instated libgraphite2-3:amd64
  Re-Instated libharfbuzz0b:amd64
  Re-Instated libass9:amd64
  Re-Instated libbs2b0:amd64
  Re-Instated libva2:amd64
  Re-Instated libva-drm2:amd64
  Re-Instated libva-x11-2:amd64
  Re-Instated libvdpau1:amd64
  Re-Instated ocl-icd-libopencl1:amd64
  Re-Instated libavutil56:amd64
  Re-Instated libcodec2-0.9:amd64
  Re-Instated libgsm1:amd64
  Re-Instated libopenjp2-7:amd64
  Re-Instated libthai-data:amd64
  Re-Instated libdatrie1:amd64
  Re-Instated libthai0:amd64
  Re-Instated libpango-1.0-0:amd64
  Re-Instated libpangoft2-1.0-0:amd64
  Re-Instated libpangocairo-1.0-0:amd64
  Re-Instated librsvg2-2:amd64
  Re-Instated libshine3:amd64
  Re-Instated libsnappy1v5:amd64
  Re-Instated libgomp1:amd64
  Re-Instated libsoxr0:amd64
  Re-Instated libswresample3:amd64
  Re-Instated libwebpmux3:amd64
  Re-Instated libx264-155:amd64
  Re-Instated libnuma1:amd64
  Re-Instated libx265-179:amd64
  Re-Instated libxvidcore4:amd64
  Re-Instated libzvbi-common:amd64
  Re-Instated libzvbi0:amd64
  Re-Instated libavcodec58:amd64
  Re-Instated libchromaprint1:amd64
  Re-Instated libcurl3-gnutls:amd64
  Re-Instated libusb-1.0-0:amd64
  Re-Instated libdc1394-22:amd64
  Re-Instated libdca0:amd64
  Re-Instated libde265-0:amd64
  Re-Instated libdvdread7:amd64
  Re-Instated libdvdnav4:amd64
  Re-Instated libfaad2:amd64
  Re-Instated libasound2-data:amd64
  Re-Instated libasound2:amd64
  Re-Instated libflite1:amd64
  Re-Instated libsndfile1:amd64
  Re-Instated libinstpatch-1.0-2:amd64
  Re-Instated libasyncns0:amd64
  Re-Instated libwrap0:amd64
  Re-Instated libpulse0:amd64
  Re-Instated libwayland-cursor0:amd64
  Re-Instated libxcursor1:amd64
  Re-Instated libxinerama1:amd64
  Re-Instated libxrandr2:amd64
  Re-Instated libxss1:amd64
  Re-Instated libsdl2-2.0-0:amd64
  Re-Instated timgm6mb-soundfont:amd64
  Re-Instated libfluidsynth2:amd64
  Re-Instated libgme0:amd64
  Re-Instated libgstreamer-plugins-bad1.0-0:amd64
  Re-Instated libilmbase24:amd64
  Re-Instated libkate1:amd64
  Re-Instated liblcms2-2:amd64
  Re-Instated libserd-0-0:amd64
  Re-Instated libsord-0-0:amd64
  Re-Instated libsratom-0-0:amd64
  Re-Instated liblilv-0-0:amd64
  Re-Instated libmjpegutils-2.1-0:amd64
  Re-Instated libmms0:amd64
  Re-Instated libmodplug1:amd64
  Re-Instated libmpcdec6:amd64
  Re-Instated libmpeg2encpp-2.1-0:amd64
  Re-Instated libmplex2-2.1-0:amd64
  Re-Instated libgssdp-1.2-0:amd64
  Re-Instated libgupnp-1.2-0:amd64
  Re-Instated libgupnp-igd-1.0-4:amd64
  Re-Instated libnice10:amd64
  Re-Instated libfftw3-double3:amd64
  Re-Instated libofa0:amd64
  Re-Instated libopenal-data:amd64
  Re-Instated libsndio7.0:amd64
  Re-Instated libopenal1:amd64
  Re-Instated libopenexr24:amd64
  Re-Instated libvorbisfile3:amd64
  Re-Instated libopenmpt0:amd64
  Re-Instated libsbc1:amd64
  Re-Instated libsoundtouch1:amd64
  Re-Instated libspandsp2:amd64
  Re-Instated libsrt1:amd64
  Re-Instated libsrtp2-1:amd64
  Re-Instated libusrsctp1:amd64
  Re-Instated libvo-aacenc0:amd64
  Re-Instated libvo-amrwbenc0:amd64
  Re-Instated libwebrtc-audio-processing1:amd64
  Re-Instated libwildmidi2:amd64
  Re-Instated libzbar0:amd64
  Re-Instated gstreamer1.0-plugins-bad:amd64
  Re-Instated liba52-0.7.4:amd64
  Re-Instated libcdio18:amd64
  Re-Instated libmpeg2-4:amd64
  Re-Instated libopencore-amrnb0:amd64
  Re-Instated libopencore-amrwb0:amd64
  Re-Instated libsidplay1v5:amd64
  Re-Instated gstreamer1.0-plugins-ugly:amd64
  Re-Instated libbluray2:amd64
  Re-Instated libssh-gcrypt-4:amd64
  Re-Instated libavformat58:amd64
  Re-Instated libmysofa1:amd64
  Re-Instated libpostproc55:amd64
  Re-Instated librubberband2:amd64
  Re-Instated libswscale5:amd64
  Re-Instated libvidstab1.1:amd64
  Re-Instated libnorm1:amd64
  Re-Instated libpgm-5.2-0:amd64
  Re-Instated libsodium23:amd64
  Re-Instated libzmq5:amd64
  Re-Instated libavfilter7:amd64
  Re-Instated gstreamer1.0-libav:amd64
  Re-Instated libglib2.0-doc:amd64
  Re-Instated gstreamer1.0-doc:amd64
  Re-Instated gstreamer1.0-tools:amd64
  Re-Instated tsi-qt:amd64
Broken tnav-service-tools:amd64 Depends on tsi-yaml-cpp:amd64 < none | 0.7.0-2 @un uH > (= 0.7.0-2)
  Considering tsi-yaml-cpp:amd64 0 as a solution to tnav-service-tools:amd64 9999
  Re-Instated tsi-yaml-cpp:amd64
Broken tnav-service-tools:amd64 Depends on tsi-vtk:amd64 < none | 8.1.2-2 @un uH > (= 8.1.2-2)
  Considering tsi-vtk:amd64 0 as a solution to tnav-service-tools:amd64 9999
  Re-Instated tsi-vtk:amd64
Broken tnav-service-tools:amd64 Depends on think-ctk:amd64 < none | 1.0.3 @un uH > (= 1.0.3)
  Considering think-ctk:amd64 0 as a solution to tnav-service-tools:amd64 9999
  Re-Instated tsi-grpc:amd64
  Re-Instated libgflags2.2:amd64
  Re-Instated libunwind8:amd64
  Re-Instated libgoogle-glog0v5:amd64
  Re-Instated libquadmath0:amd64
  Re-Instated libgfortran5:amd64
  Re-Instated libatlas3-base:amd64
  Re-Instated libblas3:amd64
  Re-Instated tsi-ceres:amd64
    Reinst Failed early because of zlib1g:amd64:any
  MarkKeep think-ctk:amd64 < none -> 1.0.3 @un uN Ib > FU=0
Broken tnav-service-tools:amd64 Depends on think-navigation:amd64 < none | 1.0.6 @un uH > (= 1.0.5)
  Considering think-navigation:amd64 0 as a solution to tnav-service-tools:amd64 9999
  Re-Instated tsi-itk:amd64
    Reinst Failed because of think-ctk:amd64
  MarkKeep think-navigation:amd64 < none -> 1.0.6 @un uN Ib > FU=0
Broken tnav-service-tools:amd64 Depends on think-navigation-mini:amd64 < none | 1.0.6 @un uH > (= 1.0.5)
  Considering think-navigation-mini:amd64 0 as a solution to tnav-service-tools:amd64 9999
    Reinst Failed because of think-navigation:amd64
  MarkKeep think-navigation-mini:amd64 < none -> 1.0.6 @un uN Ib > FU=0
Broken tnav-service-tools:amd64 Depends on thinkcrypto:amd64 < none | 0.13.0 @un uH > (= 0.13.0)
  Considering thinkcrypto:amd64 0 as a solution to tnav-service-tools:amd64 9999
  Re-Instated thinkcrypto:amd64
Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 tnav-service-tools : Depends: think-ctk (= 1.0.3) but it is not going to be installed
                      Depends: think-navigation (= 1.0.5) but it is not going to be installed
                      Depends: think-navigation-mini (= 1.0.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
null

Reply to: