pkg is trying to update itself to the wrong version

Pierre Abbat phma at bezitopo.org
Mon Dec 16 12:34:27 PST 2013


I have pkg 1.1.4 and I tried to install dejagnu (to work on the gdb thread 
problem, see my other post). It said "New version of pkg detected; it needs to 
be installed first." So it tries to upgrade to 1.2.1 and fails to download the 
package. I checked the website repository; the pkg package is version 1.2.3. I 
downloaded packagesite.txz, uncompressed it, and found this line:

{"name":"pkg","origin":"ports-mgmt/pkg","version":"1.2.3","comment":"New 
generation package 
manager","arch":"dragonfly:3.8:x86:64","maintainer":"portmgr at FreeBSD.org","prefix":"/usr/local","www":"http://wiki.freebsd.org/pkgng","path":"All/pkg-1.2.3.txz","sum":"9f6d7b27ba808b3c1249e37a380e8c496f0750fe2218f768e08990e47ea18ca4","licenselogic":"single","licenses":
["BSD"],"flatsize":8248070,"pkgsize":1947128,"desc":"New Generation package 
management tool for FreeBSD\n\nWWW: 
http://wiki.freebsd.org/pkgng","categories":["ports-mgmt"],"shlibs_required":
["libpkg.so.1"],"message":"If you are upgrading from the old package format, 
first run:\n\n  # pkg2ng"}

I ran pkg2ng, pkg update, and pkg install pkg. It still tries to upgrade to 
1.2.1. There's a file /var/db/pkg/repo-packagesite.sqlite, but I don't know how 
to read it. How do I fix this?

Pierre
-- 
When a barnacle settles down, its brain disintegrates.
Já não percebe nada, já não percebe nada.




More information about the Users mailing list