LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 04-05-2012, 04:31 AM   #1
lpe
LQ Newbie
 
Registered: Jun 2008
Posts: 4

Rep: Reputation: 0
dpkg error: syntax error in triggers file


Hello,

A colleague of mine just got a read-only filesystem on his personal VPS (running VirtualBox) and when he rebooted, he can no longer install any packages.
Anyone have a clue about this?

root@foo:~# dpkg --configure -a
dpkg: error: syntax error in file triggers file `/var/lib/dpkg/triggers//File'

root@foo:~# cat /var/lib/dpkg/triggers/File
<?php
// auto-generated by sfDefineEnvironmentConfigHandler
// date: 2012/03/28 17:02:00
sfConfig::add(array(
'mod_'.strtolower($moduleName).'_enabled' => true,
'mod_'.strtolower($moduleName).'_view_class' => 'sfPHP',
'mod_'.strtolower($moduleName).'_is_internal' => false,
));

Best Regards
Lpe
 
Old 04-05-2012, 05:52 AM   #2
lpe
LQ Newbie
 
Registered: Jun 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Solved it by copying the contents of a friends Ubuntu.

root@foo:~# cat /var/lib/dpkg/triggers/File
/etc/init ureadahead
/etc/init.d ureadahead
/usr/lib/gio/modules libglib2.0-0
/usr/share/info install-info
/usr/man man-db
/usr/share/man man-db
/usr/local/man man-db
/usr/local/share/man man-db
/usr/X11R6/man man-db
/opt/man man-db
/etc/ufw/applications.d ufw
 
  


Reply

Tags
apt-get, dpkg, error, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Input/Output Error; dpkg sub-process /usr/bin/dpkg returned and error code (2) NosLycn Linux - Software 7 12-12-2011 02:50 AM
Error in Bash: line 77: syntax error: unexpected end of file bribon Programming 8 07-13-2011 12:43 PM
[SOLVED] dpkg fatal error unable to open files list file Stale NFS file handle cmr26 Linux - Software 5 09-06-2009 04:10 PM
Backup Script error "line 31: syntax error: unexpected end of file" eswanepoel General 7 12-07-2007 09:28 AM
Syntax error in sudoers file Julix Linux - General 9 09-07-2007 09:44 PM


All times are GMT -5. The time now is 02:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration