NetBSD Problem Report #51465

From he@smistad.uninett.no  Fri Sep  9 11:45:24 2016
Return-Path: <he@smistad.uninett.no>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BD0097A26F
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  9 Sep 2016 11:45:24 +0000 (UTC)
Message-Id: <20160909114518.0780F43EA58@smistad.uninett.no>
Date: Fri,  9 Sep 2016 13:45:18 +0200 (CEST)
From: he@NetBSD.org
Reply-To: he@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: "pkgin: empty non-autoremovable package list" error message unhelpful
X-Send-Pr-Version: 3.95

>Number:         51465
>Category:       pkg
>Synopsis:       "pkgin: empty non-autoremovable package list" error message unhelpful
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    imil
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 09 11:50:00 +0000 2016
>Last-Modified:  Fri Sep 09 12:30:52 +0000 2016
>Originator:     he@NetBSD.org
>Release:        NetBSD 6.1
>Organization:
	None
>Environment:
System: NetBSD stats3..... 6.1_STABLE NetBSD 6.1_STABLE (SD_VMT_TWEAK) #0: Mon Aug 22 17:31:39 CEST 2016  root@stats......:/b/obj/sys/arch/i386/compile/SD_VMT_TWEAK i386
Architecture: i386
Machine: i386
>Description:

	I'm using "pkgin" and binary packages for upgrade.

	It appears that in certain situations when doing "pkgin
	full-upgrade", pkgin can end up emitting this error message:

	pkgin: empty non-autoremovable package list

	For a naive system administrator this message may appear quite
	meaningless, and it gives no hint as to what might be the
	actual root cause of this problem -- whether it's a particular
	package which is installed (which one?) which causes the
	problem or ...

	As it turns out, this problem appears to be fixable with
	either "pkg_admin rebuild" and/or "pkg_admin rebuild-tree",
	ref.:

stats3# pkgin up
processing remote summary (http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/6.1/All)...
pkg_summary.bz2                     100% 2006KB 200.6KB/s  22.1KB/s   00:10    
stats3# pkgin fug
pkgin: empty non-autoremovable package list
stats3# pkg_admin rebuild

Stored 37911 files and 9 explicit directories from 227 packages in /var/db/pkg/pkgdb.byfile.db.
Done.
stats3# pkg_admin rebuild-tree
Done.
stats3# pkgin fug
reading local summary...
processing local summary...
calculating dependencies... done.

6 packages to be upgraded:

php56-gd-5.6.24 php56-bcmath-5.6.24 ap24-php56-5.6.24 python27-2.7.11nb2 php-5.6.24 apache-2.4.23

6 packages to be installed (31M to download, 577K to install):

python27-2.7.12 php-5.6.25 apache-2.4.23nb2 php56-gd-5.6.25 php56-bcmath-5.6.25 ap24-php56-5.6.25

proceed ? [Y/n] y
downloading packages...
...

	However, there is nothing in the error message which suggests
	this might be the problem.  The error message is therefore
	... unhelpful and should most probably be improved.

>How-To-Repeat:
	See above.

	I'm not entirely certain what brought me into this situation;
	it's conceivable it's a consequence of an earlier "pkgin fug".

>Fix:
	Improve error message, hint at dependency database rebuild?

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->imil
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Fri, 09 Sep 2016 12:30:52 +0000
Responsible-Changed-Why:
Over to maintainer


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.