Ubuntu:无法纠正问题,你已经破坏了包裹

use*_*599 8 python django ubuntu mod-wsgi

试图安装这个,我得到'无法纠正问题,你已经举行破坏包'错误消息.

Apache版本

服务器版本:Apache/2.4.2(Ubuntu)服务器内置:2012年6月27日07:23:35

# aptitude install libapache2-mod-wsgi

The following NEW packages will be installed:
  apache2.2-common{ab} libapache2-mod-wsgi
 0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 299 kB of archives. After unpacking 1,047 kB will be used.
The following packages have unmet dependencies:
 apache2 : Conflicts: apache2.2-common but 2.2.22-1ubuntu1.5 is to be installed.
 apache2.2-common : Depends: apache2.2-bin (= 2.2.22-1ubuntu1.5) but it is not going to     be installed.
                Depends: apache2-utils but it is not going to be installed.
 apache2-bin : Conflicts: apache2.2-common but 2.2.22-1ubuntu1.5 is to be installed.
 apache2-data : Conflicts: apache2.2-common but 2.2.22-1ubuntu1.5 is to be installed.
The following actions will resolve these dependencies:

 Keep the following packages at their current version:
1)     apache2.2-common [Not Installed]
2)     libapache2-mod-wsgi [Not Installed]


Accept this solution? [Y/n/q/?] Y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Run Code Online (Sandbox Code Playgroud)

任何有用的帮助

小智 12

选项1:您可以尝试:

sudo apt-get upgrade
Run Code Online (Sandbox Code Playgroud)

"upgrade"选项尝试解决已安装包中的所有依赖项.通常这足以解决破损的包裹

选项2:如果您的软件包是从"deb"文件而不是从存储库安装的,那么您尝试安装的新软件包可能会导致冲突,因此您首先需要删除以前版本的软件包.包.您可以从软件中心或直接执行以下操作:

sudo apt-get remove libapache2-mod-wsgi
sudo apt-get clean
sudo apt-get autoclean
Run Code Online (Sandbox Code Playgroud)

然后

sudo apt-get update
sudo apt-get install libapache2-mod-wsgi
Run Code Online (Sandbox Code Playgroud)

希望有所帮助!