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

Re: aptitude upgrade errors



On 01/27/2011 08:13 AM, Kelly Harding wrote:
hi

have been getting following errors when tryign to upgrade my Debian sid box:

dpkg-query: parse error, in file '/var/lib/dpkg/status' near line
29666 package 'virtualbox-2.1':
  error in Version string `2.1.4-42893_Debian_lenny': invalid character
in revision number
exim4-config.postinst: [WARN] Installed debconf version is broken.
Aborting preconfigure.
dpkg: parse error, in file '/var/lib/dpkg/status' near line 29666
package 'virtualbox-2.1':
  error in Version string `2.1.4-42893_Debian_lenny': invalid character
in revision number
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install.  Trying to recover:
dpkg: parse error, in file '/var/lib/dpkg/status' near line 29666
package 'virtualbox-2.1':
  error in Version string `2.1.4-42893_Debian_lenny': invalid character
in revision number


Results in inability to upgrade any packages on the system.

Anyone come across this and know how to fix? or is a system re-install needed?

kelly


Hi,
I have the same problem but with 'desktop-file-utils' and fighting him for some time on my Squeeze box (other Squeeze box is fine).

What was working for me is deleting block inside /var/lib/dpkg/available where was mentioning old VirtualBox versions. Now I have VirtualBox 4 so I was delete in /var/lib/dpkg/available all previous version of VirtualBox. Before doing that back up /var/lib/dpkg/available just in case somethings go wrong.

That solve my problem with 'error in Version string 2.1.4-42893_Debian_lenny': invalid character in revision number'
but 'E: Sub-process /usr/bin/dpkg returned an error code (2)' is still here.

apt-get purge, apt-get install, dpkg -i desktop-file-utils wasn't helpful on the end it's always 'E: Sub-process /usr/bin/dpkg returned an error code (2)'

I think it is possible to solve it without re installation; just didn't found solution yet :-)
--
Bye,
Goran Dobosevic
Hrvatski: www.dobosevic.com
 English: www.dobosevic.com/en/
Registered Linux User #503414


Reply to: