LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-28-2010, 01:36 AM   #1
asookazian
LQ Newbie
 
Registered: Mar 2010
Posts: 24

Rep: Reputation: 15
Install an older version of a package using apt-get


I am getting this when I build a project in JBoss Seam:

Code:
asookazian@asookazian-desktop:/opt/jboss-seam-2.2.1.CR1/examples/booking:10:30 PM:$ant clean explode
Buildfile: build.xml

clean:

initcopy:

initpoms:
     [echo] Setting up dependencies

BUILD FAILED
/opt/jboss-seam-2.2.1.CR1/build/common.build.xml:95: The following error occurred while executing this line:
/opt/jboss-seam-2.2.1.CR1/build/utilities.build.xml:18: Directory /opt/jboss-seam-2.2.1.CR1/classes/poms creation was not successful for an unknown reason

Total time: 0 seconds
How can I install Ant 1.7.0 (i.e. an older version of an existing package)?

Code:
asookazian@asookazian-desktop:/opt/jboss-seam-2.2.1.CR1/examples/booking:10:31 PM:$sudo apt-get install ant=1.7.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version '1.7.0' for 'ant' was not found
I downloaded the zip file for 1.7.0 but I need to redo all the symbolic link stuff, no?

Code:
asookazian@asookazian-desktop:/usr/bin:10:34 PM:$ls -la ant | less
Code:
lrwxrwxrwx 1 root root 20 2010-03-23 06:15 ant -> ../share/ant/bin/ant
I'd like to keep both versions of the ant package in my Ubuntu 9.10 system if possible...
 
Old 03-28-2010, 05:25 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
I guess, you can just remove the current one :
sudo apt-get remove ant

.. And install the 1.7.0 from Ubuntu 8.04 Hardy
http://packages.ubuntu.com/hardy/ant
http://packages.ubuntu.com/hardy/all/ant/download

A genuine sun java is required :
1) sudo apt-get install sun-java6-jdk
2) sudo update-alternatives --config java
.. please choose the Sun version.
( If it isnt't already installed, and set as default.)
.....
 
  


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
New install 9.04 (Jaunty) on old computer > no sound - install older version? NewTeacher Ubuntu 3 05-24-2009 01:52 AM
Verify Package Version in APT (Before Installing) carlosinfl Debian 3 12-17-2007 08:43 PM
Debian package wants an older version of a library Scorper Debian 3 05-14-2006 11:00 PM
older and newer version of a package at the same time Ayman.mashal Linux - Newbie 1 07-29-2005 11:05 PM
how to install an older version of a package... haora Linux - Newbie 1 05-27-2005 10:48 AM


All times are GMT -5. The time now is 07:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration