On May 27 14:19:20, Siju George wrote: > Hi, > > The poser went off while I was installing packages ( awesome ) and > after the system came up it is behaving strangely printing junk > characters on the xterm for pkg_* related commands > > $ pkg_info > Package database already locked... awaiting release... ^C
So you were unning some other pkg_command simultaneously? > $ pkg_info > cairo-1.8.8p0 vector graphics library > gettext-0.17p0 GNU gettext > glib2-2.22.4 general-purpose utility library > glitz-0.5.6p2 OpenGL image compositing library > jpeg-7 IJG's JPEG compression utilities > libconfuse-2.6 configuration file parser library > libgamin-0.1.10 file and directory monitoring system > libiconv-1.13p0 character set conversion library > libid3tag-0.15.1bp~=grqly\^g...@f5x'/H9/0S'u,N_c*Okvm\9?q ky$xZ > A!Uj}'.`.O.xf<'. [|(9NW&`kJ/'yk^[[?1;2clibungif-4.1.4p1 tools and > library routines for working with GIF images > partial-bzip2-1.0.5 block-sorting file compressor, unencumbered > pcre-7.9 perl-compatible regular expression library > png-1.2.41 library for manipulating PNG images My _guess_ would be that your /var filesystem (or whatever holds /var/db/pkg/) is corrupted after the power failure; it might also explain the "database locked" message. Have you tried looking at /var/db/pkg/libid3tag-0.15.1bp3/+DESC /var/db/pkg/libungif-4.1.4p1/+DESC and the other "broken" descriptions manually? (No, you haven't.) > > I cannot install new packages du to these errors. > > $ sudo pkg_add awesome > No pkgname in packing-list for jpeg-7 > No pkgname in packing-list for libid3tag-0.15.1bp3 > awesome-2.3.6p0:libconfuse-2.6: ok (4 to go) > Error from > ftp://ftp.eu.openbsd.org/pub/OpenBSD/4.7/packages/amd64/python-2.5.4p3.tgz: > ftp: -: short write > 421 Service not available, remote server has closed connection. Have you googled for "ftp short write"? No, you haven't. Have you tried other mirrors? No, you haven't. > Error reading: Inappropriate ioctl for device at > /usr/libdata/perl5/OpenBSD/PackageRepository.pm line 466. > Can't find CONTENTS from > ftp://ftp.eu.openbsd.org/pub/OpenBSD/4.7/packages/amd64/python-2.5.4p3.tgz > awesome-2.3.6p0:libungif-4.1.4p1: ok (5 to go) > Can't install tiff-3.8.2p5 because of libraries > |library jpeg.63.0 not found > | not found anywhere > Direct dependencies for tiff-3.8.2p5 resolve to: jpeg-7 > Full dependency tree is jpeg-7 > ^Cawesome-2.3.6p0:bzip2-1.0.5|*************************** > | 53%Adjusting sha for /usr/local/lib/libbz2.a from > en1zzSDX29s+NtyH1y6nGsd5Qn3VxPR4RinW6EdOODs= to > pEf3xIsw+uUu3lbmqiHancxdlp8+Wo+6//wvBt4VkgY= > --- python-2.5.4p3 ------------------- > Can't install python-2.5.4p3: bad package > So I tried to delete all packages Why? > 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. > $ cd /var/packages/ There's no /var/packages/ > $ rm -rf * Why on earth did you do that (whatever it was)? > $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>,VlX2s,.? mWST/[@<QQ-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? > 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. Or, if it's a fresh install (guessing from the fact that you are only just installing your windowmanager), simply reinstall.

