pkg_version: the package info for package '...' is corrupt
[[ I asked about this problem on the -questions list a couple of days ago, but didn't get any relevant replies, so I'm trying again here on the -ports list. Apologies if you see this twice. ]] A couple of days ago my system just simply decided to power itself off (twice) whilst I was in the middle of doing portupgrade -a. I have since learned that the unscheduled and unexpected power offs were due to a CPU cooling problem. I believe that I have that problem in hand now. Separately however, and probably as result of the sudden power offs, when I run pkg_version now I am getting many messages relating to various of my installed packages, all having the following general form: pkg_version: the package info for package 'PKG' is corrupt where `PKG' is the name of some package or another that I have installed. I have at least 6 such messages for different packages I have installed... and probably more. I googled around a bit and did not find any good explanation for the above error or, more importantly, what to do about it. I gather however that my package data base has become corrupted. OK, so how does one rebuild that from scratch? Please don't tell me that I have to reinstall every bleedin' port from scratch! Regards, rfg P.S. Oh! And by the way, I just happen to have made a full system backup quite recently. Do I just simply need to get the entire contents of /var/db/pkg/ from that backup, and then do rm -fr /var/db/pkg and then copy my backup copy of /var/db/pkg to the real /var/db/pkg ? Will that fix the problem? ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: pkg_version: the package info for package '...' is corrupt
2013-04-02 11:08, Ronald F. Guilmette skrev: [[ I asked about this problem on the -questions list a couple of days ago, but didn't get any relevant replies, so I'm trying again here on the -ports list. Apologies if you see this twice. ]] A couple of days ago my system just simply decided to power itself off (twice) whilst I was in the middle of doing portupgrade -a. I have since learned that the unscheduled and unexpected power offs were due to a CPU cooling problem. I believe that I have that problem in hand now. Separately however, and probably as result of the sudden power offs, when I run pkg_version now I am getting many messages relating to various of my installed packages, all having the following general form: pkg_version: the package info for package 'PKG' is corrupt where `PKG' is the name of some package or another that I have installed. I have at least 6 such messages for different packages I have installed... and probably more. I googled around a bit and did not find any good explanation for the above error or, more importantly, what to do about it. I gather however that my package data base has become corrupted. OK, so how does one rebuild that from scratch? Please don't tell me that I have to reinstall every bleedin' port from scratch! Regards, rfg P.S. Oh! And by the way, I just happen to have made a full system backup quite recently. Do I just simply need to get the entire contents of /var/db/pkg/ from that backup, and then do rm -fr /var/db/pkg and then copy my backup copy of /var/db/pkg to the real /var/db/pkg ? Will that fix the problem? ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org Are you using pkg? If so the command should be pkg version without the underscore. /Leslie PS: Your private mail address bounces. I've tried two different SMTP Servers! r...@tristatelogic.com: host server1.tristatelogic.com[69.62.255.118] said: 550 5.7.1 mx1.bjare.net[212.31.160.3]: Client host rejected: bjare.net is BLACKLISTED - Use http://www.tristatelogic.com/contact.html (in reply to RCPT TO command) 550 5.7.1 c-4-202-233-83.cust.bredband2.com[83.233.202.4]: Client host rejected: cust.bredband2.com is BLACKLISTED - Use http://www.tristatelogic.com/contact.html 550 5.1.1 r...@tristatelogic.com... User unknown 554 5.5.1 Error: no valid recipients ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: pkg_version: the package info for package '...' is corrupt
On 4/2/2013 11:41 AM, Leslie Jensen wrote: 2013-04-02 11:08, Ronald F. Guilmette skrev: [[ I asked about this problem on the -questions list a couple of days ago, but didn't get any relevant replies, so I'm trying again here on the -ports list. Apologies if you see this twice. ]] A couple of days ago my system just simply decided to power itself off (twice) whilst I was in the middle of doing portupgrade -a. I have since learned that the unscheduled and unexpected power offs were due to a CPU cooling problem. I believe that I have that problem in hand now. Separately however, and probably as result of the sudden power offs, when I run pkg_version now I am getting many messages relating to various of my installed packages, all having the following general form: pkg_version: the package info for package 'PKG' is corrupt where `PKG' is the name of some package or another that I have installed. I have at least 6 such messages for different packages I have installed... and probably more. I googled around a bit and did not find any good explanation for the above error or, more importantly, what to do about it. I gather however that my package data base has become corrupted. OK, so how does one rebuild that from scratch? Please don't tell me that I have to reinstall every bleedin' port from scratch! Regards, rfg P.S. Oh! And by the way, I just happen to have made a full system backup quite recently. Do I just simply need to get the entire contents of /var/db/pkg/ from that backup, and then do rm -fr /var/db/pkg and then copy my backup copy of /var/db/pkg to the real /var/db/pkg ? Will that fix the problem? ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org Are you using pkg? If so the command should be pkg version without the underscore. No, this is the old pkg_version which produces this output. With pkgng, the database is atomic thanks to sqlite, thus this problem would not have occured. /Leslie PS: Your private mail address bounces. I've tried two different SMTP Servers! r...@tristatelogic.com: host server1.tristatelogic.com[69.62.255.118] said: 550 5.7.1 mx1.bjare.net[212.31.160.3]: Client host rejected: bjare.net is BLACKLISTED - Use http://www.tristatelogic.com/contact.html (in reply to RCPT TO command) 550 5.7.1 c-4-202-233-83.cust.bredband2.com[83.233.202.4]: Client host rejected: cust.bredband2.com is BLACKLISTED - Use http://www.tristatelogic.com/contact.html 550 5.1.1 r...@tristatelogic.com... User unknown 554 5.5.1 Error: no valid recipients ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: pkg_version: the package info for package '...' is corrupt
Ok, first, my apologies to Leslie Jensen about the e-mail bounce. It is nothing personal, believe me. I just have a personal policy of locally blacklisting any and all domains that send me spam. (Apparently, at one time or another, I received some spam from bjare.net.) I believe that if _everybody_... or even just 10% of everybody... did as I do, then ISPs would finally take seriously their spam outflow problems. (Most of them don't at present, and that explains why there is so much spam.) Now, as regards to pkg_version versus pkg version I have never even seen the latter, so I don't know a damn thing about that. Furthermore, although there does appear to be an executable named /usr/sbin/pkg present on my system, whatever the heck it is, it does not seem to have any associated man page. :-( So anyway, I have never used it, I don't know what it even does, and I would still not know how to use it, even if you held a gun to my head. Regarding Julien Laffaye comment(s) relating to pkgng, I have also never even heard of that before now. What is it and where do I get it? And if it is so wonderful... and if what I am using is considered old... then why isn't this new pkgng thing the default in/on 9.1-RELEASE? (I also apparently have no man page for anything called pkgng on my system.) Anyway, athough I do thank both Leslie Jensen and Julien Laffaye for their comments and attempts to help, I still am in DIRE need of an answer to my original question. I have, apparently, over 50 of my installed ports that pkg_version is now telling me are in some *unspecified way* corrupt and I still need (and am desperately begging for) someone to tell me how to resolve that problem, exactly. As I have said, I _do_ have a recent full system backup, but that doesn't help me unless and until someone tells me which file or files from that, exactly, I should be restoring in order to eliminate this problem. Could someone kindly do that, please? Regards, rfg P.S. I do most seriously wonder if whoever engineered the FreeBSD ports system ever realized how dramatically UNhelpful a message like the following actually is: pkg_version: the package info for package 'evince-2.32.0_9' is corrupt I do not intend to offend anyone, but to be frank, this is the kind of a message I would expect out of a Windows system, i.e. a message that some- thing is broken, but providing -zero- details regarding what exactly is broken, where it is located, or, most importantly, how to begin to fix the problem. When I am using Windows, I _expect_ to be treated like a luser... i.e. one who cannot be trusted with too much information. When I am using any kind of *NIX system however, I tend to expect the exact opposite, and am rather unhappy when critical information is hidden from me. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: pkg_version: the package info for package '...' is corrupt
On 4/2/2013 10:30 PM, Ronald F. Guilmette wrote: Ok, first, my apologies to Leslie Jensen about the e-mail bounce. It is nothing personal, believe me. I just have a personal policy of locally blacklisting any and all domains that send me spam. (Apparently, at one time or another, I received some spam from bjare.net.) I believe that if _everybody_... or even just 10% of everybody... did as I do, then ISPs would finally take seriously their spam outflow problems. (Most of them don't at present, and that explains why there is so much spam.) Now, as regards to pkg_version versus pkg version I have never even seen the latter, so I don't know a damn thing about that. Furthermore, although there does appear to be an executable named /usr/sbin/pkg present on my system, whatever the heck it is, it does not seem to have any associated man page. :-( So anyway, I have never used it, I don't know what it even does, and I would still not know how to use it, even if you held a gun to my head. Regarding Julien Laffaye comment(s) relating to pkgng, I have also never even heard of that before now. What is it and where do I get it? And if it is so wonderful... and if what I am using is considered old... then why isn't this new pkgng thing the default in/on 9.1-RELEASE? (I also apparently have no man page for anything called pkgng on my system.) https://wiki.freebsd.org/pkgng /usr/bin/pkg is the binary that will bootrap pkgng, installing the real binary and manpages. Anyway, athough I do thank both Leslie Jensen and Julien Laffaye for their comments and attempts to help, I still am in DIRE need of an answer to my original question. I have, apparently, over 50 of my installed ports that pkg_version is now telling me are in some *unspecified way* corrupt and I still need (and am desperately begging for) someone to tell me how to resolve that problem, exactly. As I have said, I _do_ have a recent full system backup, but that doesn't help me unless and until someone tells me which file or files from that, exactly, I should be restoring in order to eliminate this problem. Could someone kindly do that, please? You can try ports-mgmt/portmaster, which has some options to try to repair the /var/db/pkg database. If the backup is fresh and you did not install new packages since, you can just copy the /var/db/pkg from the backup to the system (backup-ing the broken one, we never know, you might need it...) Regards, rfg P.S. I do most seriously wonder if whoever engineered the FreeBSD ports system ever realized how dramatically UNhelpful a message like the following actually is: pkg_version: the package info for package 'evince-2.32.0_9' is corrupt I do not intend to offend anyone, but to be frank, this is the kind of a message I would expect out of a Windows system, i.e. a message that some- thing is broken, but providing -zero- details regarding what exactly is broken, where it is located, or, most importantly, how to begin to fix the problem. When I am using Windows, I _expect_ to be treated like a luser... i.e. one who cannot be trusted with too much information. When I am using any kind of *NIX system however, I tend to expect the exact opposite, and am rather unhappy when critical information is hidden from me. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org