2

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?

ish
  • 139,926
bell
  • 41

2 Answers2

2

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.

Thomas Ward
  • 74,764
  • @ 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. – atenz 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 Ward 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 http://us.archive.ubuntu.com/ubuntu/dists/precise-security/universe/i18n/Translation-en 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. – atenz 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 Ward Jun 21 '12 at 17:04
  • It is prob. easier to explain if you write the new kod in your post and ask to copy that and put that in a file named something like this: /etc/apt/sources.list.d/precise-universe.list. Then noone needs to edit a file, which is usually easier. – Anders Jun 21 '12 at 19:47
  • @Anders this is the recommdned methodology, for the main repos its best to keep them bunched together. – Thomas Ward Jun 21 '12 at 19:48
  • @Lord of Time it is the most commonly used, but I haven't seen any recommendation aginst add in a file like this. I think there are some reasons to not edit sources.list and instead add a file in the sources.list.d directory. For one, it is muche easier to administrate. And beginners do have less risk of messing things up. If it doesn't work, just remove the file. Which is better, as many forget to make a backup of the old one, or even recommend the beginner to make one before changing the file. But, that is all a matter of opinions, and I accept that you have another view. – Anders Jun 21 '12 at 19:54
  • i tried today but it gives me z ff again ,Lord of Time. W: Failed to fetch http://archive.canonical.com/ubuntu/dists/precise/partner/i18n/Translation-en_US Unable to connect to archive.canonical.com:http:

    W: Failed to fetch http://archive.canonical.com/ubuntu/dists/precise/partner/i18n/Translation-en Unable to connect to archive.canonical.com:http: [IP: 91.189.92.191 80]

    E: Some index files failed to download. They have been ignored, or old ones used instead. I'm confused!

    – bell Jun 22 '12 at 06:41
  • @bell You have another question open about your internet problem with this since you already asked why you cant get downloads. The issue is your internet, not the repositories, I tested the method I outlined here, both graphically and command-line on 5 other systems yesterday using 5 different world-regional mirrors, and this worked (the package exists) – Thomas Ward Jun 22 '12 at 12:40
-2

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

dlin
  • 3,830
  • 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 Ward 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...:? – dlin 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 Ward 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 – Moog Jun 21 '12 at 13:37