Я пытаюсь установить nginx на ppa:nginx/stable
на Lucid после удаления того, который поступает из источников по умолчанию, но я получаю эту ошибку:
` 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`
Я пробовал 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~lucid nginx-common 0.8.54-4ppa13~lucid nginx-extras nginx-full 0.8.54-4ppa13~lucid nginx-light`
Отредактируйте /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/*
;;
Я пишу мелко нота(Русский язык!)
В сценарий postinst, который запускается в конце установки nginx-common, обнаружил ошибку. Вы можете найти сценарий на /var/lib/dpkg/info/nginx-common.postinst. Если вы посмотрите на этот скрипт и поймете, что дает сбой, вы можете сообщить о проблеме разработчикам ppa: nginx / стабильный.