Hola Thomas Goirand <z...@debian.org>
el Tue, 09 Nov 2010 19:10:45 +0800 escribiste:

> What I don't understand, is that I do have php-pear and php-net-smtp on
> my system, and it isn't creating any conflict at all. php-net-smtp on
> Lenny doesn't even carry a folder in /usr/share/php/doc. I've tried to
> apt-get --reinstall install both php-pear and php-net-smtp, and it
> worked well. That leads me to believe that the issue is when upgrading
> from php-pear AND php-net-smtp in Lenny (but that's only a wild guess)
> to Squeeze.

I had installed php-pear 5.2.6.dfsg.1-1+lenny9 and php-net-smtp 1.3.1-1.
These are the current versions in lenny.

Then I upgrade lenny to squeeze, and apt-get wants to upgrade php-net-smtp
to version 1.4.2-1. I don't know why apt-get doesn't upgrade php-pear too,
this would avoid the problem.

And during the upgrade I got:

Preparando para reemplazar php-net-smtp 1.3.1-1 (usando 
.../php-net-smtp_1.4.2-1_all.deb) ...
Desempaquetando el reemplazo de php-net-smtp ...
dpkg: error al procesar /var/cache/apt/archives/php-net-smtp_1.4.2-1_all.deb 
(--unpack):
 intentando sobreescribir `/usr/share/php/doc', que está también en el paquete 
php-pear

> 
> Can you explain a bit more how you had the issue? I'd be happy to fix
> it, but currently, I couldn't reproduce it.

I've been making some tests and it is a little messy all this.

I have reproduced it this way:

- I start with a newly installed squeeze inside QEMU
- I install php5-common and php5-cli, without recommends, from squeeze.
  This is to avoid dependency problems later.
- I install with dpkg php-pear version 5.2.6.dfsg1-1lenny9 (the one from lenny)
- I install with dpkg php-net-smtp 1.3.1-1 (fom lenny). Tell dpkg to ignore the
  dependency on php-net-socket.

Now you have the system more or less as I had it before the upgrade.

Now try to upgrade ONLY php-net-smtp:

# aptitude install php-net-smtp

and you get the error.

If you upgrade php-pear before (or at the same time as) php-net-smtp you
won't get the error. Don't know why.

Cheers,
Gonzalo.

-- 
Gonzalo Pérez de Olaguer Córdoba <g...@iies.es> --- www.gpoc.es
PGP key 2861C704 --- F206 5671 6789 425D 111C  1302 214F 1934 2861 C704

Attachment: signature.asc
Description: PGP signature

Reply via email to