[SOLVED] yum install * => No package * available

General support questions including new installations
Post Reply
MGreg
Posts: 3
Joined: 2010/11/30 16:45:57

[SOLVED] yum install * => No package * available

Post by MGreg » 2010/11/30 20:41:29

Hello,
I've been struggling on this for 12 hours and it's driving me mad.
I'm used to gentoo and rent a server with which gentoo was not provided so I decided to give CentOS a try.
The very first time everything went fine I installed apache & php extremely quickly. But today a shaggy iptable rule locked me out...(shame on me). So I had no other choice than reinstall the server. I thought it wouldn't be difficult to set up the programs.
However, no matter how many repositories I install, no matter how hard I try, which ever package I try to install I get the reply: "No package available".
From what I understand apache and php are part of CentOS-base rep but it doesn't work, I've added EPEL doesn't work, some "remi" doesn't work either.
This is just driving me mad so here are the different config files (there's no exclude rule... I cannot figure out why everything went fine 13 days ago and now I'm stuck).
If anyone could help .... thanks in advance.


[code][root@server ~]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

# Default.
# installonly_limit = 3

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
[/code]

[code][root@server ~]# cat /etc/yum.repos.d/*
[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
# CentOS-Media.repo
#
# This repo is used to mount the default locations for a CDROM / DVD on
# CentOS-5. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c5-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c5-media [command]

[c5-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
[/code]

Should you need any other info about my config let me I'd do anything (or nearly) for someone who could help me out of this mess.

Greg

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

[SOLVED] yum install * => No package * available

Post by AlanBartlett » 2010/11/30 21:24:24

Welcome to the [i]CentOS[/i] fora.

The recommended reading for all new members starts with the [url=https://www.centos.org/modules/newbb/viewforum.php?forum=47]FAQ & Readme First[/url].

The best thing you can do, to enable anyone to assist you, is to provide access to the output produced by executing [b]./getinfo.sh all[/b], as detailed in [url=https://www.centos.org/modules/newbb/viewtopic.php?topic_id=25128&forum=47]How To Provide Information About Your System[/url].

Once you have made that information available, for your own sanity, leave the system alone until tomorrow. :-)

MGreg
Posts: 3
Joined: 2010/11/30 16:45:57

Re: yum install * => No package * available

Post by MGreg » 2010/11/30 22:03:04

here comes the output for getinfo.sh all

[code]
== BEGIN uname -rmi ==
2.6.18-194.26.1.el5.centos.plus i686 i386
== END uname -rmi ==

== BEGIN rpm -q centos-release ==
centos-release-5-5.el5.centos
== END rpm -q centos-release ==

== BEGIN cat /etc/redhat-release ==
CentOS release 5.5 (Final)
== END cat /etc/redhat-release ==

== BEGIN getenforce ==
Permissive
== END getenforce ==

== BEGIN rpm -q yum rpm python ==
yum-3.2.22-26.el5.centos
rpm-4.4.2.3-20.el5_5.1
python-2.4.3-27.el5_5.3
== END rpm -q yum rpm python ==

== BEGIN ls /etc/yum.repos.d ==
CentOS-Base.repo
CentOS-Media.repo
== END ls /etc/yum.repos.d ==

== BEGIN cat /etc/yum.conf ==
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

# Default.
# installonly_limit = 3

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
== END cat /etc/yum.conf ==

== BEGIN yum repolist all ==
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.ircam.fr
* base: mirrors.ircam.fr
* extras: mirrors.ircam.fr
* updates: mirrors.ircam.fr
Not using downloaded repomd.xml because it is older than what we have:
Current : Fri May 14 22:16:07 2010
Downloaded: Fri May 14 22:16:03 2010
Not using downloaded repomd.xml because it is older than what we have:
Current : Fri Jun 11 08:01:19 2010
Downloaded: Thu Jun 10 18:16:07 2010
Not using downloaded repomd.xml because it is older than what we have:
Current : Wed Oct 27 00:15:46 2010
Downloaded: Wed Oct 27 00:15:34 2010
Not using downloaded repomd.xml because it is older than what we have:
Current : Sat Nov 27 13:54:17 2010
Downloaded: Sat Nov 27 13:48:19 2010
repo id repo name status
addons CentOS-5 - Addons enabled: 0
base CentOS-5 - Base enabled: 3,434
c5-media CentOS-5 - Media disabled
centosplus CentOS-5 - Plus disabled
contrib CentOS-5 - Contrib disabled
extras CentOS-5 - Extras enabled: 303
updates CentOS-5 - Updates enabled: 1,038
repolist: 4,775
== END yum repolist all ==

== BEGIN egrep 'include|exclude' /etc/yum.repos.d/*.repo ==
== END egrep 'include|exclude' /etc/yum.repos.d/*.repo ==

== BEGIN sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==
== END sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==

== BEGIN cat /etc/fstab ==
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts default 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/hda2 / ext3 defaults,errors=remount-ro 0 1
/dev/hda1 /boot ext3 defaults 0 2
/dev/hda3 none swap sw 0 0
== END cat /etc/fstab ==

== BEGIN df -h ==
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 146G 994M 138G 1% /
tmpfs 998M 0 998M 0% /dev/shm
/dev/hda1 190M 12M 169M 7% /boot
== END df -h ==

== BEGIN fdisk -l ==

Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 25 200781 83 Linux
/dev/hda2 26 19325 155027250 83 Linux
/dev/hda3 19326 19455 1044225 82 Linux swap / Solaris
== END fdisk -l ==

== BEGIN blkid ==
/dev/hda3: UUID="7c223d36-04cb-42f7-a70d-03527487a2fd" TYPE="swap"
/dev/hda1: LABEL="/boot" UUID="c15ddc91-8c6e-4d07-a04d-8f014002360a" TYPE="ext3"
/dev/hda2: LABEL="/" UUID="2d8eeeba-7b78-4505-a0e2-9e380960234d" TYPE="ext3"
== END blkid ==

== BEGIN rpm -qa kernel\* | sort ==
kernel-2.6.18-194.26.1.el5.centos.plus
== END rpm -qa kernel\* | sort ==

== BEGIN lspci ==
00:00.0 Host bridge: VIA Technologies, Inc. VX800 Host Bridge (rev 14)
00:00.1 Host bridge: VIA Technologies, Inc. VX800/VX820 Error Reporting
00:00.2 Host bridge: VIA Technologies, Inc. VX800/VX820 Host Bus Control
00:00.3 Host bridge: VIA Technologies, Inc. VX800 PCI to PCI Bridge
00:00.4 Host bridge: VIA Technologies, Inc. VX800/VX820 Power Management Control
00:00.5 PIC: VIA Technologies, Inc. VX800/VX820 APIC and Central Traffic Control
00:00.6 Host bridge: VIA Technologies, Inc. VX800/VX820 Scratch Registers
00:00.7 Host bridge: VIA Technologies, Inc. VX800/VX820 North-South Module Interface Control
00:01.0 VGA compatible controller: VIA Technologies, Inc. VX800/VX820 Chrome 9 HC3 Integrated Graphics (rev 11)
00:02.0 PCI bridge: VIA Technologies, Inc. VX800/VX820 PCI Express Root Port
00:03.0 PCI bridge: VIA Technologies, Inc. VX800/VX820 PCI Express Root Port
00:03.1 PCI bridge: VIA Technologies, Inc. VX800/VX820 PCI Express Root Port
00:0f.0 IDE interface: VIA Technologies, Inc. VX800 Serial ATA and EIDE Controller
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev a0)
00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 90)
00:11.0 ISA bridge: VIA Technologies, Inc. VX800/VX820 Bus Control and Power Management
00:11.7 Host bridge: VIA Technologies, Inc. VX8xx South-North Module Interface Control
00:13.0 PCI bridge: VIA Technologies, Inc. VX855/VX875 PCI to PCI Bridge
02:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
03:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
== END lspci ==

== BEGIN lspci -n ==
00:00.0 0600: 1106:0353 (rev 14)
00:00.1 0600: 1106:1353
00:00.2 0600: 1106:2353
00:00.3 0600: 1106:3353
00:00.4 0600: 1106:4353
00:00.5 0800: 1106:5353
00:00.6 0600: 1106:6353
00:00.7 0600: 1106:7353
00:01.0 0300: 1106:1122 (rev 11)
00:02.0 0604: 1106:c353
00:03.0 0604: 1106:e353
00:03.1 0604: 1106:f353
00:0f.0 0101: 1106:5324
00:10.0 0c03: 1106:3038 (rev a0)
00:10.1 0c03: 1106:3038 (rev a0)
00:10.4 0c03: 1106:3104 (rev 90)
00:11.0 0601: 1106:8353
00:11.7 0600: 1106:a353
00:13.0 0604: 1106:b353
02:00.0 0200: 8086:10d3
03:00.0 0200: 8086:10d3
== END lspci -n ==

== BEGIN ifconfig -a ==
eth0 Link encap:Ethernet HWaddr C8:0A:A9:C8:E7:BB
inet addr:88.191.130.177 Bcast:88.191.130.255 Mask:255.255.255.0
inet6 addr: fe80::ca0a:a9ff:fec8:e7bb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:55547 errors:0 dropped:0 overruns:0 frame:0
TX packets:9692 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5177201 (4.9 MiB) TX bytes:1645732 (1.5 MiB)
Memory:feae0000-feb00000

eth1 Link encap:Ethernet HWaddr C8:0A:A9:C8:E7:BC
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Memory:febe0000-fec00000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5370 errors:0 dropped:0 overruns:0 frame:0
TX packets:5370 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:668164 (652.5 KiB) TX bytes:668164 (652.5 KiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

== END ifconfig -a ==

== BEGIN route -n ==
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
88.191.130.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 88.191.130.1 0.0.0.0 UG 5 0 0 eth0
== END route -n ==

== BEGIN cat /etc/resolv.conf ==
nameserver 127.0.0.1
== END cat /etc/resolv.conf ==

== BEGIN grep net /etc/nsswitch.conf ==
#networks: nisplus [NOTFOUND=return] files
#netmasks: nisplus [NOTFOUND=return] files
netmasks: files
networks: files
netgroup: nisplus
== END grep net /etc/nsswitch.conf ==

== BEGIN chkconfig --list | grep -Ei 'network|wpa' ==
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
== END chkconfig --list | grep -Ei 'network|wpa' ==

[/code]

promised I won't be doing anything

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: yum install * => No package * available

Post by AlanBartlett » 2010/12/01 00:05:36

Two sections from your system information have caught my eye. The first, which is related to the subject of this thread, is --

[code]
== BEGIN yum repolist all ==
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
[i]<snip>[/i]
Not using downloaded repomd.xml because it is older than what we have:
Current : Fri May 14 22:16:07 2010
Downloaded: Fri May 14 22:16:03 2010
Not using downloaded repomd.xml because it is older than what we have:
Current : Fri Jun 11 08:01:19 2010
Downloaded: Thu Jun 10 18:16:07 2010
Not using downloaded repomd.xml because it is older than what we have:
Current : Wed Oct 27 00:15:46 2010
Downloaded: Wed Oct 27 00:15:34 2010
Not using downloaded repomd.xml because it is older than what we have:
Current : Sat Nov 27 13:54:17 2010
Downloaded: Sat Nov 27 13:48:19 2010
[i]<snip>[/i]
== END yum repolist all ==
[/code]
There is (was) a problem with the metadata on your local (fastest) mirror and it should be resolvable with a --

[code]
[b]yum clean all[/b]
[/code]
Indeed, that may be all that is necessary to solve this issue.

The other thing that caught my eye is that your disk is configured as an EIDE device. Left like that, you will experience a distinct performance hit. I would suggest that you check the system BIOS and the connection to the controller to see if you can switch it into SATA/AHCI mode . . .

[quote]
00:0f.0 IDE interface: VIA Technologies, Inc. VX800 Serial ATA and EIDE Controller
. . .
00:0f.0 0101: 1106:5324
[/quote]
It looks as if the disk controller can be configured for SATA mode. It really depends upon the disk drive, itself.

MGreg
Posts: 3
Joined: 2010/11/30 16:45:57

Re: yum install * => No package * available

Post by MGreg » 2010/12/01 06:19:08

THANK YOU

as you said
> yum clean all
solved it all.

As for the disk and the performance the server costs 14€/month with uncapped 1Gb/s bandwidth so I guess it's part of the package.
thanks again

Greg

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: [SOLVED] yum install * => No package * available

Post by AlanBartlett » 2010/12/01 18:27:27

[quote]
THANK YOU

as you said
> yum clean all
solved it all.
[/quote]
You're welcome. ;-)

For posterity, this thread is marked [SOLVED].

Post Reply