web-dev-qa-db-fra.com

Ubuntu vérifie seulement 5 liens sur Sudo apt-get update

J'ai installé Ubuntu 16.04 LTS aujourd'hui, puis activé Univers en:

Sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"

Après cela j'ai couru:

Sudo apt-get update

et la liste a montré beaucoup de liens.

Après cela, j'ai exécuté le programme de mise à jour de logiciel qui s'est écrasé à mi-chemin. Après redémarrage, il a bien installé les mises à jour, mais après avoir redémarré à chaque fois que je lance apt-get update, 5 liens seulement apparaît à la place du 50 ~ 6 avant.

Les 5 liens sont:

aditya@Aditya-ASUS:~$ Sudo apt-get update
[Sudo] password for aditya: 
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Hit:3 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Get:4 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]   
Hit:5 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease  
Fetched 190 kB in 2s (71.2 kB/s)
Reading package lists... Done

Est-ce normal ou y a-t-il un problème?.

Voici mon Sources.list:

# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release AMD64 (20160420.1)]/ xenial main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://in.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://in.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://in.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ xenial universe
deb http://in.archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-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://in.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://in.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## 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://in.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

## 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 xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
deb http://archive.ubuntu.com/ubuntu xenial universe main multiverse restricted
# deb-src http://archive.ubuntu.com/ubuntu xenial main universe restricted multiverse
# deb-src http://archive.ubuntu.com/ubuntu xenial main universe restricted multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
4
Aditya

Sudo apt-get update récupère les index de la liste de paquets à partir de référentiels. Mais il le fait avec une commande, à la fois pour des raisons de sécurité et pour réduire la taille de téléchargement des index de packages.

Pour chaque référentiel ,

D'abord , il tente de faire correspondre l'heure de modification du fichier InRelease (qui est un fichier de signature Inline) dans le référentiel en ligne avec le une déjà téléchargée sur votre ordinateur (s'il y en a une).

  • S'il trouve que le fichier InRelease n'est pas modifié dans le référentiel en ligne, il ne procède pas au téléchargement du fichier d'index (Packages.gz, etc.), qui sont des index plus volumineux et réels, à condition qu'il soit déjà téléchargé dans ton ordinateur. Parce que la signature non modifiée signifie que le fichier d'index n'est pas modifié.

  • S'il constate que la date de modification du fichier InRelease est modifié, il obtiendra d'abord le fichier InRelease. Puis essayez à nouveau de faire correspondre la somme de contrôle (trouvée dans le fichier InRelease) de l'index déjà téléchargé. Si cela correspond, il ne téléchargera pas l'index. Sinon, télécharge l'index.

Il y a plus de choses faites en coulisse. Mais fondamentalement, dans votre cas, cela signifie que, puisque vous venez de mettre à jour la liste de paquets avec Sudo apt-get update, il est normal d’avoir une sortie plus courte plus tard, car pendant cette période plus courte, rien dans le référentiel n’a changé.

Cochez cette case pour plus d'informations:

2
Anwar

C'est un comportement normal, pas besoin de s'inquiéter. Pour une raison quelconque, il est extrêmement difficile de trouver de la documentation sur les modifications apportées par apt-get à apt, mais une modification a été apportée au cours du cycle de publication de la version 16.04 (ou peut-être de la version précédente, 15.10) pour basculer vers le nouvel outil apt. met à jour les sources qui sont différentes, je pense qu’il utilise des sommes de contrôle pour voir si les fichiers sources ont réellement changé.

3
warsong