Debian : Echec d’upgrade wheezy vers jessie (initscripts)
Lors de l’upgrade d’un de mes (vieux) serveurs je suis tombé sur cette erreur :
root@amphibien:/etc/nginx# aptitude upgrade nginx
Resolving dependencies...
The following NEW packages will be installed:
libperl4-corelibs-perl{a}
The following packages will be upgraded:
nginx nginx-common nginx-full
The following partially installed packages will be configured:
initscripts
3 packages upgraded, 1 newly installed, 0 to remove and 124 not upgraded.
Need to get 0 B/636 kB of archives. After unpacking 477 kB will be used.
Do you want to continue? [Y/n/?] y
Reading changelogs... Done
Preconfiguring packages ...
Setting up initscripts (2.88dsf-59) ...
mkdir: cannot create directory ‘/dev/shm’: File exists
dpkg: error processing package initscripts (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
initscripts
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up initscripts (2.88dsf-59) ...
mkdir: cannot create directory ‘/dev/shm’: File exists
dpkg: error processing package initscripts (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
initscripts
Solution :
Après pas mal de recherches voici les commandes qui vont permettre de solutionner ce soucis :
root@amphibien:# rm /dev/shm
root@amphibien:# mkdir /dev/shm
root@amphibien:# dpkg --pending --configure
Setting up initscripts (2.88dsf-59) ...
root@amphibien:#
Explication :
Visiblement le soucis proviendrait d’un lien symbolique circulaire (boucle) comme on peut le voir ici avant la manipulation :
root@amphibien:# ls -ld /dev/shm /run/shm
lrwxrwxrwx 2 root root 8 Dec 10 2014 /dev/shm -> /run/shm
lrwxrwxrwx 1 root root 8 Jul 27 17:55 /run/shm -> /dev/shm
J’espère que ca pourra en aider quelques uns…
Commentaires récents