NetBSD Problem Report #51496

From  Fri Sep 23 10:14:33 2016
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 9B8B57A16D
	for <>; Fri, 23 Sep 2016 10:14:33 +0000 (UTC)
Message-Id: <>
Date: Fri, 23 Sep 2016 12:09:43 +0200 (CEST)
Subject: pkgin removes packages even though package exists in repository
X-Send-Pr-Version: 3.95

>Number:         51496
>Category:       pkg
>Synopsis:       pkgin removes packages even though package exists in repository
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 23 10:15:00 +0000 2016
>Closed-Date:    Wed Jun 13 10:01:26 +0000 2018
>Last-Modified:  Wed Jun 13 10:01:26 +0000 2018
>Release:        NetBSD 7.0
System: NetBSD 7.0 NetBSD 7.0 (GENERIC.201509250726Z) amd64
Architecture: x86_64
Machine: amd64
	While doing a "pkgin full-upgrade", I get this:	

smistad# pkgin fug
calculating dependencies... done.

1 packages to be upgraded:


2 packages to be removed: 


1 packages to be installed (975K to download, 1322B to install):


proceed ? [Y/n] n
smistad# pkgin se libreoffice
libreoffice5-bin-5.1.0  Integrated office productivity suite (binary pkg)
libreoffice43-  Office productivity suite, 4.x branch
libreoffice4-bin-4.4.7  Integrated office productivity suite (binary pkg)
libreoffice4-  Office productivity suite, 4.x branch
libreoffice- = Office productivity suite from The Document Foundation

=: package is installed and up-to-date
<: package is installed but newer version is available
>: installed package has a greater version than available package

	I went ahead and did the "pkgin fug" anyway, and patched it up
	afterwards by installing it, after having done "pkg_admin
	rebuild" and "pkg_admin rebuild-tree", but it still insisted
	on the same set of packages to be removed and not reinstalled.

	This behaviour violates (at best) the principle of least

	Why did pkgin insist on removing libreoffice?

	Why wasn't it reinstalled?  It *does* exist in the repository,
	and reinstalling it manually afterwards isn't a problem:

smistad# pkgin in libreoffice
calculating dependencies... done.

nothing to upgrade.
1 packages to be installed (257M to download, 943M to install):


proceed ? [Y/n] 
downloading packages...
libreoffice-             100%  257MB   3.6MB/s   0.9KB/s   01:11    
installing packages...
installing libreoffice-
$NetBSD: MESSAGE,v 1.1 2015/08/12 00:57:20 ryoon Exp $

To enable Java support, please set JDK path in Tools->Options->Advanced.
pkg_install warnings: 0, errors: 0
reading local summary...
processing local summary...
marking libreoffice- as non auto-removable

	Don't exactly know...

	Sorry, none provided.



State-Changed-From-To: open->closed
State-Changed-When: Wed, 13 Jun 2018 10:01:26 +0000
pkgin-0.11 fixes this by moving to in-place upgrades rather than remove then
reinstall, and the code which tried to figure out broken dependencies and then
remove them has been removed as, in this case, it could get confused.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.