[PlanetCCRMA] apt-get dist-upgrade problem

Fernando Pablo Lopez-Lezcano nando@ccrma.Stanford.EDU
Sat Mar 8 16:41:02 2003


> I've installed ccrma kernel and alsa drivers on RH8 some weeks ago.
> The first apt-get dist-upgrade worked fine but today it exits with
> the following message :
> 
> Executing RPM (-Uvh)...
> Preparing...                ########################################### 
> [100%]
>          package glibc-2.2.93-5 is already installed
> E: Sub-process /bin/rpm returned an error code (47)
> 
> I have done apt-get update before and have not forced any
> rpm install since the first working dist-upgrade.
> 
> Why apt-get tries to install a package which is already installed ?
> Is there a way to delete this package from the list of packages
> to update ?

I suspect that the rpm database is somehow corrupted, that is where apt
gets the information of what packages are installed. So apparently the
database says that the package is not installed (or is older) when it is
actually there. 

Obviously you do not want to remove or touch glibc :-)

I would try first to rebuild the rpm database, in a terminal type:
  rpmbuild --rebuilddb
After that try again with an "apt-get update", "apt-get dist-upgrade".
You could also see what apt-get reports if you do a:
  apt-get check

Let me know how it goes. 
-- Fernando