cannot install php-mode vor emacs on ubuntu dapper beta

Bug #42897 reported by philipp
This bug report is a duplicate of:  Bug #36055: will not install from apt-get. Edit Remove
6
Affects Status Importance Assigned to Milestone
emacs-extra (Ubuntu)
New
Medium
Unassigned

Bug Description

Binary package hint: php-mode

E: php-mode: subprocess post-installation script returned error exit status 1

Revision history for this message
Dennis Kaarsemaker (dennis) wrote : Re: [Bug 42897] cannot install php-mode vor emacs on ubuntu dapper beta

Please attach the complete output.

Revision history for this message
philipp (philipp-sutter) wrote :

sudo apt-get install php-mode
Password:
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed
  php-mode
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/19.9kB of archives.
After unpacking 156kB of additional disk space will be used.
Selecting previously deselected package php-mode.
(Reading database ... 99028 files and directories currently installed.)
Unpacking php-mode (from .../php-mode_0.1-1_all.deb) ...
Setting up php-mode (0.1-1) ...
install/php-mode: Handling install for emacsen flavor emacs21
Wrote /usr/share/emacs21/site-lisp/php-mode/php3-mode.elc
While compiling toplevel forms in file /usr/share/emacs21/site-lisp/php-mode/php-mode.el:
  !! Wrong type argument ((stringp nil))
Done
emacs-package-install: /usr/lib/emacsen-common/packages/install/php-mode emacs21 emacs21 failed at /usr/lib/emacsen-common/emacs-package-install line 30, <TSORT> line 1.
dpkg: error processing php-mode (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 php-mode
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
RobertDahlström (cinnarob) wrote :

I can confirm this since it happens for me too. Seems that #41808 is a duplicate

Revision history for this message
RobertDahlström (cinnarob) wrote :

Followup:
Clearing out /usr/share/emacs and /usr/share/emacs21 and then reinstalling dictionaries-common and then emacs solved the problem for me.

Seems some stale version of some package that php-mode depended on was interfering.

HTH

Revision history for this message
Matthew Flaschen (matthew-flaschen) wrote :

I was able to install it after clearing just /usr/share/emacs21/site-lisp . Of course now I'll have to reinstall a whole bunch of stuff. I had in site-lisp:

cedet-common
dictionaries-common
ede
eieio
php-mode
semantic
speedbar

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.