Find the answer to your Linux question:
Results 1 to 8 of 8
I just installed Debian 4.0 from the KDE CD. I wan't to install packages and i'm using KPackage. Most of the packages I try and install, specifically wireshark, give me ...
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Posts
    19

    can't install packages with apt-get

    I just installed Debian 4.0 from the KDE CD. I wan't to install packages and i'm using KPackage. Most of the packages I try and install, specifically wireshark, give me this error:


    Code:
    < export DEBIAN_FRONTEND; apt-get install --yes 'wireshark' ;echo RESULT=$?
    Reading package lists... Done
    Building dependency tree... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    
    Since you only requested a single operation it is extremely likely that
    the package is simply not installable and a bug report against
    that package should be filed.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
      wireshark: Depends: libadns1 but it is not installable
                 Depends: wireshark-common (= 0.99.4-5.etch.2) but it is not going to be installed
    E: Broken packages
    RESULT=100
    I try and install libadns1 but it says it can't find the package. This is what my sources.list looks like:

    Code:
    #
    # deb cdrom:[Debian GNU/Linux 4.0 r3 _Etch_ - Official i386 kde-CD Binary-1 20080217-12:08]/ etch contrib main
    
    deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 CD Binary-3 20070407-11:55]/ etch main
    deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 CD Binary-2 20070407-11:55]/ etch main
    deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 CD Binary-1 20070407-11:55]/ etch contrib main
    deb cdrom:[Debian GNU/Linux 4.0 r3 _Etch_ - Official i386 kde-CD Binary-1 20080217-12:08]/ etch contrib main
    
    deb http://security.debian.org/ etch/updates main contrib
    deb-src http://security.debian.org/ etch/updates main contrib
    Any help would be greatly appreciated =)

  2. #2
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    libadns1 may not be on one of the 4 cd's you have listed there. Your best bet would be to add online repositories so you can have access to all 20,000 packages or so.

    Try following this guide to set up some online repos.

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  3. #3
    Just Joined!
    Join Date
    Dec 2007
    Posts
    19
    I followed the instructions on the site you gave me but when I try and execute
    Code:
    #apt-setup
    nothing happens and my sources.list file is the same. Thanks for your help.

  4. #4
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    Check /usr/share/doc/apt/examples/sources.list for an example sources.list. I don't have a Debian box handy so I am going to assume this lists online sources. If you want, you can post the contents here and I can help you craft it.

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  5. #5
    Just Joined!
    Join Date
    Dec 2007
    Posts
    19
    Cook thanks. The example sources.list looks like this:
    Code:
    # See sources.list(5) for more information, especialy
    # Remember that you can only use http, ftp or file URIs
    # CDROMs are managed through the apt-cdrom tool.
    deb http://http.us.debian.org/debian stable main contrib non-free
    deb http://security.debian.org stable/updates main contrib non-free
    
    # Uncomment if you want the apt-get source function to work
    #deb-src http://http.us.debian.org/debian stable main contrib non-free
    #deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
    I tried just using that as my sources.list and no packages showed up. Is there a list somewhere of all the different mirrors I can add?

  6. #6
    Linux User netstrider's Avatar
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    474
    It's safe to uncomment the last two repositories.

    You have to run: apt-get update and then apt-cache search wireshark | more. Should wireshark appear in the list you can install it with apt-get install wireshark.

    This is what my debian lists:

    Code:
    uholtz@atom:~$ apt-cache search wireshark
    ethereal - dummy upgrade package for ethereal -> wireshark
    ethereal-common - dummy upgrade package for ethereal -> wireshark
    ethereal-dev - dummy upgrade package for ethereal -> wireshark
    packeth - Ethernet packet generator
    tethereal - dummy upgrade package for ethereal -> wireshark
    tshark - network traffic analyzer (console)
    wireshark - network traffic analyzer
    wireshark-common - network traffic analyser (common files)
    wireshark-dev - network traffic analyser (development tools)

  7. #7
    Just Joined!
    Join Date
    Dec 2007
    Posts
    19
    Thank you that worked!

  8. #8
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    In case you were interested, you only had security updates available to you and you were limited to what was on those cds which is a small part of the overall software available to you as a Debian user.

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

Posting Permissions

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