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

nginx-在Ubuntu 10.04上安装dpkg错误

(dpkg error installing on Ubuntu 10.04)

发布于 2021-03-19 08:27:08

我尝试ppa:nginx/stable删除默认来源中的一个后在Lucid上安装nginx,但出现此错误:

`设置nginx-common(0.8.54-4ppa13〜lucid)...
dpkg:错误处理nginx-common(--configure):
 子进程已安装的安装后脚本返回错误退出状态1
dpkg:依赖性问题阻止了对nginx-full的配置:
 nginx完全取决于nginx-common(= 0.8.54-4ppa13〜lucid); 然而:
  软件包nginx-common尚未配置。
dpkg:错误处理nginx-full(--configure):
 依赖性问题-未配置
dpkg:依赖关系问题阻止了nginx的配置:
 nginx依赖于nginx-full; 然而:
  软件包nginx-full尚未配置。
dpkg:错误处理nginx(--configure):
 依赖性问题-未配置
处理时遇到错误:
 Nginx常见
 完整的nginx
 nginx`

我尝试apt-get clean,dpkg --configure -a,apt-get -f install nginx-common,但没有任何帮助。我想念什么吗?

这是来自的输出 dpkg-query -W -f='${Package}\t${Version}\n' nginx*

nginx 0.8.54-4ppa13〜清醒
nginx常见的0.8.54-4ppa13〜lucid
Nginx扩展
nginx全0.8.54-4ppa13〜lucid
nginx-light`
Questioner
MrD
Viewed
0
ooshro 2011-03-01 03:24:09

编辑/var/lib/dpkg/info/nginx-common.postinst,注释“ chmod -f 0640 $ logdir / *”行。然后运行安装:

sudo apt-get install nginx

或创建文件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/*
    ;;

我写小纸条(俄语!)