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

Re: testing config/preinst mods: one approach

Jay Berkenbilt <ejb@ql.org> wrote:

> To use this approach, place these replacement apt-extracttemplates and
> dpkg-deb scripts in your path before /usr/bin.  Extract the original
> control files from a package and put them in a subdirectory of
> override directory named identically to the .deb file in
> /var/cache/apt/archives.  Then edit the modified files freely and
> install as usual.

I did this and get:

alhambra:~# apt-get install tetex-bin 2>&1 | tee 14.31.log
Reading Package Lists...
Building Dependency Tree...
Reading changelogs...
apt-extracttemplates: can't get archive from Check
1 packages upgraded, 0 newly installed, 0 to remove and 0  not upgraded.
Need to get 0B/3693kB of archives. After unpacking 24.6kB will be used.

USING /root/control-overrides/tetex-bin_2.0.2-14.31_i386.deb/

dpkg: error processing /var/cache/apt/archives/tetex-bin_2.0.2-14.31_i386.deb (--unpack):
 failed to open package info file `/var/lib/dpkg/tmp.ci/control' for reading: No such file or directory
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

I looked in the code of apt-extracttemplates, but I don't know much
Perl. It seems that it is getting the line "Check 0.5.00,1.2.34" from
its filehandle, but I don't understand this (there ain't such thing as
stdin (-|, right?) when I call apt-extracttemplates $filename)

Regards, Frank
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie

Reply to: