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.

this is an example:

add-apt-repository ppa:libreoffice/ppa   
gpg: keyring `/tmp/tmpEVJtjw/secring.gpg' created  
gpg: keyring `/tmp/tmpEVJtjw/pubring.gpg' created  
gpg: requesting key 1378B444 from hkp server keyserver.ubuntu.com  
gpg: /tmp/tmpEVJtjw/trustdb.gpg: trustdb created  
gpg: key 1378B444: public key "Launchpad PPA for LibreOffice Packaging" imported  
gpg: no ultimately trusted keys found  
gpg: Total number processed: 1  
gpg:               imported: 1  (RSA: 1)  
OK  

The problem is: when i try to install LibreOffice it says:

$ apt-get install LibreOffice
Reading package lists... Done
Building dependency tree Reading state information... Done
E: Couldn't find package LibreOffice

I have the same problem with almost every apps!! how can i fix this? Many Thx

share|improve this question
2  
What's your problem? The example you gave successfully added the ppa. It clearly says OK at the end. –  André Stannek Jan 26 '13 at 16:16
    
Thxx 4 your answer, the problem is: When i try to install LibreOffice it says : apt-get install LibreOffice Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package LibreOffice –  Hawbett Jan 26 '13 at 16:17
    
Please, edit your answer if you want to add more information. –  Andrea Corbellini Jan 26 '13 at 16:18
1  
The package name is libreoffice, not LibreOffice. If you're not comfortable with the command line, remember that you can always use the Software Center ;-) –  Andrea Corbellini Jan 26 '13 at 16:21
2  
don't forget the update command! –  Nanne Jan 26 '13 at 16:29

1 Answer 1

The ppa from your example was successfully added. If you want to install Libre Office it's:

sudo apt-get install libreoffice

When you install packages using the command line, you have to make sure you got the right package name. Tab-completion can help you with that. You can also use the Ubuntu Software Center where you can search.

Keep in mind that after you add a ppa you always have to update package source. Otherwise the packages aren't available. You can do this in the Software Center or by

sudo apt-get update

Detailed instructions here:

share|improve this answer
    
To be clear: the update command (that's the second command in the answer) should be run first :) –  Nanne Jan 26 '13 at 16:30
    
Thank u all 4 your answers! the problem is not there, let s take another example: install Nitro (just to show u that i have a problem with all apps!) add-apt-repository ppa:cooperjona/nitrotasks gpg: keyring /tmp/tmpsbo1yZ/secring.gpg' created gpg: keyring /tmp/tmpsbo1yZ/pubring.gpg' created gpg: requesting key 2AE51AB5 from hkp server keyserver.ubuntu.com gpg: /tmp/tmpsbo1yZ/trustdb.gpg: trustdb created gpg: key 2AE51AB5: public key "Launchpad PPA for consindo" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) OK apt-get update –  Hawbett Jan 26 '13 at 16:32
    
You can see here that the package name seems to be nitrotasks. You always have the possibility to visit the ppa's webpage and see what packages are in there. –  André Stannek Jan 26 '13 at 16:34
    
apt-get update rr ppa.launchpad.net lucid/main Packages 404 Not Found Err ppa.launchpad.net lucid/main Packages 404 Not Found Err ppa.launchpad.net lucid/main Packages 404 Not Found W: Failed to fetch ppa.launchpad.net/cooperjona/nitrotasks/ubuntu/dists/lucid/main/… 404 Not Found W: Failed to fetch ppa.launchpad.net/mozillateam/firefox-stable/ubuntu/dists/lucid/… 404 Not Found W: Failed to fetch ppa.launchpad.net/noobslab/deepin-sc/ubuntu/dists/lucid/main/… 404 Not Found –  Hawbett Jan 26 '13 at 16:36
    
As you can also see on that page, the ppa only has packages for Oneiric, Precise and Quantal. If you have 10.04 it would be "Lucid" so the package is not available for you in that ppa. –  André Stannek Jan 26 '13 at 16:36

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.