LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 12-20-2008, 12:30 AM   #1
ashwini.naidu
LQ Newbie
 
Registered: Dec 2008
Posts: 13

Rep: Reputation: 0
Question updated python Version is not recognized (URGENT)


hello all,

I have installed Python2.5 on my debian machine. Debian had python version 2.4.2 by default. even after installing python2.5 using apt-get and i check on apt-cache it still shows python2.4.2

i need to update the version since one of the packages depends on python2.5

I need help in this.

Thanking you in advance
 
Old 12-20-2008, 12:43 AM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Did it install into a different directory than python 2.4.2? Do you have any PYTHON global environment variables that may still be linked to 2.4.2?
 
Old 12-20-2008, 12:48 AM   #3
ashwini.naidu
LQ Newbie
 
Registered: Dec 2008
Posts: 13

Original Poster
Rep: Reputation: 0
yes python 2.4.2 is linked to a file called python in /usr/bin.

i even tried creating a link between python and the python 2.5

but in vain

both the versions of python are available in /usr/bin

if i try to install openxcap which depends on python2.5

debian:/usr/bin# apt-get -f install openxcap
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
openxcap: Depends: python (>= 2.5) but 2.4.4-2 is to be installed
Depends: python-central (>= 0.6.7) but 0.5.12 is to be installed




even though python 2.5 is installed in system
 
Old 12-20-2008, 12:49 AM   #4
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Now, I'm not an old-hand at Debian, but if you aren't using python2.4.2 for anything, what about removing it, reinstalling 2.5 (to make sure all the links are updated), and then trying again?
 
Old 12-20-2008, 01:00 AM   #5
ashwini.naidu
LQ Newbie
 
Registered: Dec 2008
Posts: 13

Original Poster
Rep: Reputation: 0
May be there are many other packages that depend on python2.4.2

so uninstalling it would be a bad idea.


I have same kind of problems when i install packages with source files

do u have any idea abt how to solve the issue.
 
Old 12-20-2008, 01:23 AM   #6
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Just making sure I understand correctly -- when you removed the symlink from `python` to python-2.4.2, and added one instead to python-2.5, the output from `python --version` was incorrect?
 
Old 12-20-2008, 01:29 AM   #7
ashwini.naidu
LQ Newbie
 
Registered: Dec 2008
Posts: 13

Original Poster
Rep: Reputation: 0
yes the version was still 2.4.2 even after creating a symlink
 
Old 12-20-2008, 05:30 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
May be something went wrong with linking.

The command 'python -V' will show version in use.
( Upper case V )

# 'cd /usr/bin'
# 'rm python'
# 'ln -s python2.5 python'
....
 
Old 12-20-2008, 04:17 PM   #9
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,159

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
The OP reported that the problem was with apt-get sahowing the old Python version. Did you install the new Python version using apt, or did you download it from somewhere else and install it. The APT tools don't know about software that was not installed using them. I suggest you install Python 2.5 through apt-get if that was not how you originally did it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Serious Python Trouble - need help Urgent !!! lx3000 Linux - Software 4 01-21-2007 06:05 PM
python problem - compiled from source - python -V still showing old version txm123 Linux - Newbie 1 02-15-2006 12:05 PM
modem not recognized, URGENT mudking.2002 Fedora 6 08-15-2005 07:02 PM
Gaim updated version, install probs adamkimber Linux - Software 6 11-16-2003 07:18 PM
Urgent help needed - Wireless card not recognized during boot kmahesh Linux - Wireless Networking 3 05-07-2003 09:33 AM


All times are GMT -5. The time now is 12:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration