01
Mar
07

Miam: It's French for leaving a bad taste in your mouth

(Side note: Due to 410549, some kind of PHP4/Apache2 bug in Debian/Stable that WordPress 2.1 has triggered, this site’s not loading fully. It’s apparently only happening on Debian, and upgrading PHP4 to the Dotdeb 4.4 build fixes it, apparently. >_<)

Anyway, here’s an entry in my “Why everything that isn’t apt sucks” category.

[root@bookcase ~]# yum info kernel-2.6.19-1.2911.fc6.i686 kernel-devel-2.6.19-1.2911.fc6.i686
Loading "installonlyn" plugin
Setting up repositories
Reading repository metadata in from local files
Available Packages
Name   : kernel
Arch   : i686
Version: 2.6.19
Release: 1.2911.fc6
Size   : 16 M
Repo   : updates
Summary: The Linux kernel (the core of the Linux operating system)
Description:
The kernel package contains the Linux kernel (vmlinuz), the core of any
Linux operating system.  The kernel handles the basic functions
of the operating system:  memory allocation, process allocation, device
input and output, etc.


Name   : kernel-devel
Arch   : i686
Version: 2.6.19
Release: 1.2911.fc6
Size   : 4.7 M
Repo   : updates
Summary: Development package for building kernel modules to match the kernel.
Description:
This package provides kernel headers and makefiles sufficient to build modules
against the kernel package.

[root@bookcase ~]# yum install kernel-2.6.19-1.2911.fc6.i686 kernel-devel-2.6.19-1.2911.fc6.i686
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package kernel-devel.i686 0:2.6.19-1.2911.fc6 set to be installed
--> Running transaction check
--> Populating transaction set with selected packages. Please wait.
---> Package kernel-devel.i686 0:2.6.18-1.2798.fc6 set to be erased
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 kernel-devel            i686       2.6.19-1.2911.fc6  updates           4.7 M
Removing:
 kernel-devel            i686       2.6.18-1.2798.fc6  installed          14 M

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       1 Package(s)

Total download size: 4.7 M
Is this ok [y/N]: Y
Downloading Packages:
(1/1): kernel-devel-2.6.1 100% |=========================| 4.7 MB    00:21
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: kernel-devel                 ######################### [1/2]
  Cleanup   : kernel-devel                 ######################### [2/2]

Removed: kernel-devel.i686 0:2.6.18-1.2798.fc6
Installed: kernel-devel.i686 0:2.6.19-1.2911.fc6
Complete!
[root@bookcase ~]# yum install kernel-2.6.19-1.2911.fc6.i686
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do
[root@bookcase ~]# rpm -q kernel-2.6.19-1.2911.fc6.i686
package kernel-2.6.19-1.2911.fc6.i686 is not installed
[root@bookcase ~]# wget http://mirror.aarnet.edu.au/pub/fedora/linux/core/updates/6/i386/kernel-2.6.19-1.2911.fc6.i686.rpm
...
11:36:50 (141 KB/s) - `kernel-2.6.19-1.2911.fc6.i686.rpm' saved [17169362/17169362]
[root@bookcase ~]# rpm -i kernel-2.6.19-1.2911.fc6.i686.rpm
[root@bookcase ~]# rpm -q kernel-2.6.19-1.2911.fc6.i686
kernel-2.6.19-1.2911.fc6
[root@bookcase ~]# yum info kernel-2.6.19-1.2911.fc6.i686 kernel-devel-2.6.19-1.2911.fc6.i686
Loading "installonlyn" plugin
Setting up repositories
Reading repository metadata in from local files
Installed Packages
Name   : kernel
Arch   : i686
Version: 2.6.19
Release: 1.2911.fc6
Size   : 46 M
Repo   : installed
Summary: The Linux kernel (the core of the Linux operating system)

Description:
The kernel package contains the Linux kernel (vmlinuz), the core of any
Linux operating system.  The kernel handles the basic functions
of the operating system:  memory allocation, process allocation, device
input and output, etc.


Name   : kernel-devel
Arch   : i686
Version: 2.6.19
Release: 1.2911.fc6
Size   : 14 M
Repo   : installed
Summary: Development package for building kernel modules to match the kernel.

Description:
This package provides kernel headers and makefiles sufficient to build modules
against the kernel package.

This all started when I tried to build a kernel module for the default Fedora Core 6 kernel on a fileserver at MF, only to find that the version magic didn’t match, as I had an i586 kernel but i686 headers. No matter the cajoling, I couldn’t get it to install an i586 set of headers, or an i686 version of the running kernel. I gave in and figured that due to a security issue, the old 2.6.19 kernel had been retired and the new kernel (2911) was the only one in the repositories.

Which led me to try the above. Clearly, yum agrees there’s a kernel image RPM and kernel headers RPM available, both i686, but bizarrely is completely ignoring any requests to install it. And I mean ignoring, no error, no failure, it’s as if I haven’t listed the pacakge.

Sure enough, grabbing the RPM directly from the mirror and installing it with rpm worked fine.

And just to keep the hate flowing, the default setup of Yum is awful. There’s no Australian mirrors in the mirror rotation, so I was getting 20kB/s before thinking to take away its mirror list and force it to use mirror.aarnet and suddenly getting the full effect of our two-megabit-per-second link. And before I did that, if I changed my mind about an operation that was busy fetching things from the network, control-c would kill the fetcher, and yum would then proceed to try the next mirror in the list. The default installation contains a huge list of mirrors (fetched from the Fedora website) which now I look at it, does start with mirror.aarnet, although it also then tells me it couldn’t find any mirrors to match AU, despite having just given me one, and lists mirrors all over the shop. And it certainly never seemed to be using one when told to fetch something.

In Yum’s defense, I will say that it survived being backgrounded and kill -9d on several occations. ^_^

Speaking of changing mirrors, it doesn’t notice when you tell it to use a different mirror, and won’t invalidate its cached metadata, meaning it’ll reject the downloaded primary.xml.gz. When this happens, it still doesn’t clear its metadata, meaning if you try it again, it’ll fail again.

I feel better, having vented that. And I can hardly wait until we can whack this server and make it a nice Debian box, like all the rest of the systems in here (bar one FC4 box which only has one task, but happens to be in the DMZ…).

OK, one more thing. The Yum instructions say you can upgrade Fedora Core using Yum, but don’t. And it’ll only go one version at a time, and the box was an FC4 box in need of serious love. So I loved having to grab a four-gigabyte DVD to upgrade a server which is actually less than four gigabytes of system… It would have been quicker to image everything but our data, and FTP that to someone who already had the DVD. Except that it had to come back too. And it turned out to have, for a server, an incredible amount of crap on it. (I’ve this afternoon removed kde, gnome, metacity, cups, evolution, firefox…) This machine is Raided, backed up and was never ever going to be someone’s desktop machine. (I hope).

Although I now understand why there are people who want to upgrade Sarge to Etch, and start by downloading the 8-CD weekly Etch image. And in fact I had someone two weeks ago who was going to install Sarge, didn’t have a good Internet connection, and was asking if there was a better way than grabbing two DVD images.

In case you’re wondering, the kernel module I wanted to build was ppscsi, for a HP ScanJet 5100C. I wouldn’t have had this problem under Debian. ^_^


2 Responses to “Miam: It's French for leaving a bad taste in your mouth”


  1. 2007年 3月 9日 at 10:58 am

    Hi there,
    This has nothing to do with this article, but I couldn’t find the contact form on your site.
    You don’t know me but I currently use your plugin. (Weather pixie widget)
    I have recently found a great plugin called Plugin Manager by Martin Fitzpatrick.(http://www.mutube.com/projects/wordpress/update-manager/)

    It basically compares the installed versions of plugins with the list of plugins on http://wp-plugins.net/ and lets users know when a new version is availabe.

    Your plugin currently comes up as unknown because it is not listed on that web site.

    Could you please consider listing your plugin on this site so that users can be easily informed of updates.

    Regards
    AJ Jack

  2. 2007年 5月 1日 at 1:08 am

    Done. Prolly woulda been better as a comment against the post where I announced the widget, but I don’t really mind. ^_^

    I also added the irrepressible.info Widget, but the top10 plugin’s already listed on the site so I don’t think I should be adding my widgetisation. The author of the top10 plugin is already aware of my changes.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: