dpkg: syntax errors in triggers

Asked by ourmaninparis on 2007-11-05

Hello. I'm new to Ubuntu and have the following error when trying to install updates.

dpkg: syntax errors in triggers Deferred file '/var/lib/dpkg/triggers/unincorp at character 'U' midline

E: Sub-process /usr/bin/dpkg returned an error code (2)

A package failed to install. Trying to recover.

-----------------

I don't know whether it is related but Ubuntu crashed yesterday after dismounting an external USB hard drive. I managed to get it going again (thanks to a forum tip!!) but I'm now struggling to get the system back to the same state (back to 800x600 resolution, restricted drivers manager not working (need to install 'linux restricted modules...)

Any tips would be greatly appreciated.

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
ourmaninparis
Solved:
2007-11-12
Last query:
2007-11-12
Last reply:
2007-11-10
ourmaninparis (ourmaninparis) said : #1

Forgot to mention that I'm using Gutsy

Please open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo dpkg --configure -a
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

give your user password when requested, you don't see nothing when you type it, then press enter.

HTH

ourmaninparis (ourmaninparis) said : #3

Hi,

Thanks for the reply. After entering sudo dpkg --configure -a

I receive:

dpkg: syntax error in triggers Deferred file `/var/lib/dpkg/triggers/Unincorp' at character `U' midline

Any suggestions.

Thanks

ourmaninparis (ourmaninparis) said : #4

Hello All,

I'm still looking for a solution. I came across this but am not technical enough to work out how to use the information:

https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/133172

Regards

Based on your previous message regarding https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/133172
Open a terminal and type:

df -h
... to see if you have enougth hard-disk space

gedit /var/log/dpkg.log
... to check your dpkg.log for some package errors

HTH

ourmaninparis (ourmaninparis) said : #6

Hello,

Thanks for your message. Disc space seems to be ok:

Filesystem Size Used Avail Use% Mounted on
/dev/sda5 18G 2.0G 15G 12% /
varrun 379M 96K 378M 1% /var/run
varlock 379M 0 379M 0% /var/lock
udev 379M 84K 379M 1% /dev
devshm 379M 0 379M 0% /dev/shm
lrm 379M 34M 345M 9% /lib/modules/2.6.22-14-generic/volatile
/dev/sda1 9.8G 6.9G 3.0G 71% /media/sda1
/dev/sda2 33G 19G 14G 58% /media/sda2
/dev/sda4 51G 9.0G 42G 18% /media/sda4

I have the log file as well but can't figure out how to upload it here (not going well!)

Thanks for your help

ourmaninparis (ourmaninparis) said : #7

Somebody please help. Everything I try results in this message:

dpkg-query: syntax error in triggers Deferred file `/var/lib/dpkg/triggers/Unincorp' at character `U' midline

Maybe I should reinstall Ubuntu. Can I install over the top or should I format and restart.

Thanks in advance

Please try to open the /var/lib/dpkg/triggers/Unincorp file

Open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo gedit /var/lib/dpkg/triggers/Unincorp

give your user password when requested, you don't see nothing when you type it, then press enter.

If it is not a big file please copy and paste content here.

For your info: my local Ubuntu 7.10 /var/lib/dpkg/triggers/Unincorp file is empty.

HTH

ourmaninparis (ourmaninparis) said : #9

Thanks for the response. I'm afraid however that I gave up and
reinstalled from scratch. Hopefully your answer will help another
person.

Kind Regards

On Nov 10, 2007 6:24 AM, elart.it <email address hidden> wrote:
> Your question #17125 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/17125
>
> Status: Open => Answered
>
> elart.it proposed the following answer:
> Please try to open the /var/lib/dpkg/triggers/Unincorp file
>
> Open a Terminal from the menu Applications->Accessories->Terminal and
> type:
>
> sudo gedit /var/lib/dpkg/triggers/Unincorp
>
> give your user password when requested, you don't see nothing when you
> type it, then press enter.
>
> If it is not a big file please copy and paste content here.
>
> For your info: my local Ubuntu 7.10 /var/lib/dpkg/triggers/Unincorp file
> is empty.
>
> HTH
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/17125/+confirm?answer_id=7
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/17125
>
>
> You received this question notification because you are a direct
> subscriber of the question.
>

ourmaninparis (ourmaninparis) said : #10

I didn't try the final suggestion as I opted to reinstall. I'll close the problem anyway.

Peter (kzq-lutar-x8o) said : #11

Just empty the file.