Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

when I try to install gasp in Ubuntu 12.04 LTS the following error occurs.

student@student-25:~$ sudo apt-get install python-gasp

[sudo] password for student: 

Reading package lists... Done

Building dependency tree       

Reading state information... Done

E: Unable to locate package python-gasp

any help ,please?

share|improve this question
    
Did you tried to install python-gasp from synaptic manager. –  tijybba Jun 21 '12 at 12:46
    
@tijybba he needs to enable Universe first. –  Thomas W. Jun 21 '12 at 12:57
    
Related (to unable to update issue in comments): askubuntu.com/questions/154137/… –  Thomas W. Jun 21 '12 at 17:05
add comment

2 Answers

Your system is not using the "Universe" repositories. You need to enable the Universe repositories to get python-gasp.

This answer here will explain how to enable those repositories graphically. Once you've enabled them and updated your system with apt-get, you should be able to find that package.

If you are on a command-line-only setup, then I will give you a set of commands to run here, courtesy of bodhi.zazen's answer here.

(1) Edit /etc/apt/sources.list with any editor with superuser powers (for command line, I recommend sudo nano /etc/apt/sources.list, for graphical, gksu gedit /etc/apt/sources.list).

(2) Modify your sources.list file to look similar to this:

###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ precise main universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main universe

###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ precise-security main universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main universe

While this does not put the "Multiverse" repositories in (non-free software), you do not necessarily need Multiverse (if you want it, add "multiverse" to the end of each of the deb lines above.) For whatever archive is there in your current sources.list, use that one instead of the us archives, I'm in the US so I have that in this.

(3) sudo apt-get update to update the repository information

(4) sudo apt-get install python-gasp should now work.

share|improve this answer
    
@ Bell -Alternately you can try from Update manager settings, Tick Mark the (Universe) end-name entry from the Ubuntu software Column, refresh and install it. –  tijybba Jun 21 '12 at 13:03
    
That can be done, but alternatively, search "Software Sources" in the dash, and use that tool, Update Manager just starts "Software Sources". Its all explained in the first linked answer in my answer on this question you are reading –  Thomas W. Jun 21 '12 at 15:21
    
I did as you told me,Lord of Time,but when I update it says: W: Failed to fetch us.archive.ubuntu.com/ubuntu/dists/precise-security/universe/… Unable to connect to us.archive.ubuntu.com:http: E: Some index files failed to download. They have been ignored, or old ones used instead. –  bell Jun 21 '12 at 15:58
    
@ Lord of Time - Yes , now i learned to refer to links in answers before commenting them :D Thanks Though. –  tijybba Jun 21 '12 at 16:11
    
@bell make sure to use your more local mirrors, you dont have to use the US mirrors. You may also want to check your network settings, since the US mirror might be blocked... which country are you in? (also, see your other question about why apt won't update, its directly related to the problem you just described) –  Thomas W. Jun 21 '12 at 17:04
show 5 more comments

By typing apt-get install you are looking for the package using synaptic package manager.Your output message clearly shows that the package you are looking for doesn't exist in the program.

You have to download the source file of the package and install it.

Download your package from here

Information on how to install a tar.gz file

share|improve this answer
2  
Not true. It exists in universe. i'm explaining how to turn on that repository now in a separate answer. (proof of existence: python-gasp on packages.ubuntu.com) –  Thomas W. Jun 21 '12 at 12:46
    
Wait a sec.What is the difference of downloading the source file and installing it instead of adding a new rep?I see no point why you believe my answer is not appropriate...:? –  Nickolas Jun 21 '12 at 12:50
1  
Building the latest source can break things, or have dependencies that do not exist in ubuntu. Since this exists in the repositories, it is advisable to use that, as it has a higher likelihood of not causing dependency problems. There's also a billion other reasons as to why you wouldnt want to build from source, such as easy uninstallation (which yuo dont get with building direct from source, because there's no package you can just uninstall) –  Thomas W. Jun 21 '12 at 12:55
1  
Your opening statement is erroneous. Synaptic is a GTK+ front-end to APT. Typing apt-get install calls the apt-get executable form the APT tools with an argument of install –  Merlin Jun 21 '12 at 13:37
    
Oke,got it my wizard ;) –  Nickolas Jun 21 '12 at 13:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.