LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 09-07-2008, 10:28 AM   #1
Pengye
LQ Newbie
 
Registered: Jun 2008
Posts: 9

Rep: Reputation: 0
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
 
Old 09-07-2008, 11:07 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
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 11:08 AM. Reason: fancy look
 
Old 09-07-2008, 11:09 AM   #3
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Rep: Reputation: 121Reputation: 121
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 11:11 AM.
 
Old 09-07-2008, 11:32 AM   #4
arochester
Member
 
Registered: May 2006
Location: Scotland
Distribution: Debian Squeeze Xfce
Posts: 569

Rep: Reputation: 79
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!
 
Old 09-07-2008, 11:58 AM   #5
arochester
Member
 
Registered: May 2006
Location: Scotland
Distribution: Debian Squeeze Xfce
Posts: 569

Rep: Reputation: 79
@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.
 
Old 09-07-2008, 12:45 PM   #6
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
Originally Posted by harishankar View Post
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 12:46 PM.
 
Old 09-08-2008, 10:13 AM   #7
Pengye
LQ Newbie
 
Registered: Jun 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by b0uncer View Post
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.
 
Old 09-08-2008, 10:17 AM   #8
Pengye
LQ Newbie
 
Registered: Jun 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Btw, how can I check out the dependencies of the package?
 
  


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
Gallery2 in Debian Etch(URL Rewrite does't work) swmok Linux - Software 1 09-21-2007 02:00 AM
Utorrent RSS Does't work! (WINE) TruANTOlogy Linux - Software 2 07-25-2006 09:19 PM
Sendmail does't work anymore. lauxen Linux - Newbie 6 12-06-2005 08:50 PM
SOS,please!!i want to make a checksum of kernel ,but it does't work. alphasophie Programming 7 03-29-2005 10:37 AM
apt-get error installing xlibs 4.2.1-14, apt-get won't work at all now pib Debian 1 12-11-2003 12:39 AM


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