Hi,

Quoting Evgeniya Yavtushenko (2020-04-24 14:42:47)
> Unable to install package sbuild due to dependencies.  I tried to complete
> the following commands:
> 
> sudo apt-get install -y sbuild schroot debootstrap
> 
> and I got the next outcome:
> 
> Reading package lists... Done
> Building dependency tree       
> Reading state information... 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:
>  sbuild : Depends: libsbuild-perl (= 0.78.1-2) but it is not going to be 
> installed
> E: Unable to correct problems, you have held broken packages.
> 
> I have clear virtual machine with Debian GNU/Linux 10.

you don't. See further below:

> Please tell me how to fix it.
> 
> -- System Information:
> Debian Release: 10.3
>   APT prefers testing
>   APT policy: (500, 'testing'), (500, 'stable')

You are mixing "testing" and "stable" with equal apt priorities. This means
that apt will select the latest version for libsbuild-perl which is
0.79.0-1 in testing. Even more interesting:

> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 4.19.0-8-amd64 (SMP w/4 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
> LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
> 
> Versions of packages sbuild depends on:
> ii  adduser         3.118
> ii  libsbuild-perl  0.79.0-1
> ii  perl            5.30.0-9

You already have the libsbuild-perl version from testing installed. Apt will
not downgrade that version for you.

This is not an sbuild problem. Fix your apt sources and decide whether you want
to install sbuild from testing or stable.

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to