Lorsque j'essaie de mettre à jour la liste de paquets sur mon serveur virtuel DigitalOcean avec la commande suivante:
aran@Aran:~$ Sudo apt-get update
Ign http://mirrors.digitalocean.com trusty InRelease
Hit http://mirrors.digitalocean.com trusty-updates InRelease
Hit http://mirrors.digitalocean.com trusty-backports InRelease
Hit http://security.ubuntu.com trusty-security InRelease
Hit http://mirrors.digitalocean.com trusty Release.gpg
Hit http://mirrors.digitalocean.com trusty Release
Hit http://mirrors.digitalocean.com trusty-updates/main Sources
Hit http://mirrors.digitalocean.com trusty-updates/restricted Sources
Hit http://mirrors.digitalocean.com trusty-updates/universe Sources
Hit http://mirrors.digitalocean.com trusty-updates/multiverse Sources
Hit http://mirrors.digitalocean.com trusty-updates/main AMD64 Packages
Hit http://mirrors.digitalocean.com trusty-updates/restricted AMD64 Packages
Hit http://mirrors.digitalocean.com trusty-updates/universe AMD64 Packages
Hit http://mirrors.digitalocean.com trusty-updates/multiverse AMD64 Packages
Hit http://mirrors.digitalocean.com trusty-updates/main i386 Packages
Hit http://mirrors.digitalocean.com trusty-updates/restricted i386 Packages
Hit http://mirrors.digitalocean.com trusty-updates/universe i386 Packages
Hit http://mirrors.digitalocean.com trusty-updates/multiverse i386 Packages
Hit http://mirrors.digitalocean.com trusty-updates/main Translation-en
Hit http://mirrors.digitalocean.com trusty-updates/multiverse Translation-en
Hit http://mirrors.digitalocean.com trusty-updates/restricted Translation-en
Hit http://mirrors.digitalocean.com trusty-updates/universe Translation-en
Hit http://mirrors.digitalocean.com trusty-backports/main Sources
Hit http://mirrors.digitalocean.com trusty-backports/restricted Sources
Hit http://mirrors.digitalocean.com trusty-backports/universe Sources
Hit http://mirrors.digitalocean.com trusty-backports/multiverse Sources
Hit http://mirrors.digitalocean.com trusty-backports/main AMD64 Packages
Hit http://mirrors.digitalocean.com trusty-backports/restricted AMD64 Packages
Hit http://mirrors.digitalocean.com trusty-backports/universe AMD64 Packages
Hit http://mirrors.digitalocean.com trusty-backports/multiverse AMD64 Packages
Hit http://mirrors.digitalocean.com trusty-backports/main i386 Packages
Hit http://mirrors.digitalocean.com trusty-backports/restricted i386 Packages
Hit http://mirrors.digitalocean.com trusty-backports/universe i386 Packages
Hit http://mirrors.digitalocean.com trusty-backports/multiverse i386 Packages
Hit http://mirrors.digitalocean.com trusty-backports/main Translation-en
Hit http://mirrors.digitalocean.com trusty-backports/multiverse Translation-en
Hit http://mirrors.digitalocean.com trusty-backports/restricted Translation-en
Hit http://mirrors.digitalocean.com trusty-backports/universe Translation-en
Hit http://security.ubuntu.com trusty-security/main Sources
Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://security.ubuntu.com trusty-security/main AMD64 Packages
Hit http://security.ubuntu.com trusty-security/universe AMD64 Packages
Hit http://mirrors.digitalocean.com trusty/main Sources
Hit http://mirrors.digitalocean.com trusty/restricted Sources
Hit http://mirrors.digitalocean.com trusty/universe Sources
Hit http://mirrors.digitalocean.com trusty/multiverse Sources
Hit http://mirrors.digitalocean.com trusty/main AMD64 Packages
Hit http://mirrors.digitalocean.com trusty/restricted AMD64 Packages
Hit http://mirrors.digitalocean.com trusty/universe AMD64 Packages
Hit http://mirrors.digitalocean.com trusty/multiverse AMD64 Packages
Hit http://security.ubuntu.com trusty-security/main i386 Packages
Hit http://mirrors.digitalocean.com trusty/main i386 Packages
Hit http://mirrors.digitalocean.com trusty/restricted i386 Packages
Hit http://mirrors.digitalocean.com trusty/universe i386 Packages
Hit http://mirrors.digitalocean.com trusty/multiverse i386 Packages
Hit http://mirrors.digitalocean.com trusty/main Translation-en
Hit http://mirrors.digitalocean.com trusty/multiverse Translation-en
Hit http://security.ubuntu.com trusty-security/universe i386 Packages
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://mirrors.digitalocean.com trusty/restricted Translation-en
Hit http://mirrors.digitalocean.com trusty/universe Translation-en
Ign http://mirrors.digitalocean.com trusty/main Translation-en_US
Ign http://mirrors.digitalocean.com trusty/multiverse Translation-en_US
Ign http://mirrors.digitalocean.com trusty/restricted Translation-en_US
Ign http://mirrors.digitalocean.com trusty/universe Translation-en_US
Reading package lists... Error!
Voici le contenu de sources.list:
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
## or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl
#
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.digitalocean.com/ubuntu trusty main restricted
deb-src http://mirrors.digitalocean.com/ubuntu trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirrors.digitalocean.com/ubuntu trusty-updates main restricted
deb-src http://mirrors.digitalocean.com/ubuntu trusty-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mirrors.digitalocean.com/ubuntu trusty universe
deb-src http://mirrors.digitalocean.com/ubuntu trusty universe
deb http://mirrors.digitalocean.com/ubuntu trusty-updates universe
deb-src http://mirrors.digitalocean.com/ubuntu trusty-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://mirrors.digitalocean.com/ubuntu trusty multiverse
deb-src http://mirrors.digitalocean.com/ubuntu trusty multiverse
deb http://mirrors.digitalocean.com/ubuntu trusty-updates multiverse
deb-src http://mirrors.digitalocean.com/ubuntu trusty-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://mirrors.digitalocean.com/ubuntu trusty-backports main restricted universe multive$
deb-src http://mirrors.digitalocean.com/ubuntu trusty-backports main restricted universe mul$
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner
deb http://security.ubuntu.com/ubuntu trusty-security main
deb-src http://security.ubuntu.com/ubuntu trusty-security main
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
# deb http://security.ubuntu.com/ubuntu trusty-security multiverse
# deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse
Et voici les choses dans /var/log/apt/term.log:
Log started: 2017-05-29 01:21:39
Selecting previously unselected package libxslt1.1:AMD64.
(Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading databa$
Preparing to unpack .../libxslt1.1_1.1.28-2ubuntu0.1_AMD64.deb ...
Unpacking libxslt1.1:AMD64 (1.1.28-2ubuntu0.1) ...
Selecting previously unselected package nginx-common.
Preparing to unpack .../nginx-common_1.4.6-1ubuntu3.7_all.deb ...
Unpacking nginx-common (1.4.6-1ubuntu3.7) ...
Selecting previously unselected package nginx-core.
Preparing to unpack .../nginx-core_1.4.6-1ubuntu3.7_AMD64.deb ...
Unpacking nginx-core (1.4.6-1ubuntu3.7) ...
Selecting previously unselected package nginx.
Preparing to unpack .../nginx_1.4.6-1ubuntu3.7_all.deb ...
Unpacking nginx (1.4.6-1ubuntu3.7) ...
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libxslt1.1:AMD64 (1.1.28-2ubuntu0.1) ...
Setting up nginx-common (1.4.6-1ubuntu3.7) ...
Setting up nginx-core (1.4.6-1ubuntu3.7) ...
Setting up nginx (1.4.6-1ubuntu3.7) ...
Processing triggers for libc-bin (2.19-0ubuntu6.11) ...
Log ended: 2017-05-29 01:21:44
Log started: 2017-05-29 01:22:35
Selecting previously unselected package php5-fpm.
(Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading databa$
Preparing to unpack .../php5-fpm_5.5.9+dfsg-1ubuntu4.21_AMD64.deb ...
Unpacking php5-fpm (5.5.9+dfsg-1ubuntu4.21) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up php5-fpm (5.5.9+dfsg-1ubuntu4.21) ...
Creating config file /etc/php5/fpm/php.ini with new version
php5_invoke: Enable module json for fpm SAPI
php5_invoke: Enable module Gd for fpm SAPI
php5_invoke: Enable module mysqli for fpm SAPI
php5_invoke: Enable module pdo_mysql for fpm SAPI
php5_invoke: Enable module pdo for fpm SAPI
php5_invoke: Enable module opcache for fpm SAPI
php5_invoke: Enable module ssh2 for fpm SAPI
php5_invoke: Enable module readline for fpm SAPI
php5_invoke: Enable module mysql for fpm SAPI
php5-fpm start/running, process 7326
Processing triggers for ureadahead (0.100.0-16) ...
Log ended: 2017-05-29 01:22:37
Voici les journaux dans history.log dans le même répertoire:
Start-Date: 2017-05-29 01:21:39
Commandline: apt-get install nginx
Install: nginx-core:AMD64 (1.4.6-1ubuntu3.7, automatic), libxslt1.1:AMD64 (1.1.28-2ubuntu0.1$
End-Date: 2017-05-29 01:21:44
Start-Date: 2017-05-29 01:22:35
Commandline: apt-get install php5-fpm
Install: php5-fpm:AMD64 (5.5.9+dfsg-1ubuntu4.21)
End-Date: 2017-05-29 01:22:37
J'ai contacté DO support, voici leur replay:
Salut,
Merci de tendre la main! Est-ce que "Lecture des listes de paquets ... Erreur!" la seule erreur que vous voyez? Normalement, il y aura une autre ligne ou deux sorties qui donneront un peu plus de détails sur ce qui se passe et peuvent aider à réduire le problème.
Une cause possible, cependant, est susceptible d'être dans un état incohérent. Si vous exécutez ce qui suit pour effacer des données mises en cache localement, puis essayez de mettre à jour à nouveau, cela fonctionne-t-il alors?
Sudo mv /var/lib/apt/lists /var/lib/apt/lists.old
Sudo apt-get clean
Sudo apt-get update
Faites-nous savoir si cela fonctionne ou si nous pouvons aider avec autre chose!
Cordialement,
Nicholas C. Avocat du support de la plateforme Merci pour vos commentaires!
Je pense que je l'avais déplacé ou supprimé par erreur! Parce que c'est ce que j'ai eu:
aran@Aran:~$ Sudo mv /var/lib/apt/lists /var/lib/apt/lists.old
mv: cannot stat ‘/var/lib/apt/lists’: No such file or directory
Quoi qu'il en soit, mon problème est maintenant résolu après la commande de nettoyage.
Si vous allez à http://mirrors.digitalocean.com/ cela dit
Ce miroir est destiné à être utilisé avec les gouttelettes DigitalOcean.
et
Ce miroir est destiné à faciliter la mise à niveau des droplets DigitalOcean exécutant les versions antérieures d'Ubuntu en fin de vie.
À moins que vous n'utilisiez ce miroir spécifiquement, dans un but particulier, vous devriez changer votre référentiel.