Today, when i was trying to install some packages i got this error:

dpkg: parse error, in file `/var/lib/dpkg/status’ near line 14938 package `human-theme’:
`Replaces’ field, invalid package name `
E: Sub-process /usr/bin/dpkg returned an error code (2)

i googled it to search for a know solution but got nothing useful this time. so i decieded to think a little bit and try to solve it my self. and here is the solution i got.

i open the file which through the parse error:

# gedit /var/lib/dpkg/status

then i visited the line which given to has the problem and found the name of package has some encoded characters so i removed the non understandable characters and saved the file.

then:

#apt-get -f update

every thing after that went ok. and i enjoyed my ubuntu again.

Advertisements