NetBSD Problem Report #51465

From  Fri Sep  9 11:45:24 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 BD0097A26F
	for <>; Fri,  9 Sep 2016 11:45:24 +0000 (UTC)
Message-Id: <>
Date: Fri,  9 Sep 2016 13:45:18 +0200 (CEST)
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:    jperkin
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 09 11:50:00 +0000 2016
>Last-Modified:  Tue Apr 03 14:32:28 +0000 2018
>Release:        NetBSD 6.1
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

	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",

stats3# pkgin up
processing remote summary (
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.
stats3# pkg_admin rebuild-tree
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.

	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".

	Improve error message, hint at dependency database rebuild?



Responsible-Changed-From-To: pkg-manager->imil
Responsible-Changed-When: Fri, 09 Sep 2016 12:30:52 +0000
Over to maintainer

Responsible-Changed-From-To: imil->pkg-manager
Responsible-Changed-When: Mon, 02 Apr 2018 09:34:47 +0000
imil observes

Responsible-Changed-From-To: pkg-manager->jperkin
Responsible-Changed-When: Tue, 03 Apr 2018 14:32:28 +0000
I'll take this.


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.