Results 1 to 10 of 10
Hi guys ive recently installed debian and im quite a noob at this things.I whant to install programs but i cant.Ive tried apt-get install and it gives me this
Windstyle ...
- 08-03-2011 #1Just Joined!
- Join Date
- Aug 2011
- Posts
- 4
Deb file packages problem
Hi guys ive recently installed debian and im quite a noob at this things.I whant to install programs but i cant.Ive tried apt-get install and it gives me this
Windstyle (none):~$ sudo apt-get install skype.deb
sudo: unable to resolve host (none)
[sudo] password for Windstyle:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Ignoring file 'local-packages.list. save' in directory '/etc /apt /sources.list.d/' as it has an invalid filename extension
Unable to locate package skype.deb
Couldn't find any package by regex 'skype.deb'
i know i have skype.deb package but it doesnt locate it could someone tell me how to start installing packages via terminal.Sorry for the stupid questions
- 08-03-2011 #2
Hi and welcome to the forum.
If you are installing from Debian repositories, then the right command is
If you are installing a deb file you downloaded from the web, then you need to doCode:apt-get install skype
Code:gdebi skype.deb
- 08-03-2011 #3Just Joined!
- Join Date
- Aug 2011
- Posts
- 4
Thanks for the reply but it didnt work.
Windstyle(none):~$ gdebi skype.deb
bash: gdebi: command not found
- 08-03-2011 #4
What that error code means is that gdebi is not installed on your system. Install it as root by running
Once its installed, you can use it to install deb files.Code:apt-get update apt-get install gdebi
- 08-03-2011 #5Just Joined!
- Join Date
- Aug 2011
- Posts
- 4
hmm it doesnt install it
Windstyle(none):~$ sudo apt-get install gdebi
sudo: unable to resolve host (none)
Reading package lists... Done
Building dependency tree
Reading state information... Done
N: Ignoring file 'local-packages.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unable to locate package gdebi
- 08-03-2011 #6
What version of Debian are you using?
- 08-03-2011 #7Just Joined!
- Join Date
- Aug 2011
- Posts
- 4
I dont know which version is it.I m not quite sure but i think its the latest.But how could i understand which version is it.
- 08-03-2011 #8Just Joined!
- Join Date
- Aug 2009
- Location
- Sheffield, UK
- Posts
- 9
To find what version of debian you are using:
cat /etc/issue.net
But that's not the problem from what you've said.
First, delete the file /etc/apt/sources.list.d/local-packages.list.save
It's a temporary file probably created by nano or similar.
I would suggest using dpkg rather than gdebi (I hate GUI package management tools!). So to install a .deb file:
dpkg -i thepackage.deb
The problem you are having with the "unable to resolve host (none)" is a different matter. I would suggest that either the /etc/apt/sources.list file is incorrect or you have dns resolution problems.
Try:
host bbc.co.uk
if you get a valid response (the ip address and mx records of the bbc) then this is not a problem.
The /etc/apt/sources.list file should look something like:
deb *DOH*ftp.debian.org/debian/ stable main contrib non-free
deb-src *DOH*ftp.debian.org/debian/ stable main contrib non-free
deb *DOH*security.debian.org/ stable/updates main contrib non-free
deb-src *DOH*security.debian.org/ stable/updates main contrib non-free
Replace *DOH* with http: and 2 forward slashes - I don't have enough posts apparently.
If you still have problems, post the results of the following commands:
cat /etc/resolv.conf
cat /etc/apt/sources.list
ls -laR /etc/apt/
C.
- 08-04-2011 #9Gdebi has a cli version. I suggested it because it does automatic dependency resolution whereas dpkg does not. Either way they both achieve the same thing.I would suggest using dpkg rather than gdebi (I hate GUI package management tools!). So to install a .deb file:
dpkg -i thepackage.deb
- 08-04-2011 #10Just Joined!
- Join Date
- Aug 2009
- Location
- Sheffield, UK
- Posts
- 9
So it does, I stand corrected. I guess I just assume anything with a g in front in gui based.


Reply With Quote
