Problems with rpm database

Carl Reynolds fedora-list at hyperbole-software.com
Fri Mar 4 18:15:49 UTC 2005


Axel Thimm wrote:

>... apt claims you haven't updated glibc, have you? Should be
>glibc-2.3.4-2.fc3.
>
>If your installed package is still the old one, yum messed up, if it's
>the new old apt messed up.
>
>For good measure, I'd make sure my rpm database is in order. Try this:
>
>rm -f /var/lib/rpm/__*
>LD_ASSUME_KERNEL=2.4.1 rpm --rebuilddb
>
>Then try again the yum/apt commands.
>
Hi Axel,

I had already updated with up2date by the time I got your message. It is 
possible that it updated glibc. I didn't notice. However, I do have the 
2.3.4-2fc3 version of glibc installed.
   # rpm -q --qf '%{name}-%{version}-%{release} %{arch}\n' glibc
   glibc-2.3.4-2.fc3 x86_64

As you suggested, I rebuilt the rpm database:
   # rm -f /var/lib/rpm/__db.00*
   # LD_ASSUME_KERNEL=2.4.1 rpm --rebuilddb

Then I redid the yum and apt commands to see what would happen. The 
results are at the end of the message. You will notice that the apt-get 
upgrade works, although it does list some packages as being held back. I 
don't know if this indicates a problem or not.

apt-get dist-upgrade wants to remove a number of critical packages so I 
didn't continue with apt from that point.

I think I have my machine updated with up2date and can use yum or 
up2date to install any new packages I need. (I am assuming this because 
I'm not really familiar with the use of apt, yum, or up2date).

If it will help you with development of apt, I will be happy to continue 
to work on the problem with you. If not, thank you very much for the 
help you've offered in getting my machine up and running.

Carl.

















# yum update
Setting up Update Process
Setting up Repo:  base
repomd.xml                100% |=========================| 1.1 kB    00:00
Setting up Repo:  updates-released
repomd.xml                100% |=========================|  951 B    00:00
Reading repository metadata in from local files
base      : ################################################## 2852/2852
primary.xml.gz            100% |=========================| 302 kB    01:28
MD Read   : ################################################## 734/734
updates-re: ################################################## 734/734
No Packages marked for Update/Obsoletion

# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages have been kept back
  acl alsa-lib alsa-lib-devel alsa-utils beecrypt diffstat docbook-dtds
  fedora-release fetchmail flac freeglut glib2 glib2-devel gnupg howl lftp
  libacl libgcrypt libgpg-error libraw1394 libselinux libselinux-devel 
libxml2
  libxml2-devel libxml2-python libxslt libxslt-devel lm_sensors
  module-init-tools mutt openjade perl-HTML-Parser perl-XML-LibXML
  perl-XML-Parser perl-XML-Twig pkgconfig popt pyxf86config rhn-applet 
rhnlib
  rpm rpm-build rpm-devel rpm-python tcl up2date up2date-gnome yum zlib
  zlib-devel
0 upgraded, 0 newly installed, 0 removed and 50 not upgraded.

# apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
The following packages will be upgraded
  docbook-dtds fedora-release perl-XML-Twig rhnlib
The following packages will be REMOVED:
  atrpms-kickstart firstboot kdeaddons kdemultimedia rhn-applet rpm 
rpm-build
  rpm-devel rpm-python system-config-network system-config-network-tui
  system-config-packages system-config-users up2date up2date-gnome yum
The following NEW packages will be installed:
  atrpms atrpms-package-config docbook-style-dsssl elfutils-devel
  elfutils-libelf-devel nptl-devel perl-XML-XPath pythonabi
The following packages have been kept back
  acl alsa-lib alsa-lib-devel alsa-utils beecrypt diffstat fetchmail flac
  freeglut glib2 glib2-devel gnupg howl lftp libacl libgcrypt libgpg-error
  libraw1394 libselinux libselinux-devel libxml2 libxml2-devel 
libxml2-python
  libxslt libxslt-devel lm_sensors module-init-tools mutt openjade
  perl-HTML-Parser perl-XML-LibXML perl-XML-Parser pkgconfig popt 
pyxf86config
  tcl zlib zlib-devel
WARNING: The following essential packages will be removed
This should NOT be done unless you know exactly what you are doing!
  rpm
4 upgraded, 8 newly installed, 16 removed and 38 not upgraded.
Need to get 2596kB of archives.
After unpacking 73.9MB disk space will be freed.
You are about to do something potentially harmful
To continue type in the phrase 'Yes, do as I say!'
 ?] no
Abort.




More information about the users mailing list