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

Bug#673939: zlib1g-dev: version 1:1.2.7.dfsg-7 requires an uninstallable dependency (zlib1g (= 1:1.2.7.dfsg-4))



On Tue, May 22, 2012 at 6:31 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
>> Log started: 2012-05-21  18:27:08
> [...]
>> Setting up libogg-dev (1.3.0-1) ...
>> dpkg: dependency problems prevent configuration of zlib1g-dev:i386:
>>  zlib1g-dev:i386 depends on zlib1g (= 1:1.2.7.dfsg-4); however:
>>   Version of zlib1g:i386 on system is 1:1.2.7.dfsg-5.
>
> And it is unable to recover.  A smarter package manager would realize
> it is time to download and unpack either the updated versions of
> zlib1g-dev and zlib1g-dbg (in effect continuing the interrupted
> upgrade) or the previous version of zlib1g (in effect rolling it back)
> or print some advice help the human operator to do so.

The newer versions should already be in /var/cache/apt/archives, so a
download doesn't need to happen (usually). A rollback can't happen
as downgrades aren't supported in debian (even if they quiet often work
for specific packages, but i wouldn't depend on that)

Recovering can be quiet a problem, and can depend on the overall
situation so it is not really easy. After all, if apt could print a nice
message detailing what an operator can do, why doesn't do this
itself instead of printing these lines… no, you get these sometimes
quiet cryptic messages because apt has no idea how to proceed.

So, Sophoklis, are you still in that situation?
If so, could you attach your /var/lib/dpkg/status to the bugreport
(or if you don't want to have this information public on the net,
 feel free to send it privately to me) please?

Recovery should be possible by either using dpkg directly or
helping apt: "apt-get install -f" tries to figure out everything
by itself. Add packages to this command and it will stop trying
for itself and present you with what your actions would cause
it to think.

Start with: apt-get install -f zlib1g-dev zlib1g-dbg
(This might be already the solution or)
apt might find addition violated dependencies.
With the file mentioned above i can help you in recovery as
well if you can't make it yourself.

I am pretty sure we can't fix apt to be "intelligent" in all possible
circumstances, but we might get it working in situations similar
to this one maybe.

Tip of the day: -f stands for --fix-broken, not for --force


Best regards

David Kalnischkies



Reply to: