[Typo3-debian] Problem removing eaccelerator when using apt-get update - apt-get dist-upgrade

Jordan van Bergen jordanvanbergen at gmail.com
Mon Mar 7 14:34:40 CET 2005


Hi All,

I'm updating a Debian LINUX sarge production server using:

apt-get update
apt-get dist-upgrade

I'm using eaccelerator as a php accelerator using the following setup
location:

deb http://www.mstucki.net/debian/ testing all

After I do the following:

apt-get update
apt-get dist-upgrade

the system wants to remove eaccelerator, see below:

apt-get update

Hit http://typo3.sunsite.dk ./ Packages
Ign http://typo3.sunsite.dk ./ Release
Hit http://typo3.sunsite.dk ./ Sources
Ign http://typo3.sunsite.dk ./ Release
Hit http://security.debian.org testing/updates/main Packages Hit
http://security.debian.org testing/updates/main Release Hit
ftp://ftp.nl.debian.org testing/main Packages Hit ftp://ftp.nl.debian.org
testing/main Release Hit ftp://ftp.nl.debian.org testing/main Sources Hit
ftp://ftp.nl.debian.org testing/main Release Hit http://www.mstucki.net
testing/all Packages Ign http://www.mstucki.net testing/all Release Reading
Package Lists... Done

After this:

apt-get dist-upgrade

Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
The following packages will be REMOVED:
  eaccelerator
The following NEW packages will be installed:
  apache2-utils libapr0 libkrb53 libzzip-0-12 The following packages will be
upgraded:
  adduser apache apache-common apache-utils diff grub libapache-mod-php4
  libtiff4 libxml2 mc php4 php4-cgi php4-cli php4-common php4-gd
php4-imagick
  php4-mysql proftpd proftpd-common python 20 upgraded, 4 newly installed, 1
to remove and 0 not upgraded.
Need to get 0B/13.3MB of archives.
After unpacking 852kB of additional disk space will be used.
Do you want to continue? [Y/n]

Don't ask me why the system wants to remove eaccelerator, it just wants. I
have updated this system weekly the past 6 months or so without any problems
but now it wants to remove eaccelerator. I don't want this but what the hack
I thought let's just do what the system wants and see what happens, so I
click Y (Yes). This is what will happen:


Do you want to continue? [Y/n] Y
Preconfiguring packages ...
(Reading database ... 33182 files and directories currently installed.)
Removing eaccelerator ...
You are removing the eAccelerator module from php4.
To disable it you need to remove references to eaccelerator.so from
/etc/php4/apache{,2}/php.ini and/or /etc/php4/cgi/php.ini.

Do you want me to do it for you now? [Y/n]Y
/var/lib/dpkg/info/eaccelerator.prerm: line 53: /bin/rm: Argument list too
long
dpkg: error processing eaccelerator (--remove):
 subprocess pre-removal script returned error exit status 1 You are
installing eAccelerator for php4, but it is not yet enabled in your
/etc/php4/apache{,2}/php.ini and/or /etc/php4/cgi/php.ini files.

To enable it you need to add these lines:

zend_extension="/usr/lib/php4/20020429/eaccelerator.so" ; eaccelerator
eaccelerator.shm_size="16"                              ; eaccelerator
eaccelerator.cache_dir="/var/cache/eaccelerator"        ; eaccelerator
eaccelerator.enable="1"                                 ; eaccelerator
eaccelerator.optimizer="1"                              ; eaccelerator
eaccelerator.check_mtime="1"                            ; eaccelerator
eaccelerator.debug="0"                                  ; eaccelerator
eaccelerator.filter=""                                  ; eaccelerator
eaccelerator.shm_max="0"                                ; eaccelerator
eaccelerator.shm_ttl="0"                                ; eaccelerator
eaccelerator.shm_prune_period="0"                       ; eaccelerator
eaccelerator.shm_only="0"                               ; eaccelerator
eaccelerator.compress="1"                               ; eaccelerator

Do you want me to do it for you now? [Y/n]Y Errors were encountered while
processing:
 eaccelerator
E: Sub-process /usr/bin/dpkg returned an error code (1)


So the update proces fails because of not being able to remove eaccelerator.
I tried the following:

apt-get remove eaccelerator
dpkg --purge --force-all eaccelerator

alle with the same problem:

dpkg --purge --force-all eaccelerator
(Reading database ... 33182 files and directories currently installed.)
Removing eaccelerator ...
You are removing the eAccelerator module from php4.
To disable it you need to remove references to eaccelerator.so from
/etc/php4/apache{,2}/php.ini and/or /etc/php4/cgi/php.ini.

Do you want me to do it for you now? [Y/n]Y
/var/lib/dpkg/info/eaccelerator.prerm: line 53: /bin/rm: Argument list too
long
dpkg: error processing eaccelerator (--purge):
 subprocess pre-removal script returned error exit status 1 You are
installing eAccelerator for php4, but it is not yet enabled in your
/etc/php4/apache{,2}/php.ini and/or /etc/php4/cgi/php.ini files.

To enable it you need to add these lines:

zend_extension="/usr/lib/php4/20020429/eaccelerator.so" ; eaccelerator
eaccelerator.shm_size="16"                              ; eaccelerator
eaccelerator.cache_dir="/var/cache/eaccelerator"        ; eaccelerator
eaccelerator.enable="1"                                 ; eaccelerator
eaccelerator.optimizer="1"                              ; eaccelerator
eaccelerator.check_mtime="1"                            ; eaccelerator
eaccelerator.debug="0"                                  ; eaccelerator
eaccelerator.filter=""                                  ; eaccelerator
eaccelerator.shm_max="0"                                ; eaccelerator
eaccelerator.shm_ttl="0"                                ; eaccelerator
eaccelerator.shm_prune_period="0"                       ; eaccelerator
eaccelerator.shm_only="0"                               ; eaccelerator
eaccelerator.compress="1"                               ; eaccelerator

Do you want me to do it for you now? [Y/n]Y Errors were encountered while
processing:
 eaccelerator

So I just cannot uninstall eaccelerator. I even tried to delete the above 
entries myself in php.ini /etc/php4/apache/php.ini & /etc/php4/cgi/php.ini

QUESTION: Any tips on how to uninstall eaccelerator to get the system
updated again?

Best Regards,

Jordan van Bergen
jordanvanbergen at gmail.com







More information about the TYPO3-debian mailing list