En cours d'exécution sudo apt-get update
dans l'un de mes scripts, il se bloque sur les Reading package lists...
partie. Je l'ai laissé reposer pendant une heure et il ne fait toujours rien. Pour clarifier, je fais cela directement après avoir exécuté apt-cache policy docker-engine
dans le processus d'installation de Docker sur Ubuntu.
En quoi cela diffère-t-il des autres reading package list freeze
questions : Lorsque l'on appuie sur la touche "Entrée" (ou "Retour"), 20 secondes plus tard, l'opération se poursuit. Il semble y avoir quelques erreurs, mais il continue et tout fonctionne parfaitement. Voici ce qui se passe lorsque l'on appuie sur enter :
ebconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-77-generic /boot/vmlinuz-3.13.0-77-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-77-generic /boot/vmlinuz-3.13.0-77-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-77-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-77-generic /boot/vmlinuz-3.13.0-77-generic
run-parts: executing /etc/kernel/postinst.d/x-grub-legacy-ec2 3.13.0-77-generic /boot/vmlinuz-3.13.0-77-generic
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-3.13.0-77-generic
Found kernel: /boot/vmlinuz-3.13.0-77-generic
Updating /boot/grub/menu.lst ... done
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-77-generic /boot/vmlinuz-3.13.0-77-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-77-generic
Found initrd image: /boot/initrd.img-3.13.0-77-generic
done
Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: crda iw libnl-3-200 libnl-genl-3-200 wireless-regdb The following NEW packages will be installed: crda iw libnl-3-200 libnl-genl-3-200 linux-image-extra-3.13.0-77-generic wireless-regdb 0 upgraded, 6 newly installed, 0 to remove and 72 not upgraded. Need to get 36.9 MB of archives. After this operation, 152 MB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://nova.clouds.archive.ubuntu.com/ubuntu/ trusty-updates/main libnl-3-200 amd64 3.2.21-1ubuntu3 [45.7 kB] Get:2 http://nova.clouds.archive.ubuntu.com/ubuntu/ trusty-updates/main libnl-genl-3-200 amd64 3.2.21-1ubuntu3 [10.2 kB] Get:3 http://nova.clouds.archive.ubuntu.com/ubuntu/ trusty/main wireless-regdb all 2013.02.13-1ubuntu1 [6,456 B] Get:4 http://nova.clouds.archive.ubuntu.com/ubuntu/ trusty/main crda amd64 1.1.2-1ubuntu2 [15.2 kB] Get:5 http://nova.clouds.archive.ubuntu.com/ubuntu/ trusty/main iw amd64 3.4-1 [51.7 kB] Get:6 http://nova.clouds.archive.ubuntu.com/ubuntu/ trusty-updates/main linux-image-extra-3.13.0-77-generic amd64 3.13.0-77.121 [36.7 MB] Fetched 36.9 MB in 14s (2,582 kB/s) Selecting previously unselected package libnl-3-200:amd64. (Reading database ... 51153 files and directories currently installed.) Preparing to unpack .../libnl-3-200_3.2.21-1ubuntu3_amd64.deb ... Unpacking libnl-3-200:amd64 (3.2.21-1ubuntu3) ... Selecting previously unselected package libnl-genl-3-200:amd64. Preparing to unpack .../libnl-genl-3-200_3.2.21-1ubuntu3_amd64.deb ... Unpacking libnl-genl-3-200:amd64 (3.2.21-1ubuntu3) ... Selecting previously unselected package wireless-regdb. Preparing to unpack .../wireless-regdb_2013.02.13-1ubuntu1_all.deb ... Unpacking wireless-regdb (2013.02.13-1ubuntu1) ... Selecting previously unselected package crda. Preparing to unpack .../crda_1.1.2-1ubuntu2_amd64.deb ... Unpacking crda (1.1.2-1ubuntu2) ... Selecting previously unselected package iw. Preparing to unpack .../archives/iw_3.4-1_amd64.deb ... Unpacking iw (3.4-1) ... Selecting previously unselected package linux-image-extra-3.13.0-77-generic. Preparing to unpack .../linux-image-extra-3.13.0-77-generic_3.13.0-77.121_amd64.deb ... Unpacking linux-image-extra-3.13.0-77-generic (3.13.0-77.121) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up libnl-3-200:amd64 (3.2.21-1ubuntu3) ... Setting up libnl-genl-3-200:amd64 (3.2.21-1ubuntu3) ... Setting up wireless-regdb (2013.02.13-1ubuntu1) ... Setting up crda (1.1.2-1ubuntu2) ... Setting up iw (3.4-1) ... Setting up linux-image-extra-3.13.0-77-generic (3.13.0-77.121) ... Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
Ign http://nova.clouds.archive.ubuntu.com trusty InRelease
Hit http://nova.clouds.archive.ubuntu.com trusty-updates InRelease
Hit http://security.ubuntu.com trusty-security InRelease
Hit http://nova.clouds.archive.ubuntu.com trusty-backports InRelease
Et à partir de là, le apt-get update
fonctionne normalement. Quelqu'un sait-il pourquoi je dois appuyer sur enter pour qu'il ne reste pas bloqué sur Reading package lists...
? Ce n'est pas comme s'ils affichaient l'erreur et que je devais ensuite appuyer sur enter ou que l'on m'ait incité à faire quoi que ce soit.
Je cherche un moyen d'appeler apt-get update
afin que je n'aie pas à appuyer sur enter (ou simuler une pression si je dois absolument le faire) si ce problème ne peut être résolu.