LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   apt-get does't work on Kubuntu (https://www.linuxquestions.org/questions/ubuntu-63/apt-get-doest-work-on-kubuntu-668146/)

Pengye 09-07-2008 09:28 AM

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

odcheck 09-07-2008 10:07 AM

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

vharishankar 09-07-2008 10:09 AM

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.

arochester 09-07-2008 10:32 AM

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!

arochester 09-07-2008 10:58 AM

@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.

b0uncer 09-07-2008 11:45 AM

Quote:

Originally Posted by harishankar (Post 3272396)
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.

Pengye 09-08-2008 09:13 AM

Quote:

Originally Posted by b0uncer (Post 3272470)
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.

Pengye 09-08-2008 09:17 AM

Btw, how can I check out the dependencies of the package?


All times are GMT -5. The time now is 02:31 PM.