Author Topic: <Not Really SOLVED> Synaptic -- Package Cache File errors  (Read 807 times)

Offline kentgbailey

  • Jr. Member
  • **
  • Posts: 29
<Not Really SOLVED> Synaptic -- Package Cache File errors
« on: October 31, 2012, 04:16:36 PM »
When I run Synaptic I get the following message:

"The Package cache file is corrupted"

How can I remedy this? I am obviously stuck.


Help!!!

Thank  you!
« Last Edit: November 27, 2012, 03:38:27 PM by kentgbailey »

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2117
Re: Synaptic -- Package Cache File errors
« Reply #1 on: October 31, 2012, 04:52:15 PM »

http://www.pclinuxos.com/forum/index.php/topic,110380.msg942158.html#msg942158

Quote
Open your file manager in superuser (root) mode. ---    
Open /var/cache/apt and delete the files pkgcache.bin and srcpkgcache.bin. Do not delete any other files/folders there.    
Next open /var/lib/apt/lists and delete the list files. Do not delete the lock file or any of the folders.    

In a terminal ---    
su    
give root password    
apt-get update    


In the worst case: http://www.pclinuxos.com/forum/index.php/topic,80839.msg669175.html#msg669175

Quote
How to repair the Synaptic RPM database

Open a Terminal Konsole
Type su and press the enter/return key
type in your root password (hidden) press the enter/return key

Remove corrupted database:
[root@localhost ~]# rm -rf /var/lib/rpm/__db*

Rebuild RPM database: (This can take a while. Let it finish!)
[root@localhost ~]# rpm --rebuilddb

Check for duplicate installed packages:
[root@localhost ~]# dupeclean

Clean out apt
[root@localhost ~]# apt-get clean
[root@localhost ~]# apt-get autoclean

Type exit
Type exit



JohnW

« Last Edit: October 31, 2012, 04:54:00 PM by JohnW_57 »
PCLinuxOS 2013 KDE4 (64 bit) on: home build system:  Intel Core 2 Quad (q6700) (2.66ghz), Asus P5K motherboard, 4 gig ddr2 memory, Asus Nvidia Geforce GTS 250 1024 mb gddr3, Crucial M4 128 SSD,  2x Samsung 500 gig HDD (sata), TSSTcorp CDDVDW SH-224BB.

Offline kentgbailey

  • Jr. Member
  • **
  • Posts: 29
Re: Synaptic -- Package Cache File errors
« Reply #2 on: November 01, 2012, 01:37:59 PM »
JohnW_57< In the first (and simpler scenario) I followed your instructions but in the last step when I issued the command "apt -get update", it came back with the message "bash command not found".
Which directory to I need to cd to?? I was logged in as "root".....

Offline kentgbailey

  • Jr. Member
  • **
  • Posts: 29
Re: Synaptic -- Package Cache File errors
« Reply #3 on: November 01, 2012, 09:21:12 PM »
Forget that last message, John, I entered apt-get update (instead of apt -get update) and it worked like a charm.
Thanks,again, for your help.

Offline kentgbailey

  • Jr. Member
  • **
  • Posts: 29
Re: <SOLVED> Synaptic -- Package Cache File errors
« Reply #4 on: November 27, 2012, 03:37:23 PM »
Well, I don't know what's going on, now. That fix you recommended for me works great for a few times and then, guess what, the package file is corrupted again. So I run the fix and it stays fixed for another 2 or 3 times and it gets corrupted again. What could be going on, John?

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2117
Re: <SOLVED> Synaptic -- Package Cache File errors
« Reply #5 on: November 27, 2012, 04:01:47 PM »
Well, I don't know what's going on, now. That fix you recommended for me works great for a few times and then, guess what, the package file is corrupted again. So I run the fix and it stays fixed for another 2 or 3 times and it gets corrupted again. What could be going on, John?

How many mirrors have you enabled in synaptic?

1 mirror for: megagames
1 mirror for: main updates nonfree kde games xfce4

This is recommended.

Mostly there's goes wrong when you have multiple mirrors added in synaptic.

JohnW


PCLinuxOS 2013 KDE4 (64 bit) on: home build system:  Intel Core 2 Quad (q6700) (2.66ghz), Asus P5K motherboard, 4 gig ddr2 memory, Asus Nvidia Geforce GTS 250 1024 mb gddr3, Crucial M4 128 SSD,  2x Samsung 500 gig HDD (sata), TSSTcorp CDDVDW SH-224BB.

Offline davey

  • Hero Member
  • *****
  • Posts: 919
Re: <Not Really SOLVED> Synaptic -- Package Cache File errors
« Reply #6 on: December 02, 2012, 04:08:13 PM »
I get a (I think) similar problem: when I update with Syaptic: a notice says "W: Release file did not contain checksum information for http://ftp.vim.org/ibiblio/distributions/pclinuxos/pclinuxos/apt/pclinuxos/2010/base/pkglist.kde4
W: Release file did not contain checksum information for http://ftp.vim.org/ibiblio/distributions/pclinuxos/pclinuxos/apt/pclinuxos/2010/base/release.kde4" This is with the vim repo, but the same thing happens with a couple others I tried. This repo does fine with the sources list app.

Apparently the update still works because I get new updateable files. This started after the big KDE update, which cause a lot of mess that I mostly managed to get fixed.

Offline JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2117
Re: <Not Really SOLVED> Synaptic -- Package Cache File errors
« Reply #7 on: December 02, 2012, 04:27:32 PM »
I get a (I think) similar problem: when I update with Syaptic: a notice says "W: Release file did not contain checksum information for http://ftp.vim.org/ibiblio/distributions/pclinuxos/pclinuxos/apt/pclinuxos/2010/base/pkglist.kde4
W: Release file did not contain checksum information for http://ftp.vim.org/ibiblio/distributions/pclinuxos/pclinuxos/apt/pclinuxos/2010/base/release.kde4" This is with the vim repo, but the same thing happens with a couple others I tried. This repo does fine with the sources list app.

Apparently the update still works because I get new updateable files. This started after the big KDE update, which cause a lot of mess that I mostly managed to get fixed.


I suggest to download the latest iso from http://ftp.vim.org/ibiblio/distributions/pclinuxos/pclinuxos/live-cd/
Backup your important stuff and install it

Guess your install gonna be broken or difficult to fix it.
A new install needs 15/30 minutes

So guess it's a better fix to get you system up to date!

JohnW


PCLinuxOS 2013 KDE4 (64 bit) on: home build system:  Intel Core 2 Quad (q6700) (2.66ghz), Asus P5K motherboard, 4 gig ddr2 memory, Asus Nvidia Geforce GTS 250 1024 mb gddr3, Crucial M4 128 SSD,  2x Samsung 500 gig HDD (sata), TSSTcorp CDDVDW SH-224BB.

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3990
Re: <SOLVED> Synaptic -- Package Cache File errors
« Reply #8 on: December 03, 2012, 05:27:38 AM »
Well, I don't know what's going on, now. That fix you recommended for me works great for a few times and then, guess what, the package file is corrupted again. So I run the fix and it stays fixed for another 2 or 3 times and it gets corrupted again. What could be going on, John?

You could try booting from a livecd and running fsck on your Linux partitions, in case the filesystem is corrupt, or it could be a dying hard drive or even RAM.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf