el tamaño de las listas de actualizaciones de apt-get es demasiado grande


27

Esta pregunta contiene elusiones para un error en Ubuntu:

así como algunos consejos generales sobre cómo ahorrar ancho de banda cuando se realiza la actualización de apt-get.

Ese error se cerró el 8 de agosto de 2012, por lo que es posible que solo necesite la información relacionada con esta pregunta en caso de que vuelva a aparecer. Si eso sucede, presente otro informe de error en Launchpad.


Ejecuté una instalación limpia en Ubuntu 12.04 y hasta ahora todo ha funcionado bien. Encomio especialmente al equipo de Ubuntu por esta versión.

Solo noté que el tamaño de la actualización del repositorio ahora es de aproximadamente 13 MB. Normalmente, es aproximadamente de este tamaño la primera vez que se ejecuta apt-get updatedespués de una instalación limpia y luego ~ 23kb - 1300kb para actualizaciones posteriores.

La salida de apt-get updatees la misma que obtengo para versiones anteriores de Ubuntu (es bastante normal). Es un poco demasiado largo, pero mira un ejemplo de salida que obtuve de la ejecución apt-get update.

Ign http://archive.canonical.com precise InRelease
Ign http://dl.google.com stable InRelease
Ign http://dl.google.com stable InRelease
Ign http://ppa.launchpad.net precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Hit http://download.virtualbox.org precise InRelease
Ign http://security.ubuntu.com precise-security InRelease
Ign http://linux.dropbox.com precise InRelease
Ign http://extras.ubuntu.com precise InRelease
Ign http://download.skype.com stable InRelease
Hit http://archive.canonical.com precise Release.gpg
Get:1 http://dl.google.com stable Release.gpg [198 B]
Ign http://ppa.launchpad.net precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Ign http://ppa.launchpad.net oneiric InRelease
Ign http://ppa.launchpad.net precise InRelease
Get:2 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:3 http://extras.ubuntu.com precise Release.gpg [72 B]
Hit http://download.virtualbox.org precise/contrib i386 Packages
Ign http://download.skype.com stable Release.gpg
Hit http://linux.dropbox.com precise Release.gpg
Ign http://us.archive.ubuntu.com precise InRelease
Ign http://us.archive.ubuntu.com precise-updates InRelease
Ign http://us.archive.ubuntu.com precise-backports InRelease
Hit http://archive.canonical.com precise Release
Get:4 http://dl.google.com stable Release.gpg [198 B]
Ign http://ppa.launchpad.net oneiric InRelease
Ign http://ppa.launchpad.net oneiric InRelease
Ign http://ppa.launchpad.net precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://ppa.launchpad.net precise Release.gpg
Get:5 http://security.ubuntu.com precise-security Release [49.6 kB]
Hit http://extras.ubuntu.com precise Release
Ign http://download.skype.com stable Release
Ign http://download.virtualbox.org precise/contrib TranslationIndex
Get:6 http://us.archive.ubuntu.com precise Release.gpg [198 B]
Hit http://archive.canonical.com precise/partner i386 Packages
Hit http://linux.dropbox.com precise Release
Get:7 http://ppa.launchpad.net precise Release.gpg [316 B]
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://extras.ubuntu.com precise/main Sources
Get:8 http://ppa.launchpad.net precise Release.gpg [316 B]
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://ppa.launchpad.net precise Release.gpg
Get:9 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Ign http://archive.canonical.com precise/partner TranslationIndex
Ign http://download.skype.com stable/non-free i386 Packages/DiffIndex
Get:10 http://dl.google.com stable Release [1,347 B]
Hit http://linux.dropbox.com precise/main i386 Packages
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://ppa.launchpad.net oneiric Release.gpg
Hit http://extras.ubuntu.com precise/main i386 Packages
Ign http://extras.ubuntu.com precise/main TranslationIndex
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://ppa.launchpad.net oneiric Release.gpg
Hit http://ppa.launchpad.net oneiric Release.gpg
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://ppa.launchpad.net precise Release.gpg
Get:11 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]
Ign http://download.skype.com stable/non-free TranslationIndex
Get:12 http://dl.google.com stable Release [1,347 B]
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise Release
Ign http://linux.dropbox.com precise/main TranslationIndex
Hit http://ppa.launchpad.net precise Release
Ign http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise Release
Get:13 http://ppa.launchpad.net precise Release [11.9 kB]
Get:14 http://us.archive.ubuntu.com precise Release [49.6 kB]
Hit http://download.skype.com stable/non-free i386 Packages
Get:15 http://dl.google.com stable/main i386 Packages [1,268 B]
Ign http://dl.google.com stable/main TranslationIndex
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net oneiric Release
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net oneiric Release
Get:16 http://security.ubuntu.com precise-security/main Sources [7,089 B]
Hit http://ppa.launchpad.net oneiric Release
Get:17 http://dl.google.com stable/main i386 Packages [769 B]
Ign http://dl.google.com stable/main TranslationIndex
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Get:18 http://security.ubuntu.com precise-security/restricted Sources [14 B]
Get:19 http://security.ubuntu.com precise-security/universe Sources [3,653 B]
Get:20 http://security.ubuntu.com precise-security/multiverse Sources [696 B]
Get:21 http://security.ubuntu.com precise-security/main i386 Packages [32.9 kB]
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Get:22 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]
Ign http://ppa.launchpad.net precise/main Sources/DiffIndex
Ign http://ppa.launchpad.net precise/main i386 Packages/DiffIndex
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Get:23 http://security.ubuntu.com precise-security/restricted i386 Packages [14 B]
Get:24 http://security.ubuntu.com precise-security/universe i386 Packages [8,594 B]
Get:25 http://security.ubuntu.com precise-security/multiverse i386 Packages [1,393 B]
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Ign http://ppa.launchpad.net precise/main TranslationIndex
Get:26 http://us.archive.ubuntu.com precise-backports Release [49.6 kB]
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Get:27 http://ppa.launchpad.net precise/main i386 Packages [1,276 B]
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Get:28 http://us.archive.ubuntu.com precise/main Sources [934 kB]
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://ppa.launchpad.net precise/main i386 Packages
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://ppa.launchpad.net oneiric/main Sources
Hit http://ppa.launchpad.net oneiric/main i386 Packages
Ign http://ppa.launchpad.net oneiric/main TranslationIndex
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://ppa.launchpad.net oneiric/main Sources
Hit http://security.ubuntu.com precise-security/universe Translation-en
Ign http://archive.canonical.com precise/partner Translation-en_US
Hit http://ppa.launchpad.net oneiric/main i386 Packages
Ign http://ppa.launchpad.net oneiric/main TranslationIndex
Hit http://ppa.launchpad.net oneiric/main Sources
Hit http://ppa.launchpad.net oneiric/main i386 Packages
Ign http://ppa.launchpad.net oneiric/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Ign http://extras.ubuntu.com precise/main Translation-en_US
Ign http://download.virtualbox.org precise/contrib Translation-en_US
Ign http://archive.canonical.com precise/partner Translation-en
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Ign http://extras.ubuntu.com precise/main Translation-en
Ign http://download.virtualbox.org precise/contrib Translation-en
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Ign http://linux.dropbox.com precise/main Translation-en_US
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://download.skype.com stable/non-free Translation-en_US
Ign http://linux.dropbox.com precise/main Translation-en
Ign http://download.skype.com stable/non-free Translation-en
Ign http://dl.google.com stable/main Translation-en_US
Ign http://dl.google.com stable/main Translation-en
Ign http://dl.google.com stable/main Translation-en_US
Get:29 http://us.archive.ubuntu.com precise/restricted Sources [5,470 B]
Get:30 http://us.archive.ubuntu.com precise/universe Sources [5,019 kB]
Ign http://dl.google.com stable/main Translation-en
Get:31 http://us.archive.ubuntu.com precise/multiverse Sources [155 kB]
Get:32 http://us.archive.ubuntu.com precise/main i386 Packages [1,274 kB]
Get:33 http://us.archive.ubuntu.com precise/restricted i386 Packages [8,431 B]
Get:34 http://us.archive.ubuntu.com precise/universe i386 Packages [4,796 kB]
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net oneiric/main Translation-en_US
Ign http://ppa.launchpad.net oneiric/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net oneiric/main Translation-en_US
Ign http://ppa.launchpad.net oneiric/main Translation-en
Ign http://ppa.launchpad.net oneiric/main Translation-en_US
Ign http://ppa.launchpad.net oneiric/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Get:35 http://us.archive.ubuntu.com precise/multiverse i386 Packages [121 kB]
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Get:36 http://us.archive.ubuntu.com precise-updates/main Sources [31.2 kB]
Get:37 http://us.archive.ubuntu.com precise-updates/restricted Sources [765 B]
Get:38 http://us.archive.ubuntu.com precise-updates/universe Sources [10.1 kB]
Get:39 http://us.archive.ubuntu.com precise-updates/multiverse Sources [696 B]
Get:40 http://us.archive.ubuntu.com precise-updates/main i386 Packages [96.5 kB]
Get:41 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [770 B]
Get:42 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [27.7 kB]
Get:43 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [1,393 B]
Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex
Get:44 http://us.archive.ubuntu.com precise-backports/main Sources [700 B]
Get:45 http://us.archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:46 http://us.archive.ubuntu.com precise-backports/universe Sources [1,680 B]
Get:47 http://us.archive.ubuntu.com precise-backports/multiverse Sources [14 B]
Get:48 http://us.archive.ubuntu.com precise-backports/main i386 Packages [559 B]
Get:49 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:50 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [1,391 B]
Get:51 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [14 B]
Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
Fetched 12.8 MB in 1min 33s (137 kB/s)

¿Es esta una nueva característica en 12.04? O, si no es intencional, ¿hay alguna manera de que pueda solucionar esto? Gracias.


2
¿Podrías editar tu pregunta para proporcionar lo que ves cuando corres apt-get update? Por cierto, si tiene el código fuente marcado en el administrador de actualizaciones, desmarcarlo ayudará. En mi caso, redujo el tamaño de ~ 13 a ~ 6 MB.

44
Eso no lo arregla. El problema parece ser que apt-get updatevuelve a cargar la memoria caché para cada repositorio en lugar de actualizaciones incrementales como @izx establece a continuación.
dumb906

2
Fijo. Ver el error

2
Verifiqué la solución al intentar apt-get nuevamente, y examiné muchas de las fechas del repositorio archive.ubuntu.com, están de vuelta a la normalidad.
John S Gruber

1
Esta pregunta parece estar fuera de tema porque se trata de un error que ahora está resuelto. La respuesta no debe seguirse ya que el caso de uso ya no existe. Solo está aquí como valor histórico, y debe verse como tal. Puede ser útil como experiencia para el mismo problema en el futuro, pero la respuesta puede no ser precisa.
Alvar

Respuestas:


29

Creo que hay un par de cosas que vale la pena señalar aquí.

Mirando los mismos archivos us.archive.ubuntu.com o archive.ubuntu.com, puede ver que los archivos Package.bz2 de distribución principal y universal se marcan como modificados dos veces por hora, a pesar de que contienen el mismo contenido. Estos repositorios están realmente congelados. Como contienen entradas para cada paquete en main y universe, esto hace que la descarga promedio sea muy grande. Esto hace que el servidor envíe apt-get updateun archivo de paquete enorme de nuevo a pesar de que nada ha cambiado realmente. El archivo del paquete contiene el número de versión y la descripción de la versión más actual de cada paquete en el repositorio. Los archivos de lanzamiento reales contienen la fecha y la hora del último cambio real.

chilicuil ha presentado amablemente un informe de error para esto y al momento de escribir esto se cree que es un problema con los mecanismos de duplicación de archivos de Ubuntu. Gracias chilicuil. El error está en http://bugs.launchpad.net/launchpad/+bug/1001780

Tenga en cuenta que este error se ha cerrado, por lo que la siguiente elusión ya no debería ser necesaria o utilizada:

Dado que los repositorios afectados son los repositorios de distribución que no cambian, un enfoque para sortear este problema es ejecutar los siguientes comandos inmediatamente antes de ejecutarlos sudo apt-get update. Asegúrese de ajustarlos para el nombre del sitio de archivo que utiliza, así como el nombre de la versión que está utilizando. No todos necesitarán los cuatro comandos: vea los comentarios al final de los comandos. No los use para la versión de desarrollo.

  • sudo touch /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages
  • sudo touch /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise_universe_binary-i386_Packages # If you have enabled Ubuntu Universe
  • sudo touch /var/lib/apt/list/us.archive.ubuntu.com_ubuntu_dists_precise_main_source_Sources # If you have enabled sources
  • sudo touch /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise_universe_source_Sources # If you have enabled both Universe and sources

Estos comandos le dicen al sistema que estos archivos están actualizados al actualizar la hora en los archivos de almacenamiento. No ejecute estos comandos en otros repositorios, o después de corregir el error.

Ahora que se ha solucionado el problema , puede tener sentido considerar cómo reducir aún más el ancho de banda cuando se ejecuta apt-get si lo ejecuta regularmente y tiene una conexión a Internet lenta o costosa.

  1. Puede tener sentido ejecutar la actualización con menos frecuencia o, de manera equivalente, elegir un repositorio que se actualice con menos frecuencia que los principales.

  2. Muchos incluyen los repositorios "fuente" en su lista de fuentes de software. Esto es útil para hacer apt-get source packagename , pero puede ser algo anticuado.

    A menos que obtenga la fuente todos los días, puede considerar eliminar la configuración de la fuente, habilitarla nuevamente y realizar una actualización solo cuando desee descargar alguna fuente. La fuente de varios paquetes siempre está cambiando, por lo que el índice que se descargará siempre cambia también.

    También puede considerar usar Ubuntu Distributed Development para paquetes más pequeños, usando bazaar. En otras palabras:

    bzr branch lp: ubuntu / sourcename

    Esto descarga la fuente del paquete y su historial, en forma comprimida. Este historial para paquetes más grandes puede tener muchos megabytes, por lo que es posible que desee restringir esta estrategia a paquetes pequeños. Si puede usar esto en lugar de "apt-get source packagename ", puede mantener los repositorios de origen fuera de su lista de repositorios por completo.


Estoy de acuerdo con esta respuesta Ubuntu 12.04 acaba de ser lanzado y, por lo tanto, hay una actividad sostenida en el lanzamiento de mejoras y correcciones de errores. De ahí el consumo anormal de ancho de banda. Mi consejo es pagar el precio y actualizar normalmente.
Avio

2
Este parece ser el refrán común, pero la "actividad sostenida" no puede explicar por qué las personas han experimentado este problema en Mint 11 y 12, 11.10 además de 12.04 (Tenga en cuenta que siempre he tenido estas grandes recuperaciones desde principios de alfa de 12.04 ) Por favor, eche un vistazo a los enlaces que figuran en los comentarios en otra parte sobre esta pregunta. Básicamente, el problema es este: las personas que usan apt-get update varias veces al día encuentran grandes recuperaciones de 10-20MB. Obviamente no hay tanta actividad. Estoy empezando a pensar que un informe de error es la respuesta correcta aquí.
Chan-Ho Suh

1
Estoy completamente de acuerdo con Chan-HoSuh, esto solo puede explicarse por un error. (Me estoy volviendo loco con este tipo de ... en un lanzamiento de LTS). Esta no es una respuesta. Ejecuté el comando sudo apt-get updatecon un intervalo de 1 hora, y nuevamente descarga todos los archivos de índice.
Anwar

2
@ Chan-HoSuh Sucede un montón durante la alfa / beta porque el archivo siempre está cambiando, por lo que se espera antes del lanzamiento.
Jorge Castro

77
Seguí adelante e informé el error: bugs.launchpad.net/launchpad/+bug/1001780
Javier López

8

¡Intenté cambiarme a un espejo en lugar de usarlo us.archive.ubuntu.comy ha solucionado el problema! Con el servidor Ubuntu habitual, descubrí que solo comprobando media hora más tarde obtendría otro ~ 13MB de recuperación apt-get update; sin embargo, con el espejo, se ha reducido a <1 MB.

Básicamente lo que hice fue abrir /etc/apt/sources.listy reemplazar:

deb http://us.archive.ubuntu.com/ubuntu precise main restricted universe multiverse

con

deb http://us-west-1.ec2.archive.ubuntu.com.s3.amazonaws.com/ubuntu precise main restricted universe multiverse

No sé si hay algo especial en los espejos de Amazon S3, pero puede ubicar un espejo cerca de usted y ver si eso ayuda. La primera búsqueda fue grande (~ 16 MB) pero las siguientes fueron <1 MB.


Tomé el archivo Packages.bz2 de ese repositorio y no ha sido actualizado por un tiempo. Última modificación: martes, 24 de abril de 2012 17:03:15 GMT es el encabezado devuelto desde wget -v -S http://us-west-1.ec2.archive.ubuntu.com.s3.amazonaws.com/ubuntu/dists/precise/universe/binary-i386/Packages.bz2Dado que no se actualiza regularmente, no hay nada nuevo que descargar de él.
John S Gruber

¿Cuándo notó este problema por primera vez?
John S Gruber

Me informaron que los servidores respaldados por S3 están teniendo problemas en este momento. He notado estas grandes recuperaciones desde principios de 12.04 alfa (no estaba en Oneiric el tiempo suficiente para notarlo).
Chan-Ho Suh

99
Seguí adelante e informé
Javier López

3
Hola John. Gracias por todo tu trabajo. Con respecto a lo que tal vez sea una trivialidad, me gustaría recompensar a @chilicuil de alguna manera, pero como él no ha publicado una respuesta y la suya es la respuesta más informativa, creo que recompensaré la recompensa.
Chan-Ho Suh

5

Una solución alternativa para actualizar solo el archivo de índice interesado:

La mayoría de las veces, actualizamos la lista de paquetes para agregar un PPA. así que esta es una solución para eso

  1. Cree un archivo como /etc/apt/apt.conf.d/99mysettingsy
    ponga esta línea en el archivo. Apt::Get::List-Cleanup 'false';.

    Cómo ? : Escribe esto en una terminal sudo gedit /etc/apt/apt.conf.d/99mysettings.

    Explicación: Hace que apt-getno se eliminen los archivos de índice que ya están descargados.

  2. Deshabilite los repositorios que no desea actualizar ahora. Puede ir aquí para ver cómo puede deshabilitar los repositorios .

  3. Luego ejecute el apt-get updatecomando en una terminal. espera hasta que termine

  4. Finalmente, vuelva a habilitar todos los repositorios que haya deshabilitado hace unos minutos. Ahora ha actualizado el índice PPA con todos los índices anteriores.

Espero que esto ayude.


He agregado esto a otra pregunta. Pero pensé que puede ayudar en esta situación también. Estoy usando esto y agregué muchos PPA sin descargar esas cosas enormes
Anwar


-5

Intente ir a su administrador de actualizaciones y elimine algunos ppa. Algunos ppa como spotify no son realmente importantes porque funciona como debería y ya está instalado en mi computadora portátil, así que no necesito ese ppa (solo un ejemplo).

PPA

Solo trata de eliminar algunos PPA.


44
sí, como eliminar el repositorio de desactivación de fuentes. pero los principales culpables parecen ser los repositorios oficiales de ubuntu. Gracias pero no lo resuelve.
dumb906
Al usar nuestro sitio, usted reconoce que ha leído y comprende nuestra Política de Cookies y Política de Privacidad.
Licensed under cc by-sa 3.0 with attribution required.