Re: Yum segmentation fault updating from 5.6 to 5.7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Alain Péan wrote:
> What if you delete (or save elsewhere) the primary.xml.gz.sqlite file ?
> If it is corrupted, it would do no arm, and perhaps it is no more used
> or regenerated if it missing ?

This doesn't work unfortunately, yum always creates the same corrupted file:

- here I use yum to delete the yum cache, then I confirm that the file 
does not exist anymore, but the subsequent update fails and the 
corrupted file is there again

[root@picard ~]# yum clean all
Loaded plugins: downloadonly, fastestmirror, priorities
Cleaning up Everything
[root@picard ~]# ll /var/cache/yum/base 

total 4.0K
drwxr-xr-x 2 root root 4.0K Sep 14 21:56 packages/
[root@picard ~]# yum update
Loaded plugins: downloadonly, fastestmirror, priorities
Determining fastest mirrors
  * base: mirrors.ircam.fr
  * updates: mirrors.ircam.fr
base                                         | 1.1 kB     00:00
base/primary                                 | 961 kB     00:02
Segmentation fault
[root@picard ~]# ll /var/cache/yum/base
total 1000K
-rw-r--r-- 1 root root    0 Sep 15 23:43 cachecookie
-rw-r--r-- 1 root root  985 Sep 15 23:43 mirrorlist.txt
drwxr-xr-x 2 root root 4.0K Sep 14 21:56 packages/
-rw-r--r-- 1 root root 961K Sep  5 13:52 primary.xml.gz
-rw-r--r-- 1 root root  20K Sep 15 23:43 primary.xml.gz.sqlite
-rw-r--r-- 1 root root 1.2K Sep  5 13:52 repomd.xml

- here I delete just the corrupted file, I confirm that it doesn't exist 
anymore, but the subsequent update fails and the file is there again

[root@picard ~]# rm -f /var/cache/yum/base/primary.xml.gz.sqlite
[root@picard ~]# ll /var/cache/yum/base
total 980K
-rw-r--r-- 1 root root    0 Sep 15 23:43 cachecookie
-rw-r--r-- 1 root root  985 Sep 15 23:43 mirrorlist.txt
drwxr-xr-x 2 root root 4.0K Sep 14 21:56 packages/
-rw-r--r-- 1 root root 961K Sep  5 13:52 primary.xml.gz
-rw-r--r-- 1 root root 1.2K Sep  5 13:52 repomd.xml
[root@picard ~]# yum update
Loaded plugins: downloadonly, fastestmirror, priorities
Loading mirror speeds from cached hostfile
  * base: mirrors.ircam.fr
  * updates: mirrors.ircam.fr
Segmentation fault
[root@picard ~]# ll /var/cache/yum/base
total 1000K
-rw-r--r-- 1 root root    0 Sep 15 23:43 cachecookie
-rw-r--r-- 1 root root  985 Sep 15 23:43 mirrorlist.txt
drwxr-xr-x 2 root root 4.0K Sep 14 21:56 packages/
-rw-r--r-- 1 root root 961K Sep  5 13:52 primary.xml.gz
-rw-r--r-- 1 root root  20K Sep 15 23:43 primary.xml.gz.sqlite
-rw-r--r-- 1 root root 1.2K Sep  5 13:52 repomd.xml

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux