Hi!

Appended is a shell log from me first installing nginx and then
replacing it with nginx-extras by installing it. This means /etc/nginx
is still existing the prior config is withheld from the removal of the
original nginx package. 

If then nginx-extras is installed with the old config and
/etc/nginx/site-* not existing the installation will fail. 

Have fun!

Andreas.

On Sat, Sep 29, 2012 at 11:42:45PM -0400, anarcat wrote:
> severity 688410 normal
> tags 688410 + unreproducible
> thanks
> 
> Hi,
> 
> On Sat, Sep 22, 2012 at 04:27:01PM +0200, Andreas Marschke wrote:
> > Hi! 
> > 
> > When installing nginx-{naxsi,light,full,extras} the postinst scripts
> > create a symlink in /etc/nginx/sites-enabled/default from
> > /etc/nginx/sites-available/default if /etc/nginx/sites-enabled/default
> > doesn't exist. This script does not check if /etc/nginx/sites-enabled or
> > /etc/nginx/sites-available are in existance.
> > 
> > This results in breakage of these packages when installing them on an
> > existing nginx configuration without sites-enabled/sites-available. 
> 
> The patch is okay, but I do not understand why this is necessary.
> 
> I could not actually reproduce this. I tried to upgrade from existing
> packages or purge my nginx install and pre-create /etc/nginx then
> install the package, I didn't see any such problems.
> 
> Could you clarify how we could reproduce this bug?
> 
> In the meantime, I am downgrading the severity of this bug as I do not
> see this affecting current installs on wheezy.
> 
> A.
> -- 
> We are discreet sheep; we wait to see how the drove is going, and then go
> with the drove.
>                         - Mark Twain



-- 
Cheers,

Andreas Marschke
(17:06) andreas@[duke] ~ $> ssh [email protected]
The authenticity of host '10.0.2.100 (10.0.2.100)' can't be established.
ECDSA key fingerprint is 18:42:f2:8d:af:2b:e5:ba:c2:a7:f9:06:95:5e:d8:a8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.0.2.100' (ECDSA) to the list of known hosts.
[email protected]'s password:
Linux debian 3.2.0-3-amd64 #1 SMP Mon Jul 23 02:45:17 UTC 2012 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Oct  7 15:00:35 2012
root@debian:~# clear
root@debian:~# apt-get install nginx
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  libgd2-noxpm libjpeg8 libpng12-0 libxml2 libxslt1.1 nginx-common nginx-full 
sgml-base xml-core
Vorgeschlagene Pakete:
  libgd-tools sgml-base-doc debhelper
Die folgenden NEUEN Pakete werden installiert:
  libgd2-noxpm libjpeg8 libpng12-0 libxml2 libxslt1.1 nginx nginx-common 
nginx-full sgml-base xml-core
0 aktualisiert, 10 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 2.314 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 4.955 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren [J/n]?
Holen: 1 http://ftp.de.debian.org/debian/ wheezy/main libxml2 amd64 
2.8.0+dfsg1-5 [903 kB]
Holen: 2 http://ftp.de.debian.org/debian/ wheezy/main libjpeg8 amd64 8d-1 [134 
kB]
Holen: 3 http://ftp.de.debian.org/debian/ wheezy/main libpng12-0 amd64 1.2.49-1 
[190 kB]
Holen: 4 http://ftp.de.debian.org/debian/ wheezy/main libgd2-noxpm amd64 
2.0.36~rc1~dfsg-6.1 [229 kB]
Holen: 5 http://ftp.de.debian.org/debian/ wheezy/main libxslt1.1 amd64 
1.1.26-13 [252 kB]
Holen: 6 http://ftp.de.debian.org/debian/ wheezy/main nginx-common all 
1.2.1-2.2 [72,9 kB]
Holen: 7 http://ftp.de.debian.org/debian/ wheezy/main nginx-full amd64 
1.2.1-2.2 [435 kB]
Holen: 8 http://ftp.de.debian.org/debian/ wheezy/main nginx all 1.2.1-2.2 [60,9 
kB]
Holen: 9 http://ftp.de.debian.org/debian/ wheezy/main sgml-base all 1.26+nmu3 
[13,5 kB]
Holen: 10 http://ftp.de.debian.org/debian/ wheezy/main xml-core all 0.13+nmu2 
[24,2 kB]
Es wurden 2.314 kB in 1 s geholt (1.358 kB/s).
Vormals nicht ausgewähltes Paket libxml2:amd64 wird gewählt.
(Lese Datenbank ... 26508 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacken von libxml2:amd64 (aus .../libxml2_2.8.0+dfsg1-5_amd64.deb) ...
Vormals nicht ausgewähltes Paket libjpeg8:amd64 wird gewählt.
Entpacken von libjpeg8:amd64 (aus .../libjpeg8_8d-1_amd64.deb) ...
Vormals nicht ausgewähltes Paket libpng12-0:amd64 wird gewählt.
Entpacken von libpng12-0:amd64 (aus .../libpng12-0_1.2.49-1_amd64.deb) ...
Vormals nicht ausgewähltes Paket libgd2-noxpm:amd64 wird gewählt.
Entpacken von libgd2-noxpm:amd64 (aus 
.../libgd2-noxpm_2.0.36~rc1~dfsg-6.1_amd64.deb) ...
Vormals nicht ausgewähltes Paket libxslt1.1:amd64 wird gewählt.
Entpacken von libxslt1.1:amd64 (aus .../libxslt1.1_1.1.26-13_amd64.deb) ...
Vormals nicht ausgewähltes Paket nginx-common wird gewählt.
Entpacken von nginx-common (aus .../nginx-common_1.2.1-2.2_all.deb) ...
Vormals nicht ausgewähltes Paket nginx-full wird gewählt.
Entpacken von nginx-full (aus .../nginx-full_1.2.1-2.2_amd64.deb) ...
Vormals nicht ausgewähltes Paket nginx wird gewählt.
Entpacken von nginx (aus .../nginx_1.2.1-2.2_all.deb) ...
Vormals nicht ausgewähltes Paket sgml-base wird gewählt.
Entpacken von sgml-base (aus .../sgml-base_1.26+nmu3_all.deb) ...
Vormals nicht ausgewähltes Paket xml-core wird gewählt.
Entpacken von xml-core (aus .../xml-core_0.13+nmu2_all.deb) ...
Trigger für man-db werden verarbeitet ...
libxml2:amd64 (2.8.0+dfsg1-5) wird eingerichtet ...
libjpeg8:amd64 (8d-1) wird eingerichtet ...
libpng12-0:amd64 (1.2.49-1) wird eingerichtet ...
libgd2-noxpm:amd64 (2.0.36~rc1~dfsg-6.1) wird eingerichtet ...
libxslt1.1:amd64 (1.1.26-13) wird eingerichtet ...
nginx-common (1.2.1-2.2) wird eingerichtet ...
nginx-full (1.2.1-2.2) wird eingerichtet ...
nginx (1.2.1-2.2) wird eingerichtet ...
sgml-base (1.26+nmu3) wird eingerichtet ...
Updating the super catalog...
xml-core (0.13+nmu2) wird eingerichtet ...
Trigger für sgml-base werden verarbeitet ...
Updating the super catalog...
root@debian:~# rm -rf /etc/nginx/sites-{available,enabled}
root@debian:~# ls /etc/nginx/
conf.d  fastcgi_params  koi-utf  koi-win  mime.types  naxsi_core.rules  
naxsi.rules  nginx.conf  proxy_params  scgi_params  uwsgi_params  win-utf
root@debian:~# vim /etc/nginx/nginx.conf
root@debian:~# apt-get install nginx-extras
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  liblua5.1-0 libperl5.14
Die folgenden Pakete werden ENTFERNT:
  nginx nginx-full
Die folgenden NEUEN Pakete werden installiert:
  liblua5.1-0 libperl5.14 nginx-extras
0 aktualisiert, 3 neu installiert, 2 zu entfernen und 0 nicht aktualisiert.
Es müssen 783 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 735 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren [J/n]?
Holen: 1 http://ftp.de.debian.org/debian/ wheezy/main liblua5.1-0 amd64 5.1.5-4 
[180 kB]
Holen: 2 http://ftp.de.debian.org/debian/ wheezy/main libperl5.14 amd64 
5.14.2-13 [1.178 B]
Holen: 3 http://ftp.de.debian.org/debian/ wheezy/main nginx-extras amd64 
1.2.1-2.2 [602 kB]
Es wurden 783 kB in 0 s geholt (1.079 kB/s).
(Lese Datenbank ... 26673 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von nginx ...
Entfernen von nginx-full ...
Stopping nginx: nginx.
Vormals nicht ausgewähltes Paket liblua5.1-0:amd64 wird gewählt.
(Lese Datenbank ... 26661 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacken von liblua5.1-0:amd64 (aus .../liblua5.1-0_5.1.5-4_amd64.deb) ...
Vormals nicht ausgewähltes Paket libperl5.14 wird gewählt.
Entpacken von libperl5.14 (aus .../libperl5.14_5.14.2-13_amd64.deb) ...
Vormals nicht ausgewähltes Paket nginx-extras wird gewählt.
Entpacken von nginx-extras (aus .../nginx-extras_1.2.1-2.2_amd64.deb) ...
liblua5.1-0:amd64 (5.1.5-4) wird eingerichtet ...
libperl5.14 (5.14.2-13) wird eingerichtet ...
nginx-extras (1.2.1-2.2) wird eingerichtet ...
ln: Symbolischen Verknüpfung „/etc/nginx/sites-enabled/default“ konnte angelgt 
werden: Datei oder Verzeichnis nicht gefunden
dpkg: Fehler beim Bearbeiten von nginx-extras (--configure):
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
 nginx-extras
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@debian:~#

Reply via email to