Créditos e amp; Obrigado por ir para @muru .
Eu estava procurando qualquer comando ou opção de depuração que possa me mostrar o nome do pacote de problemas ( libcgmanager0
neste caso de teste).
-
apt-get -s -o Debug::pkgProblemResolver=yes install wine
Ele tem uma saída detalhada, difícil de entender. Tudo bem, se eu me familiarizar com isso.
-
echo q | aptitude -s install wine
Saída mínima, mas aviso claro sobre o conflito.
The following packages have unmet dependencies: libcgmanager0 : Breaks: libcgmanager0:i386 (!= 0.39-2ubuntu2~ubuntu14.04.1) but 0.24-0ubuntu7.5 is to be installed. libcgmanager0:i386 : Breaks: libcgmanager0 (!= 0.24-0ubuntu7.5) but 0.39-2ubuntu2~ubuntu14.04.1 is installed.
Outro ponto que eu estava procurando, é minimizar a saída solicitada do OP. Em vez disso, para solicitar apt-cache policy
para dependências de primeiro / segundo nível. Eu solicitaria isso para todas as dependências recursivas de uma só vez.
-
apt-rdepends wine 2>/dev/null | grep "^[a-zA-Z]" | sort
Esteja ciente de que
apt-rdepends
está emulandoapt-cache
, portanto, o resultado pode ser diferente dedebfoster
. Outro ponto, ambas as ferramentas não distinguem entre o arco (i386 ou amd64), elas apenas mostram nomes.apt-cache policy $(apt-rdepends wine 2>/dev/null | grep "^[a-zA-Z]" | sort | paste -s -d" ")
Como o link acima pode ser removido mais tarde, aqui está a saída completa de todos os comandos acima.
$ apt-get -s -o Debug::pkgProblemResolver=yes install wine
NOTE: This is only a simulation!
apt-get needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) libudev1 [ i386 ] < none -> 204-5ubuntu20.15 > ( libs )
Broken libudev1:i386 Depends on libcgmanager0 [ i386 ] < none -> 0.24-0ubuntu7.5 | 0.39-2ubuntu2~ubuntu14.04.1 > ( admin )
Considering libcgmanager0:i386 1 as a solution to libudev1:i386 4
Holding Back libudev1:i386 rather than change libcgmanager0:i386
Investigating (0) libusb-1.0-0 [ i386 ] < none -> 2:1.0.17-1ubuntu2 > ( libs )
Broken libusb-1.0-0:i386 Depends on libudev1 [ i386 ] < none -> 204-5ubuntu20.15 > ( libs ) (>= 183)
Considering libudev1:i386 4 as a solution to libusb-1.0-0:i386 1
Holding Back libusb-1.0-0:i386 rather than change libudev1:i386
Investigating (0) libgl1-mesa-glx [ i386 ] < none -> 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty > ( libs )
Broken libgl1-mesa-glx:i386 Depends on libudev1 [ i386 ] < none -> 204-5ubuntu20.15 > ( libs )
Considering libudev1:i386 4 as a solution to libgl1-mesa-glx:i386 0
Holding Back libgl1-mesa-glx:i386 rather than change libudev1:i386
Investigating (0) libsane [ i386 ] < none -> 1.0.23-3ubuntu3.1 > ( libs )
Broken libsane:i386 Depends on libusb-1.0-0 [ i386 ] < none -> 2:1.0.17-1ubuntu2 > ( libs ) (>= 2:1.0.8)
Considering libusb-1.0-0:i386 1 as a solution to libsane:i386 0
Holding Back libsane:i386 rather than change libusb-1.0-0:i386
Investigating (0) libgphoto2-port10 [ i386 ] < none -> 2.5.3.1-1ubuntu2.2 > ( libs )
Broken libgphoto2-port10:i386 Depends on libusb-1.0-0 [ i386 ] < none -> 2:1.0.17-1ubuntu2 > ( libs ) (>= 2:1.0.8)
Considering libusb-1.0-0:i386 1 as a solution to libgphoto2-port10:i386 -1
Holding Back libgphoto2-port10:i386 rather than change libusb-1.0-0:i386
Investigating (0) libgphoto2-6 [ i386 ] < none -> 2.5.3.1-1ubuntu2.2 > ( libs )
Broken libgphoto2-6:i386 Depends on libgphoto2-port10 [ i386 ] < none -> 2.5.3.1-1ubuntu2.2 > ( libs ) (>= 2.5.2)
Considering libgphoto2-port10:i386 -1 as a solution to libgphoto2-6:i386 -1
Holding Back libgphoto2-6:i386 rather than change libgphoto2-port10:i386
Investigating (0) libglu1-mesa [ i386 ] < none -> 9.0.0-2 > ( libs )
Broken libglu1-mesa:i386 Depends on libgl1-mesa-glx [ i386 ] < none -> 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty > ( libs )
Considering libgl1-mesa-glx:i386 0 as a solution to libglu1-mesa:i386 -1
Holding Back libglu1-mesa:i386 rather than change libgl1-mesa-glx:i386
Broken libglu1-mesa:i386 Depends on libgl1 [ i386 ] < none > ( none )
Considering libgl1-mesa-glx:i386 0 as a solution to libglu1-mesa:i386 -1
Holding Back libglu1-mesa:i386 rather than change libgl1:i386
Or group keep for libglu1-mesa:i386
Investigating (1) wine1.6-i386 [ i386 ] < none -> 1:1.6.2-0ubuntu4 > ( universe/otherosfs )
Broken wine1.6-i386:i386 Depends on libglu1-mesa [ i386 ] < none -> 9.0.0-2 > ( libs )
Considering libglu1-mesa:i386 -1 as a solution to wine1.6-i386:i386 -1
Holding Back wine1.6-i386:i386 rather than change libglu1-mesa:i386
Broken wine1.6-i386:i386 Depends on libglu1 [ i386 ] < none > ( none )
Considering libglu1-mesa:i386 -1 as a solution to wine1.6-i386:i386 -1
Holding Back wine1.6-i386:i386 rather than change libglu1:i386
Or group keep for wine1.6-i386:i386
Broken wine1.6-i386:i386 Depends on libgphoto2-6 [ i386 ] < none -> 2.5.3.1-1ubuntu2.2 > ( libs ) (>= 2.5.2)
Considering libgphoto2-6:i386 -1 as a solution to wine1.6-i386:i386 -1
Holding Back wine1.6-i386:i386 rather than change libgphoto2-6:i386
Investigating (2) wine1.6 [ amd64 ] < none -> 1:1.6.2-0ubuntu4 > ( universe/otherosfs )
Broken wine1.6:amd64 Depends on wine1.6-i386 [ amd64 ] < none > ( none ) (= 1:1.6.2-0ubuntu4)
Considering wine1.6-i386:i386 -1 as a solution to wine1.6:amd64 0
Holding Back wine1.6:amd64 rather than change wine1.6-i386:amd64
Investigating (2) wine1.6-amd64 [ amd64 ] < none -> 1:1.6.2-0ubuntu4 > ( universe/otherosfs )
Broken wine1.6-amd64:amd64 Depends on wine1.6:any [ amd64 ] < none > ( none ) (= 1:1.6.2-0ubuntu4)
Considering wine1.6:i386 -1 as a solution to wine1.6-amd64:amd64 -1
Holding Back wine1.6-amd64:amd64 rather than change wine1.6:any:amd64
Investigating (3) wine [ amd64 ] < none -> 1:1.6.2-0ubuntu4 > ( universe/otherosfs )
Broken wine:amd64 Depends on wine1.6 [ amd64 ] < none -> 1:1.6.2-0ubuntu4 > ( universe/otherosfs )
Considering wine1.6:amd64 0 as a solution to wine:amd64 9999
Re-Instated wine1.6-amd64:amd64
Reinst Failed because of libcgmanager0:i386
Reinst Failed because of libudev1:i386
Reinst Failed because of libgl1-mesa-glx:i386
Reinst Failed because of libgl1-mesa-glx:i386
Reinst Failed because of libglu1-mesa:i386
Reinst Failed because of libglu1-mesa:i386
Reinst Failed because of wine1.6-i386:i386
Investigating (3) wine1.6-amd64 [ amd64 ] < none -> 1:1.6.2-0ubuntu4 > ( universe/otherosfs )
Broken wine1.6-amd64:amd64 Depends on wine1.6:any [ amd64 ] < none > ( none ) (= 1:1.6.2-0ubuntu4)
Considering wine1.6:i386 -1 as a solution to wine1.6-amd64:amd64 -1
Holding Back wine1.6-amd64:amd64 rather than change wine1.6:any:amd64
Investigating (4) wine [ amd64 ] < none -> 1:1.6.2-0ubuntu4 > ( universe/otherosfs )
Broken wine:amd64 Depends on wine1.6 [ amd64 ] < none -> 1:1.6.2-0ubuntu4 > ( universe/otherosfs )
Considering wine1.6:amd64 0 as a solution to wine:amd64 9999
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:
wine : Depends: wine1.6 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ echo q | aptitude -s install wine
The following NEW packages will be installed:
attr{a} binfmt-support{a} cabextract{a} fonts-horai-umefont{a} fonts-unfonts-core{a} fonts-wqy-microhei{a} gcc-4.8-base:i386{a}
gcc-4.9-base:i386{a} gnome-exe-thumbnailer{a} icoutils{a} imagemagick{a} imagemagick-common{a} libaio1{a} libasn1-8-heimdal:i386{a}
libasound2:i386{a} libasound2-plugins:i386{a} libasyncns0:i386{a} libavahi-client3:i386{a} libavahi-common-data:i386{a}
libavahi-common3:i386{a} libc6:i386{a} libcapi20-3{a} libcapi20-3:i386{a} libcgmanager0:i386{ab} libcomerr2:i386{a}
libcups2:i386{a} libdb5.3:i386{a} libdbus-1-3:i386{a} libdrm-amdgpu1{a} libdrm-amdgpu1:i386{a} libdrm-intel1:i386{a}
libdrm-nouveau2:i386{a} libdrm-radeon1:i386{a} libdrm2:i386{a} libedit2:i386{a} libelf1:i386{a} libencode-locale-perl{a}
libexif12:i386{a} libexpat1:i386{a} libffi6:i386{a} libfftw3-double3{a} libfile-listing-perl{a} libflac8:i386{a}
libfont-afm-perl{a} libfontconfig1:i386{a} libfreetype6:i386{a} libgcc1:i386{a} libgcrypt11:i386{a} libgd3:i386{a} libgif4{a}
libgif4:i386{a} libgl1-mesa-dri:i386{a} libgl1-mesa-glx:i386{a} libglapi-mesa:i386{a} libglib2.0-0:i386{a} libglu1-mesa:i386{a}
libgnutls26:i386{a} libgpg-error0:i386{a} libgphoto2-6:i386{a} libgphoto2-port10:i386{a} libgpm2:i386{a} libgssapi-krb5-2:i386{a}
libgssapi3-heimdal:i386{a} libgstreamer-plugins-base0.10-0:i386{a} libgstreamer0.10-0:i386{a} libhcrypto4-heimdal:i386{a}
libhdb9-heimdal{a} libheimbase1-heimdal:i386{a} libheimntlm0-heimdal:i386{a} libhtml-form-perl{a} libhtml-format-perl{a}
libhtml-parser-perl{a} libhtml-tagset-perl{a} libhtml-tree-perl{a} libhttp-cookies-perl{a} libhttp-daemon-perl{a}
libhttp-date-perl{a} libhttp-message-perl{a} libhttp-negotiate-perl{a} libhx509-5-heimdal:i386{a} libice6:i386{a}
libieee1284-3:i386{a} libilmbase6{a} libio-html-perl{a} libjack-jackd2-0:i386{a} libjbig0:i386{a} libjpeg-turbo8:i386{a}
libjpeg8:i386{a} libjson-c2:i386{a} libk5crypto3:i386{a} libkdc2-heimdal{a} libkeyutils1:i386{a} libkrb5-26-heimdal:i386{a}
libkrb5-3:i386{a} libkrb5support0:i386{a} liblcms2-2:i386{a} libldap-2.4-2:i386{a} libllvm3.6{a} libllvm3.6:i386{a} liblqr-1-0{a}
libltdl7:i386{a} liblwp-mediatypes-perl{a} liblwp-protocol-https-perl{a} liblzma5:i386{a} libmagickcore5{a} libmagickcore5-extra{a}
libmagickwand5{a} libmpg123-0{a} libmpg123-0:i386{a} libncurses5:i386{a} libnet-http-perl{a} libnetpbm10{a} libnih-dbus1:i386{a}
libnih1:i386{a} libnss-winbind{a} libodbc1{a} libogg0:i386{a} libopenal-data{a} libopenal1{a} libopenal1:i386{a} libopenexr6{a}
liborc-0.4-0:i386{a} libosmesa6{a} libosmesa6:i386{a} libp11-kit-gnome-keyring:i386{a} libp11-kit0:i386{a} libpam-winbind{a}
libpciaccess0:i386{a} libpcre3:i386{a} libpng12-0:i386{a} libpulse0:i386{a} libroken18-heimdal:i386{a} libsamplerate0:i386{a}
libsane:i386{a} libsasl2-2:i386{a} libsasl2-modules:i386{a} libsasl2-modules-db:i386{a} libselinux1:i386{a} libsm6:i386{a}
libsndfile1:i386{a} libspeexdsp1:i386{a} libsqlite3-0:i386{a} libssl1.0.0:i386{a} libstdc++6:i386{a} libtasn1-6:i386{a}
libtiff5:i386{a} libtinfo5:i386{a} libtxc-dxtn-s2tc0:i386{a} libudev1:i386{a} libusb-1.0-0:i386{a} libuuid1:i386{a}
libv4l-0:i386{a} libv4lconvert0:i386{a} libvorbis0a:i386{a} libvorbisenc2:i386{a} libvpx1:i386{a} libwind0-heimdal:i386{a}
libwrap0:i386{a} libwww-perl{a} libwww-robotrules-perl{a} libx11-6:i386{a} libx11-xcb1:i386{a} libxau6:i386{a}
libxcb-dri2-0:i386{a} libxcb-dri3-0:i386{a} libxcb-glx0:i386{a} libxcb-present0:i386{a} libxcb-sync1:i386{a} libxcb1:i386{a}
libxcomposite1:i386{a} libxcursor1:i386{a} libxdamage1:i386{a} libxdmcp6:i386{a} libxext6:i386{a} libxfixes3:i386{a} libxi6:i386{a}
libxinerama1:i386{a} libxml2:i386{a} libxpm4:i386{a} libxrandr2:i386{a} libxrender1:i386{a} libxshmfence1:i386{a}
libxslt1.1:i386{a} libxt6:i386{a} libxxf86vm1:i386{a} netpbm{a} ocl-icd-libopencl1{a} ocl-icd-libopencl1:i386{a} odbcinst{a}
odbcinst1debian2{a} p11-kit-modules:i386{a} p7zip{a} python-dnspython{a} samba{a} samba-dsdb-modules{a} samba-vfs-modules{a}
tdb-tools{a} ttf-mscorefonts-installer{a} ttf-wqy-microhei{a} unixodbc{a} winbind{a} wine wine-gecko2.21{a} wine-gecko2.21:i386{a}
wine-mono0.0.8{a} wine1.6{a} wine1.6-amd64{a} wine1.6-i386:i386{a} winetricks{a} zlib1g:i386{a}
The following packages will be upgraded:
libgl1-mesa-dri
1 packages upgraded, 210 newly installed, 0 to remove and 11 not upgraded.
Need to get 200 MB of archives. After unpacking 646 MB will be used.
The following packages have unmet dependencies:
libcgmanager0 : Breaks: libcgmanager0:i386 (!= 0.39-2ubuntu2~ubuntu14.04.1) but 0.24-0ubuntu7.5 is to be installed.
libcgmanager0:i386 : Breaks: libcgmanager0 (!= 0.24-0ubuntu7.5) but 0.39-2ubuntu2~ubuntu14.04.1 is installed.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) libcgmanager0:i386 [Not Installed]
2) libgl1-mesa-glx:i386 [Not Installed]
3) libglu1-mesa:i386 [Not Installed]
4) libgphoto2-6:i386 [Not Installed]
5) libgphoto2-port10:i386 [Not Installed]
6) libsane:i386 [Not Installed]
7) libudev1:i386 [Not Installed]
8) libusb-1.0-0:i386 [Not Installed]
9) wine [Not Installed]
10) wine1.6 [Not Installed]
11) wine1.6-amd64 [Not Installed]
12) wine1.6-i386:i386 [Not Installed]
Leave the following dependencies unresolved:
13) winetricks recommends wine
Accept this solution? [Y/n/q/?] Abandoning all efforts to resolve these dependencies.
Abort.
$ apt-rdepends wine 2>/dev/null | grep "^[a-zA-Z]" | sort
adduser
base-passwd
binfmt-support
busybox-initramfs
coreutils
cpio
debconf
debconf-2.0
debianutils
dpkg
file-rc
findutils
fontconfig-config
fonts-dejavu-core
fonts-freefont-ttf
gcc-4.8-base
gcc-4.9-base
gsfonts
gsfonts-x11
ifupdown
initramfs-tools
initramfs-tools-bin
initscripts
init-system-helpers
insserv
install-info
iproute2
iso-codes
klibc-utils
kmod
libacl1
libasn1-8-heimdal
libasound2
libasound2-data
libasyncns0
libattr1
libaudit1
libaudit-common
libblkid1
libbz2-1.0
libc6
libcgmanager0
libcomerr2
libdb5.3
libdbus-1-3
libdebconfclient0
libdrm2
libexif12
libexpat1
libffi6
libflac8
libfontconfig1
libfontenc1
libfreetype6
libgcc1
libgcrypt11
libgd3
libgdbm3
libgl1
libgl1-mesa-glx
libglapi-mesa
libglib2.0-0
libglu1
libglu1-mesa
libgnutls26
libgpg-error0
libgphoto2-6
libgphoto2-port10
libgssapi3-heimdal
libgstreamer0.10-0
libgstreamer-plugins-base0.10-0
libhcrypto4-heimdal
libheimbase1-heimdal
libheimntlm0-heimdal
libhx509-5-heimdal
libjbig0
libjpeg8
libjpeg-turbo8
libjson0
libjson-c2
libklibc
libkmod2
libkrb5-26-heimdal
liblcms2-2
libldap-2.4-2
libltdl7
liblzma5
libmount1
libmpg123-0
libncurses5
libncursesw5
libnih1
libnih-dbus1
libogg0
libopenal1
libopenal-data
libopencl1
libopencl-1.1-1
liborc-0.4-0
libp11-kit0
libpam0g
libpam-modules
libpam-modules-bin
libpcre3
libpipeline1
libplymouth2
libpng12-0
libprocps3
libpulse0
libroken18-heimdal
libsasl2-2
libsasl2-modules-db
libselinux1
libsemanage1
libsemanage-common
libsepol1
libslang2
libsndfile1
libsqlite3-0
libstdc++6
libtasn1-6
libtiff5
libtinfo5
libudev0
libudev1
libusb-1.0-0
libustr-1.0-1
libuuid1
libvorbis0a
libvorbisenc2
libvpx1
libwind0-heimdal
libwrap0
libx11-6
libx11-data
libx11-xcb1
libxau6
libxcb1
libxcb-dri2-0
libxcb-dri3-0
libxcb-glx0
libxcb-present0
libxcb-sync1
libxdamage1
libxdmcp6
libxext6
libxfixes3
libxfont1
libxml2
libxpm4
libxshmfence1
libxxf86vm1
lsb-base
makedev
module-init-tools
mount
mountall
multiarch-support
ocl-icd-libopencl1
passwd
perl
perl-base
perl-modules
plymouth
procps
sensible-utils
sysvinit-utils
sysv-rc
tar
ttf-bitstream-vera
tzdata
ucf
udev
upstart
util-linux
wine
wine1.6
wine1.6-amd64
wine1.6:any
wine1.6-i386
x11-common
xfonts-encodings
xfonts-utils
zlib1g