当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : ubuntu apt-get 下安装程序报错
帖子发表于 : 2011-04-16 20:13 

注册: 2009-12-10 0:36
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
如题
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)




这个是个什么情况?
那位知道该怎样解决不?


页首
 用户资料  
 
2 楼 
 文章标题 : Re: ubuntu apt-get 下安装程序报错
帖子发表于 : 2011-04-16 21:06 
头像

注册: 2008-09-13 19:17
帖子: 7789
系统: Arch Linux (x86_64)
送出感谢: 10
接收感谢: 77
引用:
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


_________________
博客:http://www.lainme.com


页首
 用户资料  
 
3 楼 
 文章标题 : Re: ubuntu apt-get 下安装程序报错
帖子发表于 : 2011-04-16 21:23 

注册: 2009-12-10 0:36
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
谢谢楼上
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


页首
 用户资料  
 
4 楼 
 文章标题 : Re: ubuntu apt-get 下安装程序报错
帖子发表于 : 2011-04-17 11:43 
头像

注册: 2008-09-13 19:17
帖子: 7789
系统: Arch Linux (x86_64)
送出感谢: 10
接收感谢: 77
没新立的可以用

dpkg -L 软件包名

查看


_________________
博客:http://www.lainme.com


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:Google [Bot], wynosjud 和 5 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译