[PlanetCCRMA] apt for FC4?

Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU
Mon Jul 11 19:53:01 2005


On Mon, 2005-07-11 at 19:16, Mark Knecht wrote:
> On 11 Jul 2005 18:53:38 -0700, Fernando Lopez-Lezcano
> <nando@ccrma.stanford.edu> wrote:
> > 
> > You could try going one step down and trying to install the affected
> > packages, for example libcroco* probably belongs to the package
> > libcroco, so you could try "apt-get install libcroco" to see what is
> > holding it. Same with libcr* (I don't know which package those belong
> > to, I don't have fc3 up and running right now).
> > 
> > What does apt suggest if you run "apt-get -f install"? It may want to
> > erase half the packages so don't say yes without taking a close look at
> > what it wants to do :-)
> 
> With two copies of librvsg installed I was hoping some command would
> remove one of them but apt-get -f install is unhappy:
> 
> [root@Godzilla ~]# apt-get -f install
> Reading Package Lists... Done
> Building Dependency Tree... Done
> Correcting dependencies... Done
> The following packages will be REMOVED:
>   librsvg2#2.6.4-2
> 0 upgraded, 0 newly installed, 1 removed and 160 not upgraded.
> Need to get 0B of archives.
> After unpacking 233kB disk space will be freed.
> Do you want to continue? [Y/n] y
> Committing changes...
> Preparing...                ########################################### [100%]
> /var/tmp/rpm-tmp.77740: line 2: gdk-pixbuf-query-loaders: command not found
> error: %postun(librsvg2-2.6.4-2.i386) scriptlet failed, exit status 127
> W: Some errors occurred while running transaction
> [root@Godzilla ~]#

And after that it is still there? What do you get if you do a:
  rpm -q -a | grep librsvg2
Probably the one with the older version needs to be erased (I'm at home
and don't have a fc2 or fc4 system at hand). That _should_ be version
2.6.4-2, I think. 

Hmmm, I don't remember if the new rpm can erase selected versions of a
multiply installed package. If it does it would be something like:

  rpm -e --noscripts librsvg2=2.6.4-2

Otherwise you could erase _all_ versions of librsvg and then let apt-get
try to fix things up:

  rpm -e --allmatches librsvg2
(you will also probably need to add a "--nodeps" options)
If it still complains about scripts not executing properly try:
  rpm -e --allmatches --noscripts --nodeps librsvg2
:-)

and then:
  apt-get -f install
should get the fc4 version...

-- Fernando