Bug#1059068: apt: fails to resolve dependencies

2023-12-19 Thread Vincent Lefevre
On 2023-12-20 00:20:10 +0100, Vincent Lefevre wrote:
> I'm currently upgrading a stable machine to unstable (except some
> buggy packages), which is mostly done, but apt fails to resolve
> dependencies in order to upgrade vlc (aptitude is worse):
> 
> qaa:~> apt install -s vlc
> [...]
> The following packages have unmet dependencies:
>  vlc-plugin-base : Depends: libavcodec60 (>= 7:6.0)
>Depends: libavformat60 (>= 7:6.0)
>  vlc-plugin-video-output : Depends: libavcodec60 (>= 7:6.0)
> E: Unable to correct problems, you have held broken packages.

With Debug::pkgProblemResolver=true:

qaa:~> apt-get install -s -o Debug::pkgProblemResolver=true vlc
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...
Building dependency tree...
Reading state information...
Starting pkgProblemResolver with broken count: 2
Starting 2 pkgProblemResolver with broken count: 2
Investigating (0) libavcodec59:amd64 < 7:5.1.4-0+deb12u1 @ii mK Ib >
Broken libavcodec59:amd64 Depends on libsvtav1enc1:amd64 < 1.4.1+dfsg-1 @ii mR 
> (>= 1.4.1+dfsg)
  Considering libsvtav1enc1:amd64 0 as a solution to libavcodec59:amd64 42
  Added libsvtav1enc1:amd64 to the remove list
  Fixing libavcodec59:amd64 via keep of libsvtav1enc1:amd64
Investigating (0) libsvtav1enc1d1:amd64 < none -> 1.7.0+dfsg-2 @un uN Ib >
Broken libsvtav1enc1d1:amd64 Breaks on libsvtav1enc1:amd64 < 1.4.1+dfsg-1 @ii 
mK > (< 1.6.0+dfsg-2~)
  Considering libsvtav1enc1:amd64 0 as a solution to libsvtav1enc1d1:amd64 4
  Added libsvtav1enc1:amd64 to the remove list
  Fixing libsvtav1enc1d1:amd64 via remove of libsvtav1enc1:amd64
Investigating (1) libavcodec59:amd64 < 7:5.1.4-0+deb12u1 @ii mK Ib >
Broken libavcodec59:amd64 Depends on libsvtav1enc1:amd64 < 1.4.1+dfsg-1 @ii mR 
> (>= 1.4.1+dfsg)
  Considering libsvtav1enc1:amd64 0 as a solution to libavcodec59:amd64 42
  Added libsvtav1enc1:amd64 to the remove list
  Fixing libavcodec59:amd64 via keep of libsvtav1enc1:amd64
Investigating (1) libsvtav1enc1d1:amd64 < none -> 1.7.0+dfsg-2 @un uN Ib >
Broken libsvtav1enc1d1:amd64 Breaks on libsvtav1enc1:amd64 < 1.4.1+dfsg-1 @ii 
mK > (< 1.6.0+dfsg-2~)
  Considering libsvtav1enc1:amd64 0 as a solution to libsvtav1enc1d1:amd64 4
  Added libsvtav1enc1:amd64 to the remove list
  Fixing libsvtav1enc1d1:amd64 via remove of libsvtav1enc1:amd64
Investigating (2) libavcodec59:amd64 < 7:5.1.4-0+deb12u1 @ii mK Ib >
Broken libavcodec59:amd64 Depends on libsvtav1enc1:amd64 < 1.4.1+dfsg-1 @ii mR 
> (>= 1.4.1+dfsg)
  Considering libsvtav1enc1:amd64 0 as a solution to libavcodec59:amd64 42
  Added libsvtav1enc1:amd64 to the remove list
  Fixing libavcodec59:amd64 via keep of libsvtav1enc1:amd64
Investigating (2) libsvtav1enc1d1:amd64 < none -> 1.7.0+dfsg-2 @un uN Ib >
Broken libsvtav1enc1d1:amd64 Breaks on libsvtav1enc1:amd64 < 1.4.1+dfsg-1 @ii 
mK > (< 1.6.0+dfsg-2~)
  Considering libsvtav1enc1:amd64 42 as a solution to libsvtav1enc1d1:amd64 4
  Holding Back libsvtav1enc1d1:amd64 rather than change libsvtav1enc1:amd64
Investigating (3) libavcodec60:amd64 < none -> 7:6.1-5 @un umN Ib >
Broken libavcodec60:amd64 Depends on libsvtav1enc1d1:amd64 < none | 
1.7.0+dfsg-2 @un uH > (>= 1.7.0+dfsg)
  Considering libsvtav1enc1d1:amd64 4 as a solution to libavcodec60:amd64 22
  Holding Back libavcodec60:amd64 rather than change libsvtav1enc1d1:amd64
Investigating (3) libavformat60:amd64 < none -> 7:6.1-5 @un uN Ib >
Broken libavformat60:amd64 Depends on libavcodec60:amd64 < none | 7:6.1-5 @un 
umH > (= 7:6.1-5)
  Considering libavcodec60:amd64 22 as a solution to libavformat60:amd64 1
  Holding Back libavformat60:amd64 rather than change libavcodec60:amd64
Investigating (3) vlc-plugin-base:amd64 < 3.0.20-0+deb12u1 -> 3.0.20-1+b1 @ii 
pumU Ib >
Broken vlc-plugin-base:amd64 Depends on libavcodec60:amd64 < none | 7:6.1-5 @un 
umH > (>= 7:6.0)
  Considering libavcodec60:amd64 22 as a solution to vlc-plugin-base:amd64 1
  Re-Instated libsvtav1enc1d1:amd64
  Re-Instated libavcodec60:amd64
Broken vlc-plugin-base:amd64 Depends on libavformat60:amd64 < none | 7:6.1-5 
@un uH > (>= 7:6.0)
  Considering libavformat60:amd64 1 as a solution to vlc-plugin-base:amd64 1
  Re-Instated libavformat60:amd64
Investigating (4) libsvtav1enc1d1:amd64 < none -> 1.7.0+dfsg-2 @un uN Ib >
Broken libsvtav1enc1d1:amd64 Breaks on libsvtav1enc1:amd64 < 1.4.1+dfsg-1 @ii 
mK > (< 1.6.0+dfsg-2~)
  Considering libsvtav1enc1:amd64 42 as a solution to libsvtav1enc1d1:amd64 4
  Holding Back libsvtav1enc1d1:amd64 rather than change libsvtav1enc1:amd64
Investigating (5) libavcodec60:amd64 < none -> 7:6.1-5 @un umN Ib >
Broken libavcodec60:amd64 Depends on libsvtav1enc1d1:amd64 < none | 
1.7.0+dfsg-2 @un uH > (>= 1.7.0+dfsg)
  Considering libsvtav1enc1d1:amd64 4 as a solution to libavcodec60:amd64 1
  Holding Back libavcodec60:amd64 rather than change 

Bug#1059068: apt: fails to resolve dependencies

2023-12-19 Thread Vincent Lefevre
Package: apt
Version: 2.7.7
Severity: normal

I'm currently upgrading a stable machine to unstable (except some
buggy packages), which is mostly done, but apt fails to resolve
dependencies in order to upgrade vlc (aptitude is worse):

qaa:~> apt install -s vlc
[...]
The following packages have unmet dependencies:
 vlc-plugin-base : Depends: libavcodec60 (>= 7:6.0)
   Depends: libavformat60 (>= 7:6.0)
 vlc-plugin-video-output : Depends: libavcodec60 (>= 7:6.0)
E: Unable to correct problems, you have held broken packages.

Why doesn't it try to install these packages, then?

For instance, just adding libavcodec60 works:

qaa:~> apt install -s vlc libavcodec60
[...]
The following packages were automatically installed and are no longer required:
  libavutil57 libcodec2-1.0 libdav1d6 libixml10 libnfs13 libplacebo208
  libpostproc56 libsdl-image1.2 libsdl1.2debian libswscale6 libupnp13 libvpx7
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  cmus cmus-plugin-ffmpeg gir1.2-javascriptcoregtk-4.1 gir1.2-webkit2-4.1
  gstreamer1.0-libav libasound2-plugins libavfilter9 libavformat60 libavif16
  libchromaprint1 libcodec2-1.2 libfreerdp-server2-2 libfreerdp2-2 libgd3
  libixml11 libjavascriptcoregtk-4.0-18 libjavascriptcoregtk-4.1-0
  libjavascriptcoregtk-6.0-1 libplacebo338 libpostproc57 libsvtav1enc1d1
  libswscale7 libupnp17 libvlc-bin libvlc5 libvlccore9 libwebkit2gtk-4.0-37
  libwebkit2gtk-4.1-0 libwebkitgtk-6.0-4 libwinpr2-2 vlc-bin vlc-data vlc-l10n
  vlc-plugin-access-extra vlc-plugin-base vlc-plugin-notify vlc-plugin-qt
  vlc-plugin-samba vlc-plugin-skins2 vlc-plugin-video-output
  vlc-plugin-video-splitter vlc-plugin-visualization
Suggested packages:
  libcuda1 libnvcuvid1 libnvidia-encode1 freerdp2-x11 libgd-tools
  gstreamer1.0-alsa vlc-plugin-fluidsynth vlc-plugin-jack vlc-plugin-pipewire
  vlc-plugin-svg libdvdcss2
The following packages will be REMOVED:
  libavcodec59 libavfilter8 libavformat59 libavif15 libsvtav1enc1
The following NEW packages will be installed:
  libavcodec60 libavfilter9 libavformat60 libavif16 libcodec2-1.2 libixml11
  libplacebo338 libpostproc57 libsvtav1enc1d1 libswscale7 libupnp17
The following packages will be upgraded:
  cmus cmus-plugin-ffmpeg gir1.2-javascriptcoregtk-4.1 gir1.2-webkit2-4.1
  gstreamer1.0-libav libasound2-plugins libchromaprint1 libfreerdp-server2-2
  libfreerdp2-2 libgd3 libjavascriptcoregtk-4.0-18 libjavascriptcoregtk-4.1-0
  libjavascriptcoregtk-6.0-1 libvlc-bin libvlc5 libvlccore9
  libwebkit2gtk-4.0-37 libwebkit2gtk-4.1-0 libwebkitgtk-6.0-4 libwinpr2-2 vlc
  vlc-bin vlc-data vlc-l10n vlc-plugin-access-extra vlc-plugin-base
  vlc-plugin-notify vlc-plugin-qt vlc-plugin-samba vlc-plugin-skins2
  vlc-plugin-video-output vlc-plugin-video-splitter vlc-plugin-visualization
33 upgraded, 11 newly installed, 5 to remove and 61 not upgraded.
[...]

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
APT::Sandbox "";
APT::Sandbox::User "_apt";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image-[a-z0-9]*$";
APT::NeverAutoRemove:: "^linux-image-[a-z0-9]*-[a-z0-9]*$";
APT::VersionedKernelPackages "";
APT::VersionedKernelPackages:: "linux-.*";
APT::VersionedKernelPackages:: "kfreebsd-.*";
APT::VersionedKernelPackages:: "gnumach-.*";
APT::VersionedKernelPackages:: ".*-modules";
APT::VersionedKernelPackages:: ".*-kernel";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "tasks";
APT::Move-Autobit-Sections "";
APT::Move-Autobit-Sections:: "oldlibs";
APT::AutoRemove "";
APT::AutoRemove::SuggestsImportant "false";
APT::Clean-Installed "false";
APT::Update "";
APT::Update::Post-Invoke-Success "";
APT::Update::Post-Invoke-Success:: "test -x /usr/bin/apt-show-versions || exit 
0 ; apt-show-versions -i";
APT::Update::Post-Invoke-Success:: "/usr/bin/test -e 
/usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && 
/usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call 
--system --dest org.freedesktop.PackageKit --object-path 
/org/freedesktop/PackageKit --timeout 4 --method 
org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo 
> /dev/null";
APT::Update::Post-Invoke-Success:: "if /usr/bin/test -w /var/cache/swcatalog -a 
-e /usr/bin/appstreamcli; then appstreamcli refresh --source=os > /dev/null || 
true; fi";
APT::Architectures "";
APT::Architectures:: "amd64";
APT::Compressor "";
APT::Compressor::. "";
APT::Compressor::.::Name ".";
APT::Compressor::.::Extension "";
APT::Compressor::.::Binary "";
APT::Compressor::.::Cost "0";
APT::Compressor::zstd "";
APT::Compressor::zstd::Name "zstd";