删除 libapache2-mod-wsgi 的依赖:依赖:libpython2.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的情况下工作正常,并且树莓派默认带有python 2.7

编辑: 问题,如果我安装 python 2.6,python 2.7 会在树莓派上共存吗?

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

最新更新