On 2010-02-13 10:56 +0100, Jakub Wilk wrote:

> * Anders Boström <and...@netinsight.net>, 2010-02-12, 09:23:
>>(Reading database ... 220052 files and directories currently installed.)
>>Preparing to replace python2.6-minimal 2.6.4-4 (using 
>>.../python2.6-minimal_2.6.4-5_amd64.deb) ...
>>mkdir: cannot create directory `/usr/local/lib/python2.6': Permission denied
>>dpkg: error processing 
>>/var/cache/apt/archives/python2.6-minimal_2.6.4-5_amd64.deb (--unpack):
>> subprocess new pre-installation script returned error exit status 1
>>
>>Debian Policy Manual, section 9.1.2
>><http://www.debian.org/doc/debian-policy/ch-opersys.html#s9.1.2>:
>>
>>As mandated by the FHS, packages must not place any files in
>>/usr/local, either by putting them in the file system archive to be
>>unpacked by dpkg or by manipulating them in their maintainer scripts.
>
> Please read further:
>
> However, the package may create empty directories below /usr/local so
> that the system administrator knows where to place site-specific
> files. These are not directories in /usr/local, but are children of
> directories in /usr/local. These directories (/usr/local/*/dir/)
> should be removed on package removal if they are empty. 

And going even further (only two paragraphs later):

Since `/usr/local' can be mounted read-only from a remote server,
these directories must be created and removed by the `postinst' and
`prerm' maintainer scripts and not be included in the `.deb' archive.
These scripts must not fail if either of these operations fail.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The bug is not that the preinst tries to create the directories, but
that it fails when it can't do it.

Sven



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to