Problem with perl in Debian Sarge

Discussion in 'Programming/Scripts' started by nenad, Jul 5, 2006.

  1. nenad

    nenad Member

    Hi,

    I have this problem:

    The following packages have unmet dependencies:
    libsnmp4.2-dev: Conflicts: libsnmp-dev libsnmp5-dev: Conflicts: libsnmp-dev

    what should I do about it? How can I reslove that?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What's in /etc/apt/sources.list? Does /etc/apt/preferences exist? If so, what's in it?
     
  3. nenad

    nenad Member

    /etc/apt/sources.list

    Code:
    #deb file:///cdrom/ sarge main
    
    deb ftp://ftp.debian.org/debian/ stable main
    deb-src ftp://ftp.debian.org/debian/ stable main
    
    deb http://security.debian.org/ stable/updates main
    /etc/apt/preferences

    does not exist
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Looks ok. Did you change /etc/apt/sources.list recently, or has it always been like this?
    Please run
    Code:
    apt-get update
    and try again.
     
  5. nenad

    nenad Member

    No, it is happening again :(

    Code:
    server201:~# apt-get install libsnmp*
    Reading Package Lists... Done
    Building Dependency Tree... Done
    Note, selecting libsnmp5-dev for regex 'libsnmp*'
    Note, selecting libsnmpkit2c102 for regex 'libsnmp*'
    Note, selecting libsnmp-mib-compiler-perl for regex 'libsnmp*'
    Note, selecting libsnmpkit-dev for regex 'libsnmp*'
    Note, selecting libsnmp for regex 'libsnmp*'
    Note, selecting libsnmp-base instead of libsnmp
    Note, selecting libsnmpkit1 for regex 'libsnmp*'
    Note, selecting libsnmpkit2 for regex 'libsnmp*'
    Note, selecting libsnmp4.2 for regex 'libsnmp*'
    Note, selecting libsnmp4.2-dev for regex 'libsnmp*'
    Note, selecting libsnmp-perl for regex 'libsnmp*'
    Note, selecting libsnmp-dev for regex 'libsnmp*'
    Note, selecting libsnmp-base for regex 'libsnmp*'
    Note, selecting libsnmp5 for regex 'libsnmp*'
    Note, selecting libsnmp1.4-java for regex 'libsnmp*'
    Note, selecting libsnmp-session-perl for regex 'libsnmp*'
    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:
      libsnmp4.2-dev: Conflicts: libsnmp-dev
      libsnmp5-dev: Conflicts: libsnmp-dev
    E: Broken packages
    server201:~#
    
     
  6. falko

    falko Super Moderator Howtoforge Staff

    What about this question?

     
  7. nenad

    nenad Member

    No, it's been like that since installation of Debian & ISPconfig.
    Anyway, I regulary run apt-get update & apt-get upgrade
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Now I see that you're using a wildcard:
    Code:
    apt-get install libsnmp*
    It then tries to install libsnmp5-dev and libsnmp4.2-dev at the same time, but of course these packages are conflicting. Please specify the exact package names when you use apt-get instead of using wildcards.
     

Share This Page