Re: How to properly move a file from a .deb to another one ?
Xavier Roche <rocheml@httrack.com> writes:
> Goswin von Brederlow a écrit :
>> If you see a removal attempt that fails and aborts the upgrading then
>> it shouldn't be dpkgs doing. Could it be that one of the maintainer
>> scripts attempts to clean up and calls rmdir?
>
> dpkg: warning - unable to delete old file `/usr/share/doc/httrack/html/server/sfx': Directory not empty
> dpkg: warning - unable to delete old file `/usr/share/doc/httrack/html/server': Directory not empty
file? dir? Is dpkg confused about the type of server/sfx and server?
Or is that just a broken warning?
> There are no specific script to cleanup - everything is done by dh_* scripts.
>
> *BUT* note that /usr/share/doc/httrack/html is actually a simlink to
> ../../httrack/html (the reason is BUG 362836, which pointed that
You mean ../../../httrack/html, right?
> "Packages must not require the existence of any files in
> /usr/share/doc/ in order to function", and hence creating this
> simlink allow to respect DFSG without breaking the package)
>
> Note that not only dpkg is issuing a warning, but also dies some time later in horrible screams:
If /usr/share/doc/httrack/html is a symlink then you should not have
any files in it in the deb. You did something seriously wrong there to
make this happen, like create the link in preinst but also have the
dir in the package or something. Or have files in a directory in the
deb (webhttrack) that another package (httrack) has as symlink.
> dpkg: error processing webhttrack (--install):
> package webhttrack is not ready for configuration
> cannot configure (current status `config-files')
Something strange happened there. Is that reproducable when you
install the old version and upgrade again (e.g. in a clean chroot)?
> Just trying the 'dpkg -i' command again is solving the issue, but, err, this isn't something clean I guess.
>
> I rechecked the package debian/ files, and I still don't understand where I screwed up.
>
>
> Full log:
> ---------
>
>
> linux:~# dpkg -i /tmp/old/*.deb
> Selecting previously deselected package httrack-doc.
> (Reading database ... 95905 files and directories currently installed.)
> Unpacking httrack-doc (from .../httrack-doc_3.40.4-1_all.deb) ...
> Selecting previously deselected package httrack.
> Unpacking httrack (from .../old/httrack_3.40.4-1_i386.deb) ...
> Selecting previously deselected package libhttrack-dev.
> Unpacking libhttrack-dev (from .../libhttrack-dev_3.40.4-1_i386.deb) ...
> Selecting previously deselected package libhttrack1.
> Unpacking libhttrack1 (from .../libhttrack1_3.40.4-1_i386.deb) ...
> Selecting previously deselected package proxytrack.
> Unpacking proxytrack (from .../proxytrack_3.40.4-1_i386.deb) ...
> Selecting previously deselected package webhttrack.
> Unpacking webhttrack (from .../webhttrack_3.40.4-1_i386.deb) ...
> Setting up httrack-doc (3.40.4-1) ...
>
> Setting up libhttrack1 (3.40.4-1) ...
>
> Setting up proxytrack (3.40.4-1) ...
> Setting up webhttrack (3.40.4-1) ...
>
> Setting up httrack (3.40.4-1) ...
> Setting up libhttrack-dev (3.40.4-1) ...
>
> linux:~# dpkg -i /tmp/new/*.deb
> dpkg: considering removing webhttrack in favour of httrack-doc ...
> dpkg: yes, will remove webhttrack in favour of httrack-doc.
> (Reading database ... 96188 files and directories currently installed.)
> Preparing to replace httrack-doc 3.40.4-1 (using .../httrack-doc_3.41.6-1_all.deb) ...
> Unpacking replacement httrack-doc ...
> Preparing to replace httrack 3.40.4-1 (using .../new/httrack_3.41.6-1_i386.deb) ...
> Unpacking replacement httrack ...
> Preparing to replace libhttrack-dev 3.40.4-1 (using .../libhttrack-dev_3.41.6-1_i386.deb) ...
> Unpacking replacement libhttrack-dev ...
> Preparing to replace libhttrack1 3.40.4-1 (using .../libhttrack1_3.41.6-1_i386.deb) ...
> Unpacking replacement libhttrack1 ...
> Preparing to replace proxytrack 3.40.4-1 (using .../proxytrack_3.41.6-1_i386.deb) ...
> Unpacking replacement proxytrack ...
> Unpacking webhttrack (from .../webhttrack_3.41.6-1_i386.deb) ...
> dpkg: warning - unable to delete old file `/usr/share/doc/httrack/html/server/sfx': Directory not empty
> dpkg: warning - unable to delete old file `/usr/share/doc/httrack/html/server': Directory not empty
> Setting up httrack-doc (3.41.6-1) ...
>
> Setting up libhttrack1 (3.41.6-1) ...
>
> Setting up proxytrack (3.41.6-1) ...
> dpkg: error processing webhttrack (--install):
> package webhttrack is not ready for configuration
> cannot configure (current status `config-files')
> Setting up httrack (3.41.6-1) ...
> Setting up libhttrack-dev (3.41.6-1) ...
>
> Errors were encountered while processing:
> webhttrack
Sorry, this escapes my knowledge. You might want to ask the dpkg ML if
it isn't having the files in the wrong place mentioned above.
MfG
Goswin
Reply to: