On Sunday 07,March,2010 05:14 AM, Jer Hopkins wrote:
> Hi
> I am having the following problems with Tipptrainer:
> 
> dpkg: parse error, in file '/var/lib/dpkg/available' near line 15149
> package 'typptrainer':
>  `Depends' field, reference to `0tipptrainer-datQ-en': version contains ` '
> E: Sub-process /usr/bin/dpkg returned an error code (2)
> 
>  I cannot remove Tipptrainer  using either software center, apt-get or
> synaptic.The error is stopping Ubuntu system updates from installing.
> 
> I have also posted a question on Launchpad but the answers I have
> received have not worked.
> 
> Please help!

This is not a problem with the package. There is some disk corruption in the
file /var/lib/dpkg/available. That file does not really serve much use anyway,
so just truncate it to a zero-length file. That should resolve the issue. The
command is:

sudo truncate --size=0 /var/lib/dpkg/available /var/lib/dpkg/available-old

If you want to fully regenerate this file properly, use this command instead:

apt-cache dumpavail | sudo tee /var/lib/dpkg/available > /dev/null

However, doing this tends to make dpkg take a lot of memory to do anything,
since dpkg likes to read in the entire contents of /var/lib/dpkg/available
before doing anything.

-- 
Kind regards,
Chow Loong Jin (GPG: 0x8F02A411)
Ubuntu Developer

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
Ubuntu-motu mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-motu
  • Tipptrainer Jer Hopkins
    • Re: Tipptrainer Chow Loong Jin

Reply via email to