Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,343
    Hi and welcome to the forum.

    If you are installing from Debian repositories, then the right command is
    Code:
    apt-get install skype
    If you are installing a deb file you downloaded from the web, then you need to do
    Code:
    gdebi skype.deb

  3. #3
    Just 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

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,343
    What that error code means is that gdebi is not installed on your system. Install it as root by running
    Code:
    apt-get update
    apt-get install gdebi
    Once its installed, you can use it to install deb files.

  5. #5
    Just 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

  6. #6
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,343
    What version of Debian are you using?

  7. #7
    Just 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.

  8. #8
    Just 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.

  9. #9
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,343
    I would suggest using dpkg rather than gdebi (I hate GUI package management tools!). So to install a .deb file:

    dpkg -i thepackage.deb
    Gdebi 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.

  10. #10
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •