Linux - SoftwareThis 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.
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.
[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).
[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 ~]#
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.
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.
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).
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.