misc/184645: "pkgng" corrupts package system

Philipp Engel mail at cypresscreek.de
Mon Dec 9 20:00:01 UTC 2013


>Number:         184645
>Category:       misc
>Synopsis:       "pkgng" corrupts package system
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 09 20:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Philipp Engel
>Release:        9.2-RELEASE
>Organization:
>Environment:
FreeBSD xxx 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013     root at bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Upgrade of pkg 1.2.1 to 1.2.2. from Ports failed. After compiling, package couldn't be installed because package system thought that pkg 1.2.2 is already installed. Package database was corrupted afterwards ("NO ORIGIN" errors). Magically, pkg 1.2.1 was not found anymore, and had to be installed again from package repo. Package database corruption was gone, but pkg 1.2.1 couldn't be upgraded again (vicious circle).

Deleted pkg 1.2.1 with "pkg delete -f pkg", in order to install it from Ports. Installation of 1.2.2 was successful, but now all package related commands lead to output

    "error on line 5 at column 44: 'unfinished value', character: '"

For instance, "make reinstall clean" of ports-mgmt/pkg:

    /usr/ports/ports-mgmt/pkg # make reinstall clean
    => Please update your ports tree and try again.
    *** [check-vulnerable] Error code 1

    Stop in /usr/ports/ports-mgmt/pkg.
    *** [reinstall] Error code 1

    Stop in /usr/ports/ports-mgmt/pkg.

Or, "portmaster -l":

    portmaster -l
    ===>>> Root ports (No dependencies, not depended on)
    ===>>> error
    ===>>> on
    ===>>> line
    ===>>> 5
    ===>>> at
    ===>>> column
    ===>>> 44:
    ===>>> 'unfinished
    ===>>> value',
    ===>>> character:
    ===>>> '
    ===>>> automounter-1.5
    ===>>> bsdinfo-0.22
    ===>>> dialog4ports-0.1.5_1
    ===>>> glproto-1.4.16
    [...]
>How-To-Repeat:
Fail of the upgrade of pkg 1.2.1 to 1.2.2 happened without a cause. How to reproduce this behaviour is unknown.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list