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

Bug#819830: apt: unhelpful error message when trying to install build-dependencies for cargo in testing



Package: apt
Version: 1.2.9

Dear maintainers:

On a stretch chroot I'm unable to do this:


# apt-get build-dep cargo
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:
 builddeps:cargo : Depends: libcurl4-openssl-dev but it is not going to be installed
 E: Unable to correct problems, you have held broken packages.


Ok, let's try to install libcurl4-openssl-dev by hand:


# apt-get install libcurl4-openssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
[...]
Do you want to continue? [Y/n]


I answer "yes" and the libcurl4-openssl-dev package is now installed.

Let's try again:


# apt-get build-dep cargo
Reading package lists... Done
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:
 builddeps:cargo : Depends: libcurl4-openssl-dev but it is not going to be installed
 E: Unable to correct problems, you have held broken packages.


But it's installed! How is this possible?


Information that may be relevant: "apt-cache showsrc cargo" shows this:

Package: cargo
[...]
Build-Depends: debhelper (>= 9.20141010), dpkg-dev (>= 1.17.14), rustc (>= 1.1), curl, pkg-config, cmake, git, cargo (>= 0.7.0) <stage2>, python-dulwich <!stage2>, python-pytoml <!stage2>, ca-certificates, bash-completion, libhttp-parser-dev, libcurl4-openssl-dev, libssh2-1-dev, libgit2-dev, libssl-dev, zlib1g-dev
[...]


I believe testing is inconsistent right now, because installing
libgit2-dev by hand removes libcurl4-openssl-dev.

But even in such case, the message from apt is very misleading, as it
says libcurl4-openssl-dev may not be installed, which, alone, is not true.

It should probably say that libgit2-dev and libcurl4-openssl-dev may
not be both installed.


Thanks.


Reply to: