# Install problem using .deb package

**URL:** <https://www.ruby-forum.com/t/install-problem-using-deb-package/203239>\
**Category:** NGINX\
**Created:** [February 16, 2011, 2:27am UTC](https://www.ruby-forum.com/t/install-problem-using-deb-package/203239 "2011-02-16T02:27:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [February 16, 2011, 2:27am UTC](https://www.ruby-forum.com/t/install-problem-using-deb-package/203239/1 "2011-02-16T02:27:43Z")

</div>

Hi,

I’m trying to install nginx 0.8.54 on Debian Squeeze. It builds  
successfully, and I’ve created a .deb package using checkinstall.

However when I try to install the package I run into an error:

```auto
# dpkg -i nginx_90.8.54-1_i386.deb
(Reading database ... 38153 files and directories currently installed.)
Unpacking nginx (from nginx_90.8.54-1_i386.deb) ...
dpkg: error processing nginx_90.8.54-1_i386.deb (--install):
 unable to create `/etc/nginx/uwsgi_params.default.dpkg-new' (while
processing `./etc/nginx/uwsgi_params.default'): No such file or
directory
Errors were encountered while processing:
 nginx_90.8.54-1_i386.deb
```

It looks like it can’t find the file

`./etc/nginx/uwsgi_params.default` inside the .deb package,  
but it is there (I gave the package a way high version number  
(90.0.8.54) is so apt won’t overwrite it):

```auto
# dpkg -c nginx_90.8.54-1_i386.deb
drwxr-xr-x root/root 0 2011-02-16 11:35 ./
drwxr-xr-x root/root 0 2011-02-16 11:35 ./usr/
drwxr-xr-x root/root 0 2011-02-16 11:35 ./usr/sbin/
-rwxr-xr-x root/root 467128 2011-02-16 11:35 ./usr/sbin/nginx
drwxrwsr-x root/staff 0 2011-02-16 11:35 ./usr/local/
drwxr-sr-x root/staff 0 2011-02-16 11:35 ./usr/local/nginx/
drwxr-sr-x root/staff 0 2011-02-16 11:35 ./usr/local/nginx/html/
-rw-r--r-- root/staff 151 2011-02-16 11:35
./usr/local/nginx/html/index.html
-rw-r--r-- root/staff 383 2011-02-16 11:35
./usr/local/nginx/html/50x.html
drwxr-xr-x root/root 0 2011-02-16 11:35 ./usr/share/
drwxr-xr-x root/root 0 2011-02-16 11:35 ./usr/share/doc/
drwxr-xr-x root/root 0 2011-02-16 11:31 ./usr/share/doc/nginx/
-rw-r--r-- root/root 127 2006-10-12 20:43
./usr/share/doc/nginx/README
-rw-r--r-- root/root 1326 2010-01-02 01:53
./usr/share/doc/nginx/LICENSE
-rw-r--r-- root/root 182138 2010-12-14 22:06
./usr/share/doc/nginx/CHANGES
drwxr-xr-x root/root 0 2011-02-16 11:35 ./etc/
drwxr-xr-x root/root 0 2011-02-16 11:35 ./etc/nginx/
-rw-r--r-- root/root 570 2011-02-16 11:35
./etc/nginx/uwsgi_params.default <--------------
-rw-r--r-- root/root 544 2011-02-16 11:35 ./etc/nginx/scgi_params
-rw-r--r-- root/root 2726 2011-02-16 11:35
./etc/nginx/nginx.conf.default
-rw-r--r-- root/root 2837 2011-02-16 11:35 ./etc/nginx/koi-utf
-rw-r--r-- root/root 909 2011-02-16 11:35
./etc/nginx/fastcgi_params.default
-rw-r--r-- root/root 570 2011-02-16 11:35
./etc/nginx/uwsgi_params
-rw-r--r-- root/root 979 2011-02-16 11:35
./etc/nginx/fastcgi.conf
-rw-r--r-- root/root 544 2011-02-16 11:35
./etc/nginx/scgi_params.default
-rw-r--r-- root/root 909 2011-02-16 11:35
./etc/nginx/fastcgi_params
-rw-r--r-- root/root 3610 2011-02-16 11:35 ./etc/nginx/win-utf
-rw-r--r-- root/root 3174 2011-02-16 11:35
./etc/nginx/mime.types.default
-rw-r--r-- root/root 2726 2011-02-16 11:35 ./etc/nginx/nginx.conf
-rw-r--r-- root/root 3174 2011-02-16 11:35 ./etc/nginx/mime.types
-rw-r--r-- root/root 2223 2011-02-16 11:35 ./etc/nginx/koi-win
-rw-r--r-- root/root 979 2011-02-16 11:35
./etc/nginx/fastcgi.conf.default

```

I don’t know how to fix this, is anyone able to help me out?

Thanks,  
Gordon

Posted at Nginx Forum:

> **[Install problem using .deb package](https://forum.nginx.org/read.php?2,175631,175631#msg-175631)**
>
> Hi, I'm trying to install nginx 0.8.54 on Debian Squeeze. It builds successfully, and I've created a .deb package using checkinstall. However when I try to install the package I run into an error: \[code\] # dpkg -i nginx\_90.8.54-1\_i386.deb (R

---

<div class="post-metadata">

**Author:** ![gordonfreeman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9f8e36/32.png) [@gordonfreeman](https://www.ruby-forum.com/u/gordonfreeman)\
**Post date:** [February 16, 2011, 4:48am UTC](https://www.ruby-forum.com/t/install-problem-using-deb-package/203239/2 "2011-02-16T04:48:55Z")

</div>

## António P. P. Almeida Wrote:

> > However when I try to install the package I run  
> > into an error:

```auto
> No such file or
> > directory Errors were encountered while
> processing:
> > nginx_90.8.54-1_i386.deb
```

> support for it. Can’t  
> HTH,  
> — appa
> 
> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://nginx.org/mailman/listinfo/nginx)

Thanks but I’d prefer to use the current stable version.

Okay well dpkg was correct. It seems I have to manually create all the  
directories that nginx will use beforehand, and then it installs fine.  
Wonder why the deb package won’t do that automatically, as looking at  
the makefile, it will create them if they don’t exist. Perhaps it’s just  
something that checkinstall misses when it creates the package…?

Anyhow, it’s working now 🙂

Thanks,  
Gordon

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,175631,175651#msg-175651](http://forum.nginx.org/read.php?2,175631,175651#msg-175651)

---

<div class="post-metadata">

**Author:** ![gordonfreeman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9f8e36/32.png) [@gordonfreeman](https://www.ruby-forum.com/u/gordonfreeman)\
**Post date:** [February 16, 2011, 2:45am UTC](https://www.ruby-forum.com/t/install-problem-using-deb-package/203239/3 "2011-02-16T02:45:50Z")

</div>

On 16 Fev 2011 01h25 WET, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> installed.) Unpacking nginx (from nginx\_90.8.54-1\_i386.deb) …  
> dpkg: error processing nginx\_90.8.54-1\_i386.deb (–install): unable  
> to create `/etc/nginx/uwsgi_params.default.dpkg-new' (while processing `./etc/nginx/uwsgi\_params.default’): No such file or  
> directory Errors were encountered while processing:  
> nginx\_90.8.54-1\_i386.deb [/code]
> 
> It looks like it can’t find the file
> 
> `./etc/nginx/uwsgi_params.default` inside the .deb  
> package, but it is there (I gave the package a way high version  
> number (90.0.8.54) is so apt won’t overwrite it):

Do you need uwsgi? If so then you must install support for it. Can’t  
help you there. Remove these modules from the build and I venture that  
it will build and install.

You can get my source package: [http://debian.perusio.net](http://debian.perusio.net) and build it  
in Squeeze. That’s for 0.9.4. I’ve built that previously on a mixed  
Lenny/Squeeze.

HTH,  
— appa
