| Ubuntu This forum is for the discussion of Ubuntu Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-07-2008, 09:28 AM
|
#1
|
|
LQ Newbie
Registered: May 2008
Posts: 9
Rep:
|
apt-get does't work on Kubuntu
Hi,
I'm currently on Kubuntu. I tried to install software like skype and firefox using apt-get. But the terminal always replies couldn't find the package. And I've downloaded the deb file, but it doesn't work when I double-click on it. Anybody can help me?
Henry
|
|
|
|
09-07-2008, 10:07 AM
|
#2
|
|
Member
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 977
Rep:
|
Code:
wget http://home.versateladsl.be/wvermeir/ubuntu/skype_1.2.0.18-1_i386.deb
then
Code:
sudo dpkg -i skype_1.2.0.18-1_i386.deb
Last edited by odcheck; 09-07-2008 at 10:08 AM.
Reason: fancy look
|
|
|
|
09-07-2008, 10:09 AM
|
#3
|
|
Senior Member
Registered: Dec 2003
Posts: 3,142
Rep: 
|
You should set up an FTP/HTTP/CD/DVD repository in the file
/etc/apt/sources.list
and then do an
Code:
sudo apt-get update
After that, you should be able to install any software with just
Code:
sudo apt-get install program
which will also download and install the dependencies correctly.
That's the correct way to use apt-get.
Otherwise you can install locally downloaded packages using dpkg directly as explained above.
Last edited by vharishankar; 09-07-2008 at 10:11 AM.
|
|
|
|
09-07-2008, 10:32 AM
|
#4
|
|
Member
Registered: May 2006
Location: Scotland
Distribution: Debian Squeeze Xfce
Posts: 564
Rep:
|
Quote:
|
I've downloaded the deb file, but it doesn't work when I double-click on it.
|
Double click = Windows
Single click = Linux
Right click on the deb!
|
|
|
|
09-07-2008, 10:58 AM
|
#5
|
|
Member
Registered: May 2006
Location: Scotland
Distribution: Debian Squeeze Xfce
Posts: 564
Rep:
|
@odcheck The link is dead - wget http://home.versateladsl.be/wvermeir....18-1_i386.deb .
Skype is available to the *buntus from the Medibuntu Repository. You should add this repository. Have a look at https://help.ubuntu.com/community/Me...20Repositories for installing. Note that it has a GPG key. There are therefore two steps - the sudo wget http://www.medibuntu.org etc AND the sudo apt-get update && sudo apt-get install medibuntu-keyring etc step.
Firefox should, however, be easily available. Have you tried connecting to the internet, opening Konsole Terminal Program and inputting:
Quote:
|
sudo apt-get install firefox-3.0
|
Alternatively look at http://linuxappfinder.com/ and do a search for both programs.
|
|
|
|
09-07-2008, 11:45 AM
|
#6
|
|
Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131
Rep: 
|
Quote:
Originally Posted by harishankar
You should set up an FTP/HTTP/CD/DVD repository in the file
/etc/apt/sources.list
and then do an
Code:
sudo apt-get update
After that, you should be able to install any software with just
Code:
sudo apt-get install program
which will also download and install the dependencies correctly.
That's the correct way to use apt-get.
Otherwise you can install locally downloaded packages using dpkg directly as explained above.
|
That's the way to go (apt-get install) if you know the exact package name. If you don't, but do know word(s) that might be in the package name/description, try
Code:
apt-cache search keyword
for example
Code:
apt-cache search firefox
returns a lot of packages that may or may not be what you're looking for; pipe the output to grep and you can further narrow down your search. When you find what you're looking for, use the install command.
Manually downloaded .deb packages can be installed using
Code:
dpkg -i packagename.deb
from command line, or (usually) by simply opening them in your favourite file manager -- double-click or click once depending on how you've set up opening files. This should bring on the graphical user interface to a program that installs deb packages -- if not, use dpkg on command line.
Easiest way of course, if you don't know exactly what you're looking for, is to use the graphical front-end to apt if one is available -- for example Synaptic on Ubuntu or Adept on Kubuntu (found at the menu). Remember to refresh package lists first when the program opens, then search for a package, mark it (or them) to be installed and apply your changes.
Last edited by b0uncer; 09-07-2008 at 11:46 AM.
|
|
|
|
09-08-2008, 09:13 AM
|
#7
|
|
LQ Newbie
Registered: May 2008
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by b0uncer
That's the way to go (apt-get install) if you know the exact package name. If you don't, but do know word(s) that might be in the package name/description, try
Code:
apt-cache search keyword
for example
Code:
apt-cache search firefox
returns a lot of packages that may or may not be what you're looking for; pipe the output to grep and you can further narrow down your search. When you find what you're looking for, use the install command.
Manually downloaded .deb packages can be installed using
Code:
dpkg -i packagename.deb
from command line, or (usually) by simply opening them in your favourite file manager -- double-click or click once depending on how you've set up opening files. This should bring on the graphical user interface to a program that installs deb packages -- if not, use dpkg on command line.
Easiest way of course, if you don't know exactly what you're looking for, is to use the graphical front-end to apt if one is available -- for example Synaptic on Ubuntu or Adept on Kubuntu (found at the menu). Remember to refresh package lists first when the program opens, then search for a package, mark it (or them) to be installed and apply your changes.
|
Thanks, guys. Now I know how to use apt-get, and it works pretty well.
I think the problem was I had changed the sources.list, but I didn't updated it afterwards.
|
|
|
|
09-08-2008, 09:17 AM
|
#8
|
|
LQ Newbie
Registered: May 2008
Posts: 9
Original Poster
Rep:
|
Btw, how can I check out the dependencies of the package?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:42 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|