删除libapache2-mod-wsgi的依赖:取决于:libpython2.6

时间:2015-04-17 08:01:20

标签: python-2.7 apache2 raspberry-pi mod-wsgi python-2.6

如何删除依赖项,因为它与python2.7一起工作正常,我不想要python 2.6

我得到以下内容,

       sudo apt-get upgrade
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:
 libapache2-mod-wsgi : Depends: libpython2.6 (>= 2.6) but it is not installed
E: Unmet dependencies. Try using -f.

尝试纠正时:

    sudo 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:
  libpython2.6 python2.6 python2.6-minimal
Suggested packages:
  python2.6-doc binfmt-support
The following NEW packages will be installed:
  libpython2.6 python2.6 python2.6-minimal
0 upgraded, 3 newly installed, 0 to remove and 105 not upgraded.
Need to get 3415 kB/4824 kB of archives.
After this operation, 15.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? 

我无法安装任何东西因为这些,我怎么能删除依赖,因为它的工作正常没有python 2.6和raspberry pi默认带有python 2.7

编辑:  问题,如果我安装python 2.6,那么python 2.7会在raspberry pi上共存吗?

1 个答案:

答案 0 :(得分:0)

apt-get download libapache2-mod-wsgi
sudo dpkg -i --ignore-depends=libpython2.6,python2.6,python2.6-minimal libapache2-mod-wsgi_2.whatever.deb