On Thu, May 27, 2010 at 2:55 PM, Jan Stary <[email protected]> wrote:
> On May 27 14:19:20, Siju George wrote:
>>
>>
>> $ pkg_info
>> Package database already locked... awaiting release... ^C
>
> So you were running some other pkg_command simultaneously?
>

not at all! :-( I was bewildered! it went off the next time I typed
pkg_info though

>> $ pkg_info
>> cairo-1.8.8p0       vector graphics library
>> gettext-0.17p0      GNU gettext
>> glib2-2.22.4
>
> Have you tried looking at
> //pkg/livar/dbbid3tag-0.15.1bp3/+DESC
> /var/db/pkg/libungif-4.1.4p1/+DESC
> and the other "broken" descriptions manually?
> (No, you haven't.)
>

nope :-( didnt know they even existed.

>>
>>  I cannot install new packages du to these errors.
>
>> So I tried to delete all packages
>
> Why?
>

Just to see atleast pkg_delete will work

>> but it also gets stuck afte printing
>> these junk on screen :-(
>
> How exactly "stuck"? What "junk on screen" exactly?
> Jesus Christ, for the millionth time: quote your exact command
> and quote the exact response.
>

I copied and pasted the things that were exactly on screen.
May be I guess the mail you got doesn't show the junk characters for
some reasong it shows for me.
So I will try putting all the junk on screen between two lines for you.

========Junk Start==================================
~=gR qly\^g...@f5x'/H9/0S'u,N_c*Okvm\9?q      ky$xZ
> A!Uj}'.` .O.xf<'. [|(9NW&`kJ /'yk^[[?1;2c
@A     oFG" }j6ZWKFD)B7
Ge_F1Qq.Hq4gZ4>,VlX2s,.?               mWST/[@<QQ-Sit{H/!_qW2tl
                        B1a3[?SK 1P
==========Junk Stop================================

Are you able to see the junk?

>> $ cd /var/packages/
>
> There's no /var/packages/
>
>> $ rm -rf *

> Why on earth did you do that (whatever it was)?
>

$PKG_CACHE

>> $sudo pkg_delete cairo gettext glib2 glitz jpeg libconfuse libgamin
>> libiconv libungif partial-bzip2 pcre png
>>               <
>> Unknown element: @A     oFG" }j6ZWKFD)B7
>> Ge_F1Qq.Hq4gZ4>,VlX 2s,.?               mWST/[@<Q Q-Sit{H/!_qW2tl
>>                          B1a3[?SK 1P
>
> This makes me guess once again that your /var/db/pkg is broken.
> What exactly is the status of your filesystems aftr the power failure?
> Have they fscked successfuly? Have you restored anything?
>

The system came up after automated fsck fine :-)

>> What to do now? :-(
>
> First, read all the pkg_* manuals. Then get your /var/db/pkg
> into a usable state (just restore from backup). Then, run
> 'pkg_add -ui' with various "force" switches.
>

no backup it was a fresh install :-(

> Or, if it's a fresh install (guessing from the fact that you are
> only just installing your windowmanager), simply reinstall.
>
>

Yup thanks for taking time to write back Jan :-)

Will re install but I wonder what if it happens next time :-(
If I backup the /var/db/pkg every time before I install a package i
will be able to restore it and then force installation of missing
packages I guess.

Power had gone on me OpenBSD System amny time but I guess this was the
first time I got it during a pkg_add :-(

Thanks :-D

--Siju

Reply via email to