Warm tip: This article is reproduced from serverfault.com, please click

dpkg error installing on Ubuntu 10.04

发布于 2021-01-13 23:08:46

I'm trying to install the nginx on ppa:nginx/stable on Lucid after removing the one that comes from the default sources but I get this error:

` Setting up nginx-common (0.8.54-4ppa13~lucid) ...
dpkg: error processing nginx-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nginx-full:
 nginx-full depends on nginx-common (= 0.8.54-4ppa13~lucid); however:
  Package nginx-common is not configured yet.
dpkg: error processing nginx-full (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nginx:
 nginx depends on nginx-full; however:
  Package nginx-full is not configured yet.
dpkg: error processing nginx (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nginx-common
 nginx-full
 nginx`

I've try apt-get clean, dpkg --configure -a, apt-get -f install nginx-common but nothing is helping. Am I missing something?

Here's the output from dpkg-query -W -f='${Package}\t${Version}\n' nginx*

`nginx   0.8.54-4ppa13~lucid
nginx-common    0.8.54-4ppa13~lucid
nginx-extras
nginx-full      0.8.54-4ppa13~lucid
nginx-light`
Questioner
MrD
Viewed
11
ooshro 2011-03-01 03:24:09

Edit /var/lib/dpkg/info/nginx-common.postinst, comment "chmod -f 0640 $logdir/*" line. Then run install:

sudo apt-get install nginx

Or create file access.log:

sudo touch /var/log/nginx/access.log
sudo apt-get install nginx

/var/lib/dpkg/info/nginx-common.postinst:

    chmod 0750 $logdir
#    chmod -f 0640 $logdir/*
    ;;

I write small note(Russian language!)