Bonjour,
Tout d’abord, veuillez m’excuser pour d’éventuelles questions de noob, je débute.
Je suis sur Debian 7 ARM, et alors que je souhaitais installer php 5.6 sur ma Debian, j’ai souhaité passer par les depots testing (en suivant ce http://www.binarytides.com/enable-testing-repo-debian/). J’ai manifestement fait des bêtises et le service apache ne parvenais plus à se lancer.
J’ai donc décidé de supprimer apache2, les packets php5 installés pour réinstaller les packets stable. Or je n’y parviens pas.
J’ai l’erreur : command symlink_to_dir is unknown
[code]# apt-get --reinstall install apache2
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
apache2-mpm-prefork apache2-utils apache2.2-common
Suggested packages:
www-browser apache2-doc apache2-suexec apache2-suexec-custom
Recommended packages:
ssl-cert
The following NEW packages will be installed:
apache2-mpm-prefork apache2-utils apache2.2-common
0 upgraded, 3 newly installed, 1 reinstalled, 0 to remove and 5 not upgraded.
2 not fully installed or removed.
Need to get 465 kB of archives.
After this operation, 944 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://apt.readynas.com/packages/readynasos/ 6.2.2/main apache2-utils armel 2.2.29-0.netgear2 [170 kB]
Get:2 http://apt.readynas.com/packages/readynasos/ 6.2.2/main apache2.2-common armel 2.2.29-0.netgear2 [291 kB]
Get:3 http://apt.readynas.com/packages/readynasos/ 6.2.2/main apache2-mpm-prefork armel 2.2.29-0.netgear2 [2,342 B]
Get:4 http://apt.readynas.com/packages/readynasos/ 6.2.2/main apache2 armel 2.2.29-0.netgear2 [1,434 B]
Fetched 465 kB in 2s (172 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package apache2-utils.
(Reading database … 16315 files and directories currently installed.)
Unpacking apache2-utils (from …/apache2-utils_2.2.29-0.netgear2_armel.deb) …
Selecting previously unselected package apache2.2-common.
Unpacking apache2.2-common (from …/apache2.2-common_2.2.29-0.netgear2_armel.deb) …
Selecting previously unselected package apache2-mpm-prefork.
Unpacking apache2-mpm-prefork (from …/apache2-mpm-prefork_2.2.29-0.netgear2_armel.deb) …
Selecting previously unselected package apache2.
Preparing to replace apache2 2.2.29-0.netgear2 (using …/apache2_2.2.29-0.netgear2_armel.deb) …
Unpacking replacement apache2 …
dpkg-maintscript-helper: error: command symlink_to_dir is unknown
Hint: upgrading dpkg to a newer version might help.
Usage: dpkg-maintscript-helper … – …
Commands:
supports
Returns 0 (success) if the given command is supported, 1 otherwise.
rm_conffile [ []]
Remove obsolete conffile. Must be called in preinst, postinst and
postrm.
mv_conffile [ []]
Rename a conffile. Must be called in preinst, postinst and postrm.
help
Display this usage information.
dpkg: warning: subprocess old post-removal script returned error exit status 1
dpkg: trying script from the new package instead …
dpkg: error processing /var/cache/apt/archives/apache2_2.2.29-0.netgear2_armel.deb (–unpack):
there is no script in the new version of the package - giving up
Errors were encountered while processing:
/var/cache/apt/archives/apache2_2.2.29-0.netgear2_armel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
[/code]
# apt-get -t testing install dpkg
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
apache2-mpm-prefork apache2-utils apache2.2-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
fontconfig fontconfig-config libfontconfig1 libselinux1
The following packages will be REMOVED:
apache2
The following packages will be upgraded:
dpkg fontconfig fontconfig-config libfontconfig1 libselinux1
5 upgraded, 0 newly installed, 1 to remove and 246 not upgraded.
5 not fully installed or removed.
Need to get 0 B/3,926 kB of archives.
After this operation, 684 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 16776 files and directories currently installed.)
Removing apache2 ...
dpkg-maintscript-helper: error: command symlink_to_dir is unknown
Hint: upgrading dpkg to a newer version might help.
Usage: dpkg-maintscript-helper <command> <parameter>... -- <maintainer-script-parameter>...
Commands:
supports <command>
Returns 0 (success) if the given command is supported, 1 otherwise.
rm_conffile <conffile> [<last-version> [<package>]]
Remove obsolete conffile. Must be called in preinst, postinst and
postrm.
mv_conffile <old-conf> <new-conf> [<last-version> [<package>]]
Rename a conffile. Must be called in preinst, postinst and postrm.
help
Display this usage information.
dpkg: error processing apache2 (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
apache2
E: Sub-process /usr/bin/dpkg returned an error code (1)
A noter que le service apache2 n’est pas reconnu :
# service apache2 stop
apache2: unrecognized service
Je suis totalement incompétent pour réparer ces erreurs. Avez-vous une idée ?
L’erreur semble connue, mais je ne comprends pas comment la résoudre https://lists.debian.org/debian-devel/2014/11/msg00108.html
Merci