ubuntu apt-get 下安装程序报错

系统安装、升级讨论
回复
yishenggudou
帖子: 3
注册时间: 2009-12-10 0:36
送出感谢: 0
接收感谢: 0

ubuntu apt-get 下安装程序报错

#1

帖子 yishenggudou » 2011-04-16 20:13

如题
ubuntu 下
安装最新的nginx时候
我添加nginx源
sudo add-apt-repository ppa:nginx/stable
sudo add-apt-repository ppa:uwsgi/release
更新
sudo apt-get update
sudo apt-get install uwsgi nginx



root@ip-10-194-97-94:~/nginx-1.0.0# apt-get install uwsgi nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
nginx is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
nginx-full: Depends: nginx-common (= 1.0.0-0ppa1~lucid) but it is not going to be installed
uwsgi: Depends: uwsgi-python2.6 (>= 0.9.6.5-0ubuntu1~lucid1) or
uwsgi-python3.1 (>= 0.9.6.5-0ubuntu1~lucid1)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我apt-get -f install之后依然


root@ip-10-194-97-94:~/nginx-1.0.0# apt-get install nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
nginx is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
nginx-full: Depends: nginx-common (= 1.0.0-0ppa1~lucid) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


之后安装其他程序也报错

root@ip-10-194-97-94:~# apt-get install python-bottle
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
nginx-full: Depends: nginx-common (= 1.0.0-0ppa1~lucid) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


apt-get -f install是提示如下:
root@ip-10-194-97-94:/etc/apt# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
nginx-common
The following NEW packages will be installed:
nginx-common
0 upgraded, 1 newly installed, 0 to remove and 28 not upgraded.
2 not fully installed or removed.
Need to get 0B/59.0kB of archives.
After this operation, 246kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 46618 files and directories currently installed.)
Unpacking nginx-common (from .../nginx-common_1.0.0-0ppa1~lucid_all.deb) ...
dpkg: error processing /var/cache/apt/archives/nginx-common_1.0.0-0ppa1~lucid_all.deb (--unpack):
trying to overwrite '/etc/ufw/applications.d/nginx', which is also in package nginx 0:1.0.0-0ppa1~lucid
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Errors were encountered while processing:
/var/cache/apt/archives/nginx-common_1.0.0-0ppa1~lucid_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)




这个是个什么情况?
那位知道该怎样解决不?
头像
lainme
论坛版主
帖子: 7805
注册时间: 2008-09-13 19:17
系统: Arch Linux (x86_64)
送出感谢: 3 次
接收感谢: 68 次
联系:

Re: ubuntu apt-get 下安装程序报错

#2

帖子 lainme » 2011-04-16 21:06

nginx is already the newest version.
之前装过,失败了?
trying to overwrite '/etc/ufw/applications.d/nginx', which is also in package nginx 0:1.0.0-0ppa1~lucid
这个似乎也表示之前装过,至少是装了一半

如果是因为某种原因安装失败导致dpkg状态错误的话,可以参考这个帖子改正。先确认下ngnix那几个包到底哪个装好了哪个没(新立得里在软件名上右键-》属性,可以看到所有包含的文件,然后对照系统来检查)

viewtopic.php?f=77&t=213816
yishenggudou
帖子: 3
注册时间: 2009-12-10 0:36
送出感谢: 0
接收感谢: 0

Re: ubuntu apt-get 下安装程序报错

#3

帖子 yishenggudou » 2011-04-16 21:23

谢谢楼上
lainme 写了:
nginx is already the newest version.
之前装过,失败了?

恩 之前装的不是最新版本的
trying to overwrite '/etc/ufw/applications.d/nginx', which is also in package nginx 0:1.0.0-0ppa1~lucid
这个似乎也表示之前装过,至少是装了一半

如果是因为某种原因安装失败导致dpkg状态错误的话,可以参考这个帖子改正。先确认下ngnix那几个包到底哪个装好了哪个没(新立得里在软件名上右键-》属性,可以看到所有包含的文件,然后对照系统来检查)

这个是服务器上的没有新立得
有办法把这个错误解决吗
我现在不能装软件了
只要apt-get都报错哈


viewtopic.php?f=77&t=213816
头像
lainme
论坛版主
帖子: 7805
注册时间: 2008-09-13 19:17
系统: Arch Linux (x86_64)
送出感谢: 3 次
接收感谢: 68 次
联系:

Re: ubuntu apt-get 下安装程序报错

#4

帖子 lainme » 2011-04-17 11:43

没新立的可以用

dpkg -L 软件包名

查看
回复

回到 “系统安装和升级”