Forum Stats

  • 3,760,455 Users
  • 2,251,709 Discussions
  • 7,871,131 Comments

Discussions

How to: Install Wireshark on OEL-7.6 --SOLVED

User_I3HDV
User_I3HDV Member Posts: 3 Red Ribbon
edited May 28, 2021 1:26PM in Oracle Linux

Hello:

We are trying to capture and do an analysis on our wireless traffic. Our APs can send packets to a machine where we want to capture them using wireshark for our analysis. We have a server with OEL7.6 that we want to use. Has anyone managed to install wireshark on Oracle Enterprise Linux? We tried to install using yum and getting the following errors. (--skip-broken doesn't work). We are unable to find other packages or ways to fix the dependencies. I am relatively new to linux administration and any help will be great

ctea04dv:/root # yum install -y wireshark-devel-1.10.14-25.0.1.el7.x86_64.rpm

Loaded plugins: rhnplugin

There was an error communicating with RHN.

Spacewalk support will be disabled.

rhn-plugin: Error communicating with server. The message was:

Connection refused

Examining wireshark-devel-1.10.14-25.0.1.el7.x86_64.rpm: wireshark-devel-1.10.14-25.0.1.el7.x86_64

Marking wireshark-devel-1.10.14-25.0.1.el7.x86_64.rpm to be installed

Resolving Dependencies

--> Running transaction check

---> Package wireshark-devel.x86_64 0:1.10.14-25.0.1.el7 will be installed

--> Processing Dependency: wireshark = 1.10.14-25.0.1.el7 for package: wireshark-devel-1.10.14-25.0.1.el7.x86_64

--> Processing Dependency: glib2-devel for package: wireshark-devel-1.10.14-25.0.1.el7.x86_64

--> Processing Dependency: pkgconfig(glib-2.0) for package: wireshark-devel-1.10.14-25.0.1.el7.x86_64

--> Processing Dependency: pkgconfig(gmodule-2.0) for package: wireshark-devel-1.10.14-25.0.1.el7.x86_64

--> Processing Dependency: libwireshark.so.3()(64bit) for package: wireshark-devel-1.10.14-25.0.1.el7.x86_64

--> Processing Dependency: libwiretap.so.3()(64bit) for package: wireshark-devel-1.10.14-25.0.1.el7.x86_64

--> Processing Dependency: libwsutil.so.3()(64bit) for package: wireshark-devel-1.10.14-25.0.1.el7.x86_64

--> Finished Dependency Resolution

Error: Package: wireshark-devel-1.10.14-25.0.1.el7.x86_64 (/wireshark-devel-1.10.14-25.0.1.el7.x86_64)

          Requires: pkgconfig(glib-2.0)

Error: Package: wireshark-devel-1.10.14-25.0.1.el7.x86_64 (/wireshark-devel-1.10.14-25.0.1.el7.x86_64)

          Requires: libwsutil.so.3()(64bit)

Error: Package: wireshark-devel-1.10.14-25.0.1.el7.x86_64 (/wireshark-devel-1.10.14-25.0.1.el7.x86_64)

          Requires: pkgconfig(gmodule-2.0)

Error: Package: wireshark-devel-1.10.14-25.0.1.el7.x86_64 (/wireshark-devel-1.10.14-25.0.1.el7.x86_64)

          Requires: libwiretap.so.3()(64bit)

Error: Package: wireshark-devel-1.10.14-25.0.1.el7.x86_64 (/wireshark-devel-1.10.14-25.0.1.el7.x86_64)

          Requires: libwireshark.so.3()(64bit)

Error: Package: wireshark-devel-1.10.14-25.0.1.el7.x86_64 (/wireshark-devel-1.10.14-25.0.1.el7.x86_64)

          Requires: glib2-devel

Error: Package: wireshark-devel-1.10.14-25.0.1.el7.x86_64 (/wireshark-devel-1.10.14-25.0.1.el7.x86_64)

          Requires: wireshark = 1.10.14-25.0.1.el7

 You could try using --skip-broken to work around the problem

** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:

rhncfg-5.10.99-1.0.3.el7.noarch has missing requires of spacewalk-backend-usix

Thanks,

Kishan.

Best Answer

  • Avi Miller-Oracle
    Avi Miller-Oracle Senior Solution Architect, Oracle Cloud Infrastructure Developer Adoption Melbourne, AustraliaPosts: 4,823 Employee
    Accepted Answer

    You're missing the primary ol7_latest channel. Try running this:

    $ sudo yum-config-manager --enable ol7_latest
    

    You should get the following (or similar) response:

    
    Loaded plugins: ovl
    ========================= repo: ol7_latest =========================
    [ol7_latest]
    async = True
    bandwidth = 0
    base_persistdir = /var/lib/yum/repos/x86_64/7Server
    baseurl = https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/
    cache = 0
    cachedir = /var/cache/yum/x86_64/7Server/ol7_latest
    check_config_file_age = True
    compare_providers_priority = 80
    cost = 1000
    deltarpm_metadata_percentage = 100
    deltarpm_percentage =
    enabled = True
    enablegroups = True
    exclude =
    failovermethod = priority
    ftp_disable_epsv = False
    gpgcadir = /var/lib/yum/repos/x86_64/7Server/ol7_latest/gpgcadir
    gpgcakey =
    gpgcheck = True
    gpgdir = /var/lib/yum/repos/x86_64/7Server/ol7_latest/gpgdir
    gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    hdrdir = /var/cache/yum/x86_64/7Server/ol7_latest/headers
    http_caching = all
    includepkgs =
    ip_resolve =
    keepalive = True
    keepcache = False
    mddownloadpolicy = sqlite
    mdpolicy = group:small
    mediaid =
    metadata_expire = 21600
    metadata_expire_filter = read-only:present
    metalink =
    minrate = 0
    mirrorlist =
    mirrorlist_expire = 86400
    name = Oracle Linux 7Server Latest (x86_64)
    old_base_cache_dir =
    password =
    persistdir = /var/lib/yum/repos/x86_64/7Server/ol7_latest
    pkgdir = /var/cache/yum/x86_64/7Server/ol7_latest/packages
    proxy = False
    proxy_dict =
    proxy_password =
    proxy_username =
    repo_gpgcheck = False
    retries = 10
    skip_if_unavailable = False
    ssl_check_cert_permissions = True
    sslcacert =
    sslclientcert =
    sslclientkey =
    sslverify = True
    throttle = 0
    timeout = 30.0
    ui_id = ol7_latest/x86_64
    ui_repoid_vars = releasever,
       basearch
    username =
    

    If you do, try running:

    $ sudo yum install wireshark
    

    Which should hopefully work.

Answers

  • Avi Miller-Oracle
    Avi Miller-Oracle Senior Solution Architect, Oracle Cloud Infrastructure Developer Adoption Melbourne, AustraliaPosts: 4,823 Employee

    What's the output of

    # yum repolist
    

    on that server? It looks like it was possibly migrated from RHEL but may not be configured to use Oracle's yum repos properly.

  • User_I3HDV
    User_I3HDV Member Posts: 3 Red Ribbon

    Avi,

    Thank you for your response.

    Here is the output of repolist:

    ctea04dv:/root # yum repolist

    Loaded plugins: rhnplugin

    There was an error communicating with RHN.

    Spacewalk support will be disabled.

    rhn-plugin: Error communicating with server. The message was:

    Connection refused

    repo id                                    repo name                                           status

    ol7_addons/x86_64                          Oracle Linux 7Server Add ons (x86_64)                  489

    ol7_optional_latest/x86_64                 Oracle Linux 7Server Optional Latest (x86_64)       16,188

    repolist: 16,677


    With yum list, I get 2 packages, and I tried them both without success, resulting in the same errors.

    ctea04dv:/root # yum list | grep wireshark

    There was an error communicating with RHN.

    Spacewalk support will be disabled.

    rhn-plugin: Error communicating with server. The message was:

    Connection refused

    wireshark-devel.i686               1.10.14-25.0.1.el7     ol7_optional_latest

    wireshark-devel.x86_64             1.10.14-25.0.1.el7     ol7_optional_latest


    Regards,

    Kishan.

  • Avi Miller-Oracle
    Avi Miller-Oracle Senior Solution Architect, Oracle Cloud Infrastructure Developer Adoption Melbourne, AustraliaPosts: 4,823 Employee
    Accepted Answer

    You're missing the primary ol7_latest channel. Try running this:

    $ sudo yum-config-manager --enable ol7_latest
    

    You should get the following (or similar) response:

    
    Loaded plugins: ovl
    ========================= repo: ol7_latest =========================
    [ol7_latest]
    async = True
    bandwidth = 0
    base_persistdir = /var/lib/yum/repos/x86_64/7Server
    baseurl = https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/
    cache = 0
    cachedir = /var/cache/yum/x86_64/7Server/ol7_latest
    check_config_file_age = True
    compare_providers_priority = 80
    cost = 1000
    deltarpm_metadata_percentage = 100
    deltarpm_percentage =
    enabled = True
    enablegroups = True
    exclude =
    failovermethod = priority
    ftp_disable_epsv = False
    gpgcadir = /var/lib/yum/repos/x86_64/7Server/ol7_latest/gpgcadir
    gpgcakey =
    gpgcheck = True
    gpgdir = /var/lib/yum/repos/x86_64/7Server/ol7_latest/gpgdir
    gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    hdrdir = /var/cache/yum/x86_64/7Server/ol7_latest/headers
    http_caching = all
    includepkgs =
    ip_resolve =
    keepalive = True
    keepcache = False
    mddownloadpolicy = sqlite
    mdpolicy = group:small
    mediaid =
    metadata_expire = 21600
    metadata_expire_filter = read-only:present
    metalink =
    minrate = 0
    mirrorlist =
    mirrorlist_expire = 86400
    name = Oracle Linux 7Server Latest (x86_64)
    old_base_cache_dir =
    password =
    persistdir = /var/lib/yum/repos/x86_64/7Server/ol7_latest
    pkgdir = /var/cache/yum/x86_64/7Server/ol7_latest/packages
    proxy = False
    proxy_dict =
    proxy_password =
    proxy_username =
    repo_gpgcheck = False
    retries = 10
    skip_if_unavailable = False
    ssl_check_cert_permissions = True
    sslcacert =
    sslclientcert =
    sslclientkey =
    sslverify = True
    throttle = 0
    timeout = 30.0
    ui_id = ol7_latest/x86_64
    ui_repoid_vars = releasever,
       basearch
    username =
    

    If you do, try running:

    $ sudo yum install wireshark
    

    Which should hopefully work.

  • User_I3HDV
    User_I3HDV Member Posts: 3 Red Ribbon

    Avi:

    It worked! Thank you so very much. I've been wrangling with this issue for quite sometime now and you figured it out with just a couple of questions. Awesome!

    Thanks again!

    Regards,

    Kishan.