FC4 rpm not working properly
Alexander Apprich
a.apprich at science-computing.de
Fri Jul 22 10:45:20 UTC 2005
Hi Rodrigo,
Rodrigo López Negrete wrote:
> Hello,
>
> I've recently upgraded from FC3 to FC4 via yum.
> Everything worked fine until I decided to install a
> couple of extra packages. NTFS support was one of
> them.
> I downloaded the correct rpm and ran
>
> rpm -ivh
> kernel-module-ntfs-2.6.12-1.1398_FC4-2.1.22-0.rr.7.4.rpm
>
> And I got the following error...
>
> error:
> %pre(kernel-module-ntfs-2.6.12-1.1398_FC4-2.1.22-0.rr.7.4.i686)
> scriptlet failed, exit status 255
> error: install: %pre scriptlet failed (2), skipping
> kernel-module-ntfs-2.6.12-1.1398_FC4-2.1.22-0.rr.7.4
>
> After a couple of posts I got a solution to this by
> using the --noscripts option with rpm.
>
--noscript isn't a solution for sure. ;-)
> The problem is that rpm is not working properly when
> installing or uninstalling packages. It doesn't matter
> if I use yum or not. When, for example I tried to
> uninstall amule I got:
>
> [root at ajenjo ~]# rpm -q amule
> amule-2.0.1-1.2.fc4
> [root at ajenjo ~]# yum remove amule
> Repository extras already added, not adding again
> Setting up Remove Process
> Resolving Dependencies
> --> Populating transaction set with selected packages.
> Please wait.
> ---> Package amule.i386 0:2.0.1-1.2.fc4 set to be
> erased
> --> Running transaction check
>
> Dependencies Resolved
>
> =============================================================================
> Package Arch Version
> Repository Size
> =============================================================================
> Removing:
> amule i386 2.0.1-1.2.fc4
> installed 5.6 M
>
> Transaction Summary
> =============================================================================
> Install 0 Package(s)
> Update 0 Package(s)
> Remove 1 Package(s)
> Total download size: 0
> Is this ok [y/N]: y
> Downloading Packages:
> Running Transaction Test
> Finished Transaction Test
> Transaction Test Succeeded
> Running Transaction
> error: %preun(amule-2.0.1-1.2.fc4.i386) scriptlet
> failed, exit status 255
>
> Removed: amule.i386 0:2.0.1-1.2.fc4
> Complete!
> [root at ajenjo ~]# rpm -q amule
> amule-2.0.1-1.2.fc4
>
The rpm will be removed from the rpm database after the postremove
scripts have finished.
>
>
>
> As you can see, amule did not get removed... Has
> anybody else seen this type of thing? Has anybody else
> gotten this problem? Is this a bug in rpm, should I
> report it?
>
> In any case, I'd really appreciate some help. I'm
> using FC4 with kernel-2.6.12-1.1398_FC4 on an i686.
> I'm also using:
> rpm-4.4.1-22
> yum-2.3.2-7
>
try the following...
1. (re)move /var/lib/rpm/__db.00*
2. rpm --rebuilddb
Had the same problem after installing FC4, but I had this problem ever
since RH8.0 every now and then.
> THANKS AGAIN!!!
>
Hth
Alex
More information about the fedora-list
mailing list