LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-17-2009, 11:00 AM   #1
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Rep: Reputation: 15
Wireshark not running on CentOS?


I've installed wireshark using yum on centos. After the install when I typed 'wireshark' the shell couldn't recognise the command?
 
Old 08-17-2009, 11:18 AM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
The wireshark-gnome package is also available. Could you post the results of ' yum repolist '?
 
Old 08-18-2009, 01:57 AM   #3
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Original Poster
Rep: Reputation: 15
Here is the repolist:

Code:
[root@chat ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.hns.net.in
 * updates: mirrors.hns.net.in
 * addons: mirrors.hns.net.in
 * extras: mirrors.hns.net.in
base                                                     | 1.1 kB     00:00     
updates                                                  |  951 B     00:00     
addons                                                   |  951 B     00:00     
extras                                                   | 1.1 kB     00:00     
repo id              repo name                                status  
addons               CentOS-5 - Addons                        enabled :       0
base                 CentOS-5 - Base                          enabled :   2,508
extras               CentOS-5 - Extras                        enabled :     312
updates              CentOS-5 - Updates                       enabled :     437
repolist: 3,257
 
Old 08-18-2009, 02:09 AM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Quote:
[fred@localhost ~]$ yum repolist
Loaded plugins: fastestmirror
repo id repo name status
addons CentOS-5 - Addons enabled : 0
adobe-linux-i386 Adobe Systems Incorporated enabled : 17
atrpms Red Hat Enterprise Linux 5 - x86_64 - AT enabled : 1,465
base CentOS-5 - Base enabled : 3,272
centosplus CentOS-5 - Plus enabled : 93
epel Extra Packages for Enterprise Linux 5 - enabled : 4,155
extras CentOS-5 - Extras enabled : 278
updates CentOS-5 - Updates enabled : 571
repolist: 9,851
[fred@localhost ~]$
If you compare the number of packages in our base repos you can seen a huge discrepancy. You can try a " yum clean all " and then recheck your " yum repolist". If they are still showing the same post your /etc/yum.repos.d/CentOS-Base.repo file. It MAY be that you are locked onto a goofy mirror sight(rare but it happens occasionally).
 
Old 08-18-2009, 02:47 AM   #5
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Original Poster
Rep: Reputation: 15
Here is the output again after doing the things u'd instructed:

Code:
[root@chat ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@chat ~]# yum repolist
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: mirrors.hns.net.in
 * updates: mirrors.hns.net.in
 * addons: mirrors.hns.net.in
 * extras: mirrors.hns.net.in
base                                                     | 1.1 kB     00:00     
primary.xml.gz                                           | 878 kB     00:05     
base                                                           2508/2508
updates                                                  |  951 B     00:00     
primary.xml.gz                                           | 294 kB     00:01     
updates                                                        437/437
addons                                                   |  951 B     00:00     
primary.xml.gz                                           |  157 B     00:00     
extras                                                   | 1.1 kB     00:00     
primary.xml.gz                                           | 100 kB     00:00     
extras                                                         312/312
repo id              repo name                                status  
addons               CentOS-5 - Addons                        enabled :       0
base                 CentOS-5 - Base                          enabled :   2,508
extras               CentOS-5 - Extras                        enabled :     312
updates              CentOS-5 - Updates                       enabled :     437
repolist: 3,257
[root@chat ~]#
 
Old 08-18-2009, 03:36 AM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
I THINK the mirror you are using:

Quote:
mirrors.hns.net.in
is probably bad. Please post the contents of your /etc/yum.repos.d/CentOS-Base.repo file.
 
Old 08-18-2009, 03:49 AM   #7
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Original Poster
Rep: Reputation: 15
Here is the output:
Code:
[root@chat ~]# cat /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates 
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
[root@chat ~]#
 
Old 08-18-2009, 04:01 AM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Ok, the repo file looks fine(I thought maybe somebody hard coded in that specific repo).

There are two ways(main) to get around using that repo(only use one):

1st:

yum remove yum-fastestmirror
yum clean all (yep again)
yum repolist

Hopefully the list will change.

2nd:

Edit your repo file moving the # in front of the baseurl line to the front of the mirrorlist line (just on the [base] section). One or the other of these two lines MUST contain the #(makes it a comment). Again followed by a yum clean all and another yum repolist.
 
Old 08-18-2009, 04:21 AM   #9
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Original Poster
Rep: Reputation: 15
yum remove yum-fastestmirror has completely removed yum. I can't run yum in the shell again! How do I revert it?
 
Old 08-18-2009, 05:23 AM   #10
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
ANY time you are using yum make sure you read what it is telling you. It would have told you that it was removing yum and asked you to confirm.


Go here(assuming 64bit):

http://mirror.centos.org/centos/5/os/x86_64/CentOS/

You should be able to double click on the yum rpm and install it that way. IF not it may have removed more (dependencies), in that case you will have to save the rpms and then install them via rpm(see man rpm). Because rpm will not handle dependencies for you, you go through multiple install/download cycles.
 
Old 08-18-2009, 05:45 AM   #11
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Original Poster
Rep: Reputation: 15
Q: How do I know the architecture of my mach?
Ps: I believe it is 32-bit
Is this the right one:
http://mirror.centos.org/centos/5/os...tos.noarch.rpm

Last edited by deostroll; 08-18-2009 at 05:49 AM.
 
Old 08-18-2009, 05:55 AM   #12
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
You can use uname -a. For a 64 bit kernel it will look like:

Quote:
[fred@localhost ~]$ uname -a
Linux localhost.localdomain 2.6.18-128.4.1.el5 #1 SMP Tue Aug 4 20:19:25 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

with the x86_64 being the important part. For 32 bit it will be i686 or similiar.

In this particular case either address will work as the rpm is a noarch a rpm. Assuming your kernel is 32bit your address would be better(for most rpms, ie non noarch rpms).
 
Old 08-18-2009, 06:20 AM   #13
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Original Poster
Rep: Reputation: 15
Man, I sort of had to figure out the right way to use rpm. Anyway I got it fixed I think.

Code:
[root@chat rpms]# ls
yum-3.2.19-18.el5.centos.noarch.rpm
yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
[root@chat rpms]# rpm -i yum-3.2.19-18.el5.centos.noarch.rpm
error: Failed dependencies:
        yum-fastestmirror is needed by yum-3.2.19-18.el5.centos.noarch
[root@chat rpms]# rpm -i yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
error: Failed dependencies:
        yum >= 3.0 is needed by yum-fastestmirror-1.1.16-13.el5.centos.noarch
[root@chat rpms]# rpm -i yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm yum-3.2.19-18.el5.centos.noarch.rpm
[root@chat rpms]# rpm -qa | grep 'yum'
yum-metadata-parser-1.1.2-2.el5
yum-fastestmirror-1.1.16-13.el5.centos
yum-3.2.19-18.el5.centos
 
Old 08-18-2009, 06:48 AM   #14
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Original Poster
Rep: Reputation: 15
Tried installing the wireshark-gnome package. Now wireshark works. I can simply type it in the shell. However, I still wonder why it never appeared in the shell earlier; it was installed, right?
 
Old 08-18-2009, 11:42 AM   #15
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
I suspect that something on the initial install went amiss(it happens). Usually problems like this show up when third party repos are mixed, which is why I initially asked for your repolist. Obviously that was not the problem in your case. When you installed gnome-wireshark did you happen to notice if you were drawing off a different base repo address( other than mirrors.hns.net.in)? IF it was from a different site, it would be an indication that it has an issue (basically hung). If it was from that site I would say that you just had bad luck.

I would like to commend you on your skills. A lot of new users would not have gotten through this experience without doing a fresh install. Learning to install using rpm after the loss of yum is a HUGE step. While I would advise against using rpm for the most part(in favor of yum), it is an extremely valuable tool to have at your disposal(as you now know). This experience also has demonstrated to you how closely you have to read the information that the system is providing you. Essentially if you tell the system to shoot you in the foot, it will confirm that is what you really want to do and then do what you told it to. This is a double edged sword. You have complete control over the system, which means by definition that you also have the control to destroy the system. Congratulations.
 
  


Reply

Tags
centos, wireshark


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
raid 1 at running centos maceee Linux - Server 3 04-02-2009 02:47 AM
Centos - Installing & Using Wireshark tn_nayak Linux - Software 3 09-20-2008 04:24 AM
Difficulty running Griffith under CentOS 5 Linux31 Red Hat 4 04-19-2008 11:04 AM
Running CentOS at home and RHEL on the server JeffCT24 Red Hat 5 01-19-2008 07:13 PM
Wireshark Install On CentOS 64bit krams Linux - Newbie 3 04-24-2007 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration