Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/294.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Ubuntu:无法纠正问题,您持有的软件包已损坏_Python_Django_Ubuntu_Mod Wsgi - Fatal编程技术网

Python Ubuntu:无法纠正问题,您持有的软件包已损坏

Python Ubuntu:无法纠正问题,您持有的软件包已损坏,python,django,ubuntu,mod-wsgi,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 n

尝试安装时,我收到“无法纠正问题,您持有的软件包已损坏”错误消息

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.

任何通知的帮助选项1:您可以尝试:

sudo apt-get upgrade
“升级”选项尝试解决已安装软件包中的所有依赖项。通常,这就足以解决损坏的包

选项2:如果您的软件包是从“deb”文件而不是从存储库安装的,则可能是您尝试安装的新软件包引起了冲突,因此您需要首先删除以前版本的软件包。 您可以从软件中心或直接通过以下方式执行此操作:

sudo apt-get remove libapache2-mod-wsgi
sudo apt-get clean
sudo apt-get autoclean
然后


希望有帮助

对于sudo apt get install npm,我也有同样的问题

尝试

然后

然后 sudo-apt-get-install-nodejs sudo-apt-get-install-npm


为我解决

我的问题是,我正在使用
-qq
标志进行安静的安装。关闭这些显示了我的依赖性问题。

这将适用于virtualenv pip wheel errorcode1问题,也适用于无法定位程序包问题

    sudo apt-get update

    sudo apt-get install python-software-properties

    sudo apt-get install apt-file

    sudo apt-file update

    sudo apt-get install software-properties-common

    sudo apt-get install <your filename>  
sudo-apt-get-update
sudo-apt-get-install-python软件属性
sudoapt获取安装apt文件
sudoapt文件更新
sudo apt获取安装软件属性公共
sudoapt安装

这个问题应该属于我,我也是今天安装的Ubuntu新手。我在安装VLC,它给了我同样的问题,怎么办?升级可能会损害系统,如果你不知道你在做什么。它
sudo-apt
而不是
sudo-apt-get
也应该起作用
sudo apt-get remove npm
sudo apt-get remove nodejs
sudo apt-get clean
sudo apt-get autoclean
    sudo apt-get update

    sudo apt-get install python-software-properties

    sudo apt-get install apt-file

    sudo apt-file update

    sudo apt-get install software-properties-common

    sudo apt-get install <your filename>