LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   installing mod_python on debian unstable (https://www.linuxquestions.org/questions/debian-26/installing-mod_python-on-debian-unstable-656109/)

guldo 07-16-2008 05:46 AM

installing mod_python on debian unstable
 
Hello,
I would like to install mod_python on my debian sid.
I have found the package called libapache2-mod-python, but it depends on python (>=2.5).
As far as I can see, the package called python in debian sid is stuck to version 2.4.4-6.

Anyway, I also have the packages python2.4 (2.4.5-1) and python2.5 (2.5.2-2) installed.

How can I install mod_python?
(other than installing from source)

Thank you.

nx5000 07-16-2008 07:00 AM

Quote:

Originally Posted by guldo (Post 3216278)
As far as I can see, the package called python in debian sid is stuck to version 2.4.4-6.

Anyway, I also have the packages python2.4 (2.4.5-1) and python2.5 (2.5.2-2) installed.


http://packages.qa.debian.org/p/python-defaults.html


Quote:

Oldstable 2.3.5-2
Stable 2.4.4-2
Testing 2.5.2-1
Unstable 2.5.2-1
http://packages.qa.debian.org/p/python2.5.html
Quote:

Stable 2.5-5
Testing 2.5.2-6
Unstable 2.5.2-8
Looks like you shouldn't have a problem. As of today, mod_python is installable.

guldo 07-16-2008 03:23 PM

Thank you very much nx5000, you're right.
I fixed my system and upgraded the python package, but...
I had a problem with python-fuse:
Code:

/var/cache/apt/archives/python-fuse_1%3a0.2-pre3-6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Now I have unmet dependencies, because python-fuse depends on python (<2.5)

How should I fix it?

Thanks.

nx5000 07-17-2008 11:14 AM

Quote:

Originally Posted by guldo (Post 3216817)
because python-fuse depends on python (<2.5)

Hum no :)

I have a list of uninstallable package in sid and there is not a single problem with this package or anything related to apache. A few problems with python but not what you are using.


Somehow I wonder if you are not mixing stable/unstable etc.. ?

Can you try this:

apt-cache policy python-fuse

And usually you should post the complete error messages, not the last lines. Here it doesn't mean anything, only because you said "unmet dep" that we can figure out which kind of problem you have.

Maybe also your list of repository (sources.list) is not correct?

guldo 07-17-2008 02:28 PM

Thank you very much for your help :)

Code:

debian:~# LC_MESSAGES=POSIX apt-get -s 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:
  python-fuse: Depends: python (< 2.5) but 2.5.2-1 is installed
E: Unmet dependencies. Try using -f.
debian:~#

My current sources.list:
deb http://ftp.ch.debian.org/debian/ unstable main contrib non-free
deb http://www.debian-multimedia.org unstable main
deb http://http.us.debian.org/debian/ unstable main contrib non-free

Please notice I am on amd64.
I installed debian 64bit a few months ago with the net install, upgrading immediately to sid.

Code:

$ LC_MESSAGES=POSIX apt-cache policy python-fuse
python-fuse:
  Installed: 1:0.2-pre3-4
  Candidate: 1:0.2-pre3-6
  Version table:
    1:0.2-pre3-6 0
        500 http://ftp.ch.debian.org unstable/main Packages
        500 http://http.us.debian.org unstable/main Packages
 *** 1:0.2-pre3-4 0
        100 /var/lib/dpkg/status
$


nx5000 07-18-2008 06:48 AM

A dependency is blocking everything, try

apt-get -f install

As it said.
Usually, follow the advice of apt-get, it's quite clever :)

guldo 07-18-2008 07:02 AM

Thank you for your suggestion.
I noticed that, but, you know, I was a bit worried about it...
I'll try asap.

Thanks a lot :)


All times are GMT -5. The time now is 11:17 AM.