Rpm damaged after an "apt-get dist-upgrade "
![](https://seccdn.libravatar.org/avatar/bc4b5d18adf833c71c79b036ab084c82.jpg?s=120&d=mm&r=g)
Today I made an upgrade with apt-get on my SuSE 8.2, however things became quite weired: As you can see: # apt-get -f install a2ps Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: a2ps 0 packages upgraded, 1 newly installed, 0 removed and 10 not upgraded. Need to get 0B/1496kB of archives. After unpacking 1577kB of additional disk space will be used. Executing RPM (-Uvh)... a2ps ################################################## # which a2ps # a2ps -bash: a2ps: command not found # rpm -Uvh /var/cache/apt/archives/a2ps_4.13-1050_i586.rpm a2ps ########################################### # rpm -qa | grep a2ps So it seems "rpm" does not work at all. I am really worried about that. However I don't have a clue what had gone wrong. Can somebody give me some instructions. Thanks in advance! -- Yongtao Yang email: yongtao.yang@gmail.com
![](https://seccdn.libravatar.org/avatar/851a3c5e1f11f380856bf7d3bd9137cb.jpg?s=120&d=mm&r=g)
Op vrijdag 17 september 2004 20:07, schreef yongtao yang:
# which a2ps # a2ps -bash: a2ps: command not found # rpm -Uvh /var/cache/apt/archives/a2ps_4.13-1050_i586.rpm a2ps ########################################### # rpm -qa | grep a2ps
So it seems "rpm" does not work at all. I am really worried about that. However I don't have a clue what had gone wrong. Can somebody give me some instructions.
Some ideas, try: rpm -qa | less ls -l /bin/rpm ls -l /var/lib/rpm/Packages ls -l /var/lib/rpm rpm -V rpm Any suspected output? -- Richard Bos Without a home the journey is endless
![](https://seccdn.libravatar.org/avatar/bc4b5d18adf833c71c79b036ab084c82.jpg?s=120&d=mm&r=g)
On Fri, 17 Sep 2004 21:12:23 +0200, Richard Bos
Op vrijdag 17 september 2004 20:07, schreef yongtao yang:
# which a2ps # a2ps -bash: a2ps: command not found # rpm -Uvh /var/cache/apt/archives/a2ps_4.13-1050_i586.rpm a2ps ########################################### # rpm -qa | grep a2ps
So it seems "rpm" does not work at all. I am really worried about that. However I don't have a clue what had gone wrong. Can somebody give me some instructions.
Some ideas, try: rpm -qa | less ls -l /bin/rpm ls -l /var/lib/rpm/Packages ls -l /var/lib/rpm rpm -V rpm
Any suspected output?
Hello Richard: Thanks for your mail. I made the following checks: # rpm -qa | less ...(pretty long, 792 lines in total) # ls -l /bin/rpm -rwxr-xr-x 1 root root 1151948 2004-01-20 19:18 /bin/rpm # ls -l /var/lib/rpm/Packages ls: /var/lib/rpm/Packages: No such file or directory # ls -l /var/lib/rpm total 79160 drwxr-xr-x 2 root root 4096 2004-01-20 19:18 . drwxr-xr-x 30 root root 4096 2004-09-17 19:26 .. -rw-r--r-- 1 root root 16384 2004-09-17 20:56 conflictsindex.rpm -rw-r--r-- 1 root root 12058624 2004-09-17 20:56 fileindex.rpm -rw-r--r-- 1 root root 24576 2004-09-17 20:56 groupindex.rpm -rw-r--r-- 1 root root 49152 2004-09-17 20:56 nameindex.rpm -rw-r--r-- 1 root root 48741000 2004-09-17 20:17 packages.rpm -rw-r--r-- 1 root root 327680 2004-09-17 20:56 providesindex.rpm -rw-r--r-- 1 root root 21454848 2004-09-17 20:56 requiredby.rpm -rw-r--r-- 1 root root 16384 2004-09-17 20:56 triggerindex.rpm # rpm -V rpm No output. So the file /var/lib/rpm/Packages is missing, anyway to fix it. Another problem with the recent upgrade, I saw several lines in /var/log/message complaining "mtrr ... overlap existing ...", and after that gdm can not start, complaining "gdm[1711]: Display :0 is busy. There is another X server running already" Any ideas about that? Thanks in advance! -- Yongtao Yang email: yongtao.yang@gmail.com
participants (2)
-
Richard Bos
-
yongtao yang