DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 3rd June 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default 4 py-*** packages wouldn't accept uninstall or repair

Hi everybody ! I hope you all are doing well ..

I'm running OpenBSD -current
Code:
kern.version=OpenBSD 5.3-current (GENERIC.MP) #161: Mon May 27 10:59:35 MDT 2013
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
I've done something foolish which I unfortunately don't remember (might be when I killed some installation/removal process ) which caused this message to appear each time I install a package :

Code:
No pkgname in packing-list for py-configobj-4.5.3p3
No pkgname in packing-list for py-twisted-conch-11.1.0
No pkgname in packing-list for py-axiom-0.6.0p3
No pkgname in packing-list for py-crypto-2.6p0
pkg_add -D repair gets me nowhere :
Code:
Absolute name forbidden: /výîùéPÌìxúSa»[¦ã±4¼äþ"{ó®àààþGSÊzdá; at /usr/libdata/perl5/OpenBSD/PackingElement.pm line 210, <$fh> line 30, in /var/db/pkg/py-crypto-2.6p0/+CONTENTS,  at /usr/libdata/perl5/OpenBSD/PackingList.pm line 306, <$fh> line 30.
Neither can I repair nor remove any of that Fantastic_4 Team .. eg:

Code:
Fatal error: package py-twisted-conch-11.1.0 is missing a @name in plist
 at /usr/libdata/perl5/OpenBSD/Delete.pm line 99.
Any help is much appreciated .. Thank you very much.
Reply With Quote
  #2   (View Single Post)  
Old 3rd June 2013
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,806
Thanked 214 Times in 189 Posts
Default

Your package installation database records are stored in /var/db/pkg. Each installed package has a directory in this structure, containing specially named text files that begin with a "+" symbol. To address these files from your shell, you will have to either escape the symbol or address with a path, such as:

$ less ./+CONTENTS

It is my assumption that you have damaged this database.
Reply With Quote
  #3   (View Single Post)  
Old 4th June 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

Hi Teacher jggimi !
Thank you !
I once had ratpoison damaged (this time no fsck repairs and no unclean shutdown) ..
when I less ./+CONTENTS it says the file is binary (=damaged)
Maybe a foolish idea to solve the problem but I wonder :
having a similar disk , same kern.version , same laptop , can I just copy and paste the respective +CONTENTS of the 4 damaged packages to get them working again ? otherwise is there a solution for such a problem ?
Reply With Quote
  #4   (View Single Post)  
Old 4th June 2013
comet--berkeley comet--berkeley is offline
Shell Scout
 
Join Date: Apr 2009
Posts: 92
Thanked 1 Time in 1 Post
Default

I had trouble on a test system going from OpenBSD 5.2 to 5.3.

Several of the packages would not upgrade as my /var/pkg/db was damaged.

So I decided to just delete all packages and the database and start over.

Here are the steps I took.

1) Try to delete all packages:
#pkg_delete /var/db/pkg/*

2) For those packages that will not uninstall (damaged), download the package tar files from an OpenBSD ftp site and try re-installing them:
$ftp ftp.openbsd.org
get badpackage1.tgz
get badpackage2.tgz
....

#pkg_add -r -D badpackage1.tgz
#pkg_add -r -D badpackage2.tgz
...
3) After the "bad" packages are reinstalled, delete all packages again:
#pkg_delete /var/db/pkg/*

4) Now the database should be empty (undamaged) and you can reinstall all packages.
Reply With Quote
  #5   (View Single Post)  
Old 4th June 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

Hi comet--berkeley and thanks for the post !
unfortunately :
Code:
# pkg_add -r -D update py-twisted-conch-11.1.0.tgz
|No change in quirks-1.82Use of uninitialized value in string eq at /usr/libdata/perl5/OpenBSD/Signature.pm line 98.
Use of uninitialized value $_ in hash element at /usr/libdata/perl5/OpenBSD/PackageName.pm line 51.
Use of uninitialized value $_ in pattern match (m//) at /usr/libdata/perl5/OpenBSD/PackageName.pm line 57.
Can't locate object method "compare" via package "OpenBSD::PackageName::Stem" at /usr/libdata/perl5/OpenBSD/Signature.pm line 135.
other -D keywords fail too ..

Last edited by daemonfowl; 4th June 2013 at 02:27 PM.
Reply With Quote
  #6   (View Single Post)  
Old 4th June 2013
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,806
Thanked 214 Times in 189 Posts
Default

Please post the names and contents of the files in /var/db/pkg/py-twisted-conch-11.1.0.tgz/
Reply With Quote
  #7   (View Single Post)  
Old 4th June 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

Hi jggimi and thanks again for your constant Being-for-others ..
Code:
+CONTENTS    +DESC        +REQUIRED_BY +REQUIRING
Something funny happened after I had replaced the bad fatntastic 4 with good ones (from a similar disk) :
when I did a pkg_add -r -D update py-twisted it gave back lenthy error messages about bad checksums etc .. all I did afterwards is a pkg_delete -q for all 4 packages et voila :-)

Code:
pkg_info | grep py-
py-epsilon-0.6.0p2  small utility package for Divmod projects
py-openssl-0.13     Python interface to the OpenSSL library
py-setuptools-0.6.11p5v0 simplified packaging system for Python modules
py-sqlite2-2.6.0p3  SQLite3 adapter for Python
py-twisted-core-11.1.0 event-based Python framework (core module)
py-zopeinterface-3.6.1p2 object interface infrastructure from Zope 3
( I know it's a big daddy way of solving the problem .. sorry )
Reply With Quote
  #8   (View Single Post)  
Old 4th June 2013
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,806
Thanked 214 Times in 189 Posts
Default

Here in North America, we would say that was a brute force way of solving the problem.

I'm glad you were able to resolve it.
Reply With Quote
  #9   (View Single Post)  
Old 4th June 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

lol !
You're right Teacher ! I wanted to say : it was an unskillful way of solving the problem (thinking of grandpa when trying to put things into order ) .. :-) ..
Thanks again jggimi and comet--berkeley !
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Public WiFi and accept screens phyro OpenBSD Installation and Upgrading 10 10th January 2013 09:36 PM
Oracle gives 21 (new) reasons to uninstall Java J65nko News 0 18th February 2011 09:57 PM
How to get 'make' to accept all defaults for dependent packages Xeon FreeBSD Ports and Packages 1 12th February 2009 01:54 AM
uninstall xorg libraries for a server adrian_m FreeBSD Ports and Packages 1 26th January 2009 11:01 PM
Laptop Repair DrJ General Hardware 4 25th August 2008 02:30 PM


All times are GMT. The time now is 06:17 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick