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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-17-2009, 11:00 AM
|
#1
|
Member
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113
Rep:
|
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?
|
|
|
08-17-2009, 11:18 AM
|
#2
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
The wireshark-gnome package is also available. Could you post the results of ' yum repolist '?
|
|
|
08-18-2009, 01:57 AM
|
#3
|
Member
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113
Original Poster
Rep:
|
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
|
|
|
08-18-2009, 02:09 AM
|
#4
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
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).
|
|
|
08-18-2009, 02:47 AM
|
#5
|
Member
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113
Original Poster
Rep:
|
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 ~]#
|
|
|
08-18-2009, 03:36 AM
|
#6
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
I THINK the mirror you are using:
is probably bad. Please post the contents of your /etc/yum.repos.d/CentOS-Base.repo file.
|
|
|
08-18-2009, 03:49 AM
|
#7
|
Member
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113
Original Poster
Rep:
|
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 ~]#
|
|
|
08-18-2009, 04:01 AM
|
#8
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
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.
|
|
|
08-18-2009, 04:21 AM
|
#9
|
Member
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113
Original Poster
Rep:
|
yum remove yum-fastestmirror has completely removed yum. I can't run yum in the shell again! How do I revert it?
|
|
|
08-18-2009, 05:23 AM
|
#10
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
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.
|
|
|
08-18-2009, 05:45 AM
|
#11
|
Member
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113
Original Poster
Rep:
|
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.
|
|
|
08-18-2009, 05:55 AM
|
#12
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
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).
|
|
|
08-18-2009, 06:20 AM
|
#13
|
Member
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113
Original Poster
Rep:
|
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
|
|
|
08-18-2009, 06:48 AM
|
#14
|
Member
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113
Original Poster
Rep:
|
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?
|
|
|
08-18-2009, 11:42 AM
|
#15
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 03:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|