Problème de reboot après une upgrade de Debian 8 a 9

Fermé
Galacs Messages postés 32 Date d'inscription lundi 25 décembre 2017 Statut Membre Dernière intervention 27 novembre 2018 - Modifié le 23 nov. 2018 à 00:30
mamiemando Messages postés 33079 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 23 avril 2024 - 23 nov. 2018 à 00:38
Bonjour,

Je fais appelle a la communauté de commentcamarche.net.

Pour un problème sur lequel je m'arrache les cheveux.

Après une mise à jour de debian 8 a 9 (je fais cette upgrade sur une nouvelle installation sachant que mon hébergeur ne propose que Debian 8)

La commande :

reboot
Failed to connect to bus: No such file or directory
Failed to talk to init daemon.


Donc je vais vous montrer ma façon de faire une upgrade et vous me direz si c'est la bonne façon.

apt update
root@VPS-AY:~# apt update
Ign http://ftp.debian.org/debian/ jessie InRelease
Get:1 http://ftp.debian.org/debian/ jessie-updates InRelease [145 kB]
Get:2 https://www.debian.org/security/ jessie/updates InRelease [44.9 kB]
Get:3 http://ftp.debian.org/debian/ jessie Release.gpg [2420 B]
[...]
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Processing triggers for initramfs-tools (0.120+deb8u3) ...


Apres je change
/etc/apt/sources.list
de ça :

deb [url][[http://ftp.debian.org/debian[/url]]] jessie main contrib non-free
deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
deb https://www.debian.org/security/ jessie/updates main contrib non-free


en ça :

deb http://ftp.debian.org/debian/ stretch main contrib non-free
deb http://ftp.debian.org/debian/ stretch-updates main contrib non-free
deb https://www.debian.org/security/ stretch/updates main contrib non-free


Après :

apt update
root@VPS-AY:~# apt update
Hit https://www.debian.org/security/ stretch/updates InRelease
Ign http://ftp.debian.org/debian/ stretch InRelease
[...]
Hit http://ftp.debian.org/debian/ stretch/non-free Translation-en
Fetched 9836 B in 2s (4091 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
169 packages can be upgraded. Run 'apt list --upgradable' to see them.


apt full-upgrade
root@VPS-AY:~# apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
libpython3.4-minimal module-init-tools perl-modules python3.4-minimal
The following NEW packages will be installed:
busybox bzip2 dbus dh-python dirmngr distro-info-data e2fsprogs gcc-6-base gnupg-agent gnupg-l10n initramfs-tools-core libapt-pkg5.0 libassuan0 libc-l10n libcap-ng0 libelf1 libfastjson4 libfdisk1 libgnutls30 libhogweed4 libidn2-0
libip4tc0 libip6tc0 libiptc0 libksba8 libldap-common liblognorm5 liblz4-1 libmnl0 libmpdec2 libnetfilter-conntrack3 libnettle6 libnpth0 libpam-systemd libperl5.24 libprocps6 libpsl5 libpython3-stdlib libpython3.5-minimal
libpython3.5-stdlib libreadline7 libseccomp2 libss2 libssl1.0.2 libssl1.1 libunistring0 libxtables12 linux-base manpages perl-modules-5.24 pinentry-curses publicsuffix python3 python3-minimal python3.5 python3.5-minimal xxd
The following packages will be upgraded:
acl adduser apt base-files base-passwd bash bsdutils coreutils cpio dash debconf debconf-i18n debian-archive-keyring debianutils diffutils dmsetup dpkg dselect e2fslibs ed findutils gawk gettext-base gnupg gpgv grep gzip hostname
ifupdown init-system-helpers initramfs-tools initscripts insserv install-info iproute2 iptables iputils-ping klibc-utils kmod libacl1 libapparmor1 libattr1 libaudit-common libaudit1 libblkid1 libbsd0 libbz2-1.0 libc-bin libc6 libcap2
libcap2-bin libcomerr2 libcryptsetup4 libdb5.3 libdbus-1-3 libdebconfclient0 libdevmapper1.02.1 libedit2 libestr0 libexpat1 libffi6 libgcc1 libgcrypt20 libgdbm3 libgmp10 libgnutls-openssl27 libgpg-error0 libgpm2 libgssapi-krb5-2
libidn11 libk5crypto3 libkeyutils1 libklibc libkmod2 libkrb5-3 libkrb5support0 libldap-2.4-2 liblocale-gettext-perl liblogging-stdlog0 liblzma5 libmount1 libmpfr4 libncurses5 libncursesw5 libnih-dbus1 libnih1 libnl-3-200
libnl-genl-3-200 libp11-kit0 libpam-modules libpam-modules-bin libpam-runtime libpam0g libpcre3 libperl4-corelibs-perl libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libsasl2-2 libsasl2-modules-db libselinux1
libsemanage-common libsemanage1 libsepol1 libsigsegv2 libslang2 libsmartcols1 libsqlite3-0 libstdc++6 libsystemd0 libtasn1-6 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libtinfo5 libtirpc1 libudev1 libusb-0.1-4
libustr-1.0-1 libuuid1 libwrap0 locales login lsb-base lsb-release lsof lzma mime-support mktemp mount multiarch-support ncurses-base ncurses-bin net-tools netbase openssh-client openssh-server openssh-sftp-server passwd perl
perl-base procinfo procps psmisc python python-minimal python2.7 python2.7-minimal quota readline-common rsyslog sed sensible-utils startpar systemd systemd-sysv sysv-rc sysvinit-utils tar tzdata ucf udev util-linux vim vim-common
vim-runtime wget xz-utils zlib1g
169 upgraded, 57 newly installed, 4 to remove and 0 not upgraded.
Need to get 83.7 MB of archives.
After this operation, 65.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.debian.org/debian/ stretch/main base-files amd64 9.9+deb9u6 [67.3 kB]
Get:2 http://ftp.debian.org/debian/ stretch/main locales all 2.24-11+deb9u3 [3287 kB]
Get:3 http://ftp.debian.org/debian/ stretch/main libc-l10n all 2.24-11+deb9u3 [820 kB]
Get:4 http://ftp.debian.org/debian/ stretch/main libdbus-1-3 amd64 1.10.26-0+deb9u1 [194 kB]
Get:5 http://ftp.debian.org/debian/ stretch/main libnih-dbus1 amd64 1.0.3-8 [96.8 kB]
Get:6 http://ftp.debian.org/debian/ stretch/main libnih1 amd64 1.0.3-8 [125 kB]
Get:7 http://ftp.debian.org/debian/ stretch/main libc6 amd64 2.24-11+deb9u3 [2693 kB]
[...]
Get:226 http://ftp.debian.org/debian/ stretch/main publicsuffix all 20181003.1334-0+deb9u1 [104 kB]
Fetched 83.7 MB in 5s (14.2 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 13706 files and directories currently installed.)
Preparing to unpack .../base-files_9.9+deb9u6_amd64.deb ...
Unpacking base-files (9.9+deb9u6) over (8+deb8u11) ...
Processing triggers for install-info (5.2.0.dfsg.1-6) ...
Setting up base-files (9.9+deb9u6) ...
Installing new version of config file /etc/debian_version ...
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
Updating /etc/profile to current default.
Updating /root/.profile to current default.
(Reading database ... 13709 files and directories currently installed.)
Preparing to unpack .../locales_2.24-11+deb9u3_all.deb ...
Unpacking locales (2.24-11+deb9u3) over (2.19-18+deb8u10) ...
Selecting previously unselected package libc-l10n.
Preparing to unpack .../libc-l10n_2.24-11+deb9u3_all.deb ...
Unpacking libc-l10n (2.24-11+deb9u3) ...
Preparing to unpack .../libdbus-1-3_1.10.26-0+deb9u1_amd64.deb ...
Unpacking libdbus-1-3:amd64 (1.10.26-0+deb9u1) over (1.8.22-0+deb8u1) ...
Preparing to unpack .../libnih-dbus1_1.0.3-8_amd64.deb ...
Unpacking libnih-dbus1 (1.0.3-8) over (1.0.3-4.3) ...
Preparing to unpack .../libnih1_1.0.3-8_amd64.deb ...
Unpacking libnih1 (1.0.3-8) over (1.0.3-4.3) ...
Preparing to unpack .../libc6_2.24-11+deb9u3_amd64.deb ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Configuring libc6
-----------------

Kernel version not supported

This version of the GNU libc requires kernel version 3.2 or later. Older versions might work but are not officially supported. Please consider upgrading your kernel.

Checking for services that may need to be restarted...
Checking init scripts...
Unpacking libc6:amd64 (2.24-11+deb9u3) over (2.19-18+deb8u10) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Setting up libc6:amd64 (2.24-11+deb9u3) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Checking for services that may need to be restarted...
Checking init scripts...
Nothing to restart.
Processing triggers for libc-bin (2.19-18+deb8u10) ...
(Reading database ... 13721 files and directories currently installed.)
Preparing to unpack .../libc-bin_2.24-11+deb9u3_amd64.deb ...
Unpacking libc-bin (2.24-11+deb9u3) over (2.19-18+deb8u10) ...
Setting up libc-bin (2.24-11+deb9u3) ...
(Reading database ... 13719 files and directories currently installed.)
Preparing to unpack .../lsof_4.89+dfsg-0.1_amd64.deb ...
Unpacking lsof (4.89+dfsg-0.1) over (4.86+dfsg-1) ...
Preparing to unpack .../libtext-charwidth-perl_0.04-7+b5_amd64.deb ...
Unpacking libtext-charwidth-perl (0.04-7+b5) over (0.04-7+b3) ...
dpkg: perl-modules: dependency problems, but removing anyway as you requested:
perl depends on perl-modules (>= 5.20.2-3+deb8u11).

(Reading database ... 13723 files and directories currently installed.)
Removing perl-modules (5.20.2-3+deb8u11) ...
(Reading database ... 12998 files and directories currently installed.)
Preparing to unpack .../perl_5.24.1-3+deb9u4_amd64.deb ...
Unpacking perl (5.24.1-3+deb9u4) over (5.20.2-3+deb8u11) ...
[...]
A voir également:

1 réponse

mamiemando Messages postés 33079 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 23 avril 2024 7 749
Modifié le 23 nov. 2018 à 00:40
Bonjour,

Remarques préalables

- merci de soigner l'orthographe
- merci d'utiliser de la ponctuation, des accents, etc aux endroits appropriés
- merci de ne pas copier coller les lignes inutiles : seules les commandes tapées et les éventuelles erreurs qui en résultent ont du sens (cf les
[...]
que j'ai insérés dans ton message)
- merci de clarifier le problème (commande
reboot
qui ne marche pas ?)

Faire une migration sous debian et assimilé (ubuntu...)

- Pour une migration on commence par s'assurer qu'on est à jour sur la release courante, c'est ce que tu as fait, tout s'est bien passé.
- On corrige
/etc/apt/sources.list
(idem)
- On fait la migration, soit avec les commandes que tu as utilisé, soit avec aptitude en mode interactif pour avoir un contrôle plus fin.

Retour à ton problème

Dans ton cas, on voit de nombreuses erreurs (notamment concernant
debconf
+ le noyau n'est pas mis à jour et pas garanti d'être compatible avec la nouvelle libc, etc...). Il faut que tu prennes le temps de les corrigé. Et je n'ai sans doute pas tout vu (un modérateur a tronqué la fin de ton message avant que je le retape à mon tour...)

1) Pour debconf, essaye de voir si ceci aide.

2) Pour le noyau, commence par t'assurer que le paquet
linux-image-$(uname -r)
est installé :

sudo apt-get install linux-image-$(uname -r)


3) Installe si besoin
aptitude
et vérifie que tu n'as pas de paquets cassés et pas de paquets gelés :

sudo apt-get install aptitude
sudo aptitude


Bonne chance
0