Lorsque j'essaie d'installer quoi que ce soit sur EC2, cela me donne un tas d'erreurs indiquant que la récupération a échoué ou impossible. Voici la pile d'erreur:
ubuntu@ip-172-31-9-88:~$ Sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
binutils build-essential cpp cpp-4.8 dpkg-dev fakeroot g++ g++-4.8 gcc
gcc-4.8 libalgorithm-diff-Perl libalgorithm-diff-xs-Perl
libalgorithm-merge-Perl libasan0 libatomic1 libc-dev-bin libc6-dev
libcloog-isl4 libdpkg-Perl libfakeroot libfile-fcntllock-Perl libgcc-4.8-dev
libgmp10 libgomp1 libisl10 libitm1 libmpc3 libmpfr4 libquadmath0
libstdc++-4.8-dev libtsan0 linux-libc-dev make manpages-dev
python-chardet-whl python-colorama python-colorama-whl python-distlib
python-distlib-whl python-html5lib python-html5lib-whl python-pip-whl
python-requests-whl python-setuptools python-setuptools-whl python-six-whl
python-urllib3-whl python-wheel python3-pkg-resources
Suggested packages:
binutils-doc cpp-doc gcc-4.8-locales debian-keyring g++-multilib
g++-4.8-multilib gcc-4.8-doc libstdc++6-4.8-dbg gcc-multilib autoconf
automake1.9 libtool flex bison gdb gcc-doc gcc-4.8-multilib libgcc1-dbg
libgomp1-dbg libitm1-dbg libatomic1-dbg libasan0-dbg libtsan0-dbg
libquadmath0-dbg glibc-doc libstdc++-4.8-doc make-doc python-genshi
python-lxml python3-setuptools
Recommended packages:
python-dev-all
The following NEW packages will be installed:
binutils build-essential cpp cpp-4.8 dpkg-dev fakeroot g++ g++-4.8 gcc
gcc-4.8 libalgorithm-diff-Perl libalgorithm-diff-xs-Perl
libalgorithm-merge-Perl libasan0 libatomic1 libc-dev-bin libc6-dev
libcloog-isl4 libdpkg-Perl libfakeroot libfile-fcntllock-Perl libgcc-4.8-dev
libgmp10 libgomp1 libisl10 libitm1 libmpc3 libmpfr4 libquadmath0
libstdc++-4.8-dev libtsan0 linux-libc-dev make manpages-dev
python-chardet-whl python-colorama python-colorama-whl python-distlib
python-distlib-whl python-html5lib python-html5lib-whl python-pip
python-pip-whl python-requests-whl python-setuptools python-setuptools-whl
python-six-whl python-urllib3-whl python-wheel python3-pkg-resources
0 upgraded, 50 newly installed, 0 to remove and 0 not upgraded.
Need to get 979 kB/41.4 MB of archives.
After this operation, 119 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://us-west-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main linux-libc-dev AMD64 3.13.0-92.139
404 Not Found [IP: 54.176.237.167 80]
Err http://us-west-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/universe python-pip-whl all 1.5.4-1ubuntu3
404 Not Found [IP: 54.176.237.167 80]
Err http://us-west-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/universe python-pip all 1.5.4-1ubuntu3
404 Not Found [IP: 54.176.237.167 80]
Err http://security.ubuntu.com/ubuntu/ trusty-security/main linux-libc-dev AMD64 3.13.0-92.139
404 Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.13.0-92.139_AMD64.deb 404 Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://us-west-1.ec2.archive.ubuntu.com/ubuntu/pool/universe/p/python-pip/python-pip-whl_1.5.4-1ubuntu3_all.deb 404 Not Found [IP: 54.176.237.167 80]
E: Failed to fetch http://us-west-1.ec2.archive.ubuntu.com/ubuntu/pool/universe/p/python-pip/python-pip_1.5.4-1ubuntu3_all.deb 404 Not Found [IP: 54.176.237.167 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Essayez d’exécuter d’abord les commandes suivantes pour tout mettre à jour et en marche:
Sudo apt update
Sudo apt -f install
Sudo apt dist-upgrade
Ces commandes réinitialiseront les informations du cache et du référentiel des paquets, ainsi que la mise à niveau de votre système vers la version la plus récente possible, ce qui générera probablement un bon nombre de mises à jour de sécurité.
Enfin, Linux vous fournit cette réponse dans le résultat que vous avez posté:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
En règle générale, apt
est plutôt convivial et fournira aux utilisateurs des conseils utiles, comme indiqué ci-dessus, en cas de problème.