[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg package "stuck"



Florian Ernst wrote:

Hello David!

On Thu, Nov 20, 2003 at 09:42:49AM +0000, David Selby wrote:

My dpkg database seems to be slightly corrupted with respect to the "imgsizer" package

If I try to install it I get:
[...]
dpkg: parse error, in file `/var/lib/dpkg/status' near line 55249 package `imgsizer':
missing version
E: Sub-process /usr/bin/dpkg returned an error code (2)
[...]
/var/lib/dpkg/ststus contains ....

 55244
 55245 Package: imgsizer
 55246 Status: purge ok installed
 55247 Priority: optional
 55248 Section: web
 55249
[...]


Hm, this looks OK to me.

Perhaps you could try to use one of the backups from /var/lib/dpkg/ or
even /var/backup/, ie. do a diff -u between your current status and a
backup, note the changes, if any, copy the backup over the current
file and redo, that is reinstall / remove, all changes.

Cheers,
Fl
o

I tried diff, between status & status-old, the only difference being imgsizer. the -old version had version numbers etc ...

 55245 Package: imgsizer
 55246 Status: install ok installed
 55247 Priority: optional
 55248 Section: web
 55249 Installed-Size: 72
 55250 Maintainer: Peter S Galbraith <psg@debian.org>
 55251 Version: 2.1-5
55252 Depends: imagemagick | file, imagemagick | libjpeg-progs, python (>= 2.1), pytho n (<< 2.2) 55253 Description: Add WIDTH and HEIGHT attributes to IMG tags in HTML files.
 55254  The imgsizer script automates away the tedious task of creating and
55255 updating the extension HEIGHT and WIDTH parameters in HTML IMG tags. 55256 These parameters help many browsers (including Netscape) to multi-thread 55257 image loading, instead of having to load images in strict sequence in 55258 order to have each one's dimensions available so the next can be placed. 55259 This generally allows text on the remainder of the page to load much
 55260  faster.
 55261  .
55262 The package needs either the imagemagick package or both the file and
 55263  libjpeg-progs packages.
 55264

So (With backups) I copied this to status .... and it works ...

debian:/var/lib/dpkg# dpkg -P imgsizer
(Reading database ... 83158 files and directories currently installed.)
Removing imgsizer ...

debian:/var/lib/dpkg# apt-get install imgsizer
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
 imgsizer
0 packages upgraded, 1 newly installed, 0 to remove and 1  not upgraded.
Need to get 0B/9474B of archives. After unpacking 73.7kB will be used.
Media Change: Please insert the disc labeled 'Debian GNU/Linux 3.0 r0 _Woody_ - Official i386 Binary-1 (20020720)' in the drive '/cdrom/' and press enter

Selecting previously deselected package imgsizer.
(Reading database ... 83152 files and directories currently installed.)
Unpacking imgsizer (from .../imgsizer_2.1-5_all.deb) ...
Setting up imgsizer (2.1-5) ...

debian:/var/lib/dpkg#

& the app works !! :-)

Cheers Mate
Dave







Reply to: