Update manager & Synaptic problems...

Larry Shields larry at isp.com
Fri Jun 22 12:35:07 UTC 2007


sktsee wrote:
> On Thu, 2007-06-21 at 11:36 -0500, Larry Shields wrote: 
>   
>> I have been having a problem in installing any software either by the 
>> update manager & synaptic...After the updates have finished, or packages 
>> installed via synaptic, I am getting this error message below...
>>
>> Software updates
>> Extracting templates from packages: 100%
>> dpkg: fgets gave an empty string from diversions (i)
>> E: Sub-process /usr/bin/dpkg returned an error code (2)
>> A package failed to install.
>>
>> Trying to recover.
>>
>> Has anyone had this problem, if so, could you please explain to me the 
>> fix for it...
>>
>> Thanks for any help on this matter...
>>
>> Larry
>>
>>     
>
> I haven't had this problem, but based on the error message you're
> reporting it sounds like dpkg is parsing /var/lib/dpkg/diversions and is
> hiccup'ing on a blank line or some incorrect character that might have
> crept into the file. Maybe you had a failed install, or segfault during
> an install/update that could have corrupted the file? Anyway, try
> moving /var/lib/dpkg/diversions to your home dir (as a backup) and then
> copy /var/lib/dpkg/diversions-old to /var/lib/dpkg/diversions. The -old
> copy is the previous version of the diversions file before its updated
> during a package install so it might not have the corruption in it (if
> that's what the problem is). If you get the same error after copying the
> -old file over, the you may need to manually edit the file to see if
> there are any blank lines or non-ascii characters present.
>
> Also check /var/log/dpkg.log to see if there any specific messages
> that'll help pinpoint the problem if the solutions listed above don't
> work.
>
>   
Thanks for the help and suggestions...I did check the diversions but I 
didn't see anything wrong, so I tried to see if by renaming it, would 
help...After doing so it didn't make any difference...
After using the software updates icon, it also gave me this error.
An error occurred
E: /var/cache/apt/archives/language-pack-en_1% 3 a 
6.10+20070601_all.debs: Files listed file for package 'kino' is missing 
final newline.

Now I then used synaptic to remove 'kino' but when it was finished it 
then said...
Trying to completely remove 'kino'

E: Kinoplus: files listed file for package 'kino' missing final newline, 
by the way, when you attempt to remove 'kino' it also tried to remove 
'kinoplus', but as mentioned it does not succeed...

Thanks all that I have come up with, to correct this problem but as of 
yet it hasn't not worked...

Might you have any other suggestions...???

Thanks Larry

-- 
Powered by Debian/GNU/Linux
by Ubuntu ver 6.10
73 de Larry/wd9esu 31yr's A.R.O.

"This is Linux Country,
on a quiet night you can hear
WINDOZE ! Systems REBOOTING !!"

GPG Fingerprint: A4D2 BFC2 B21B 8F7A C336 EFDC 7039 3CA5 3332 076E
Public Key available from subkeys.pgp.net





More information about the ubuntu-users mailing list