#1. Kesalahan mirroring saat update upgrade sistem
composer@mail:~$ sudo apt update
Hit:1 http://cermin.rumahweb.id/ubuntu noble InRelease
Get:2 http://cermin.rumahweb.id/ubuntu noble-updates InRelease [126 kB]
Hit:3 http://cermin.rumahweb.id/ubuntu noble-backports InRelease
Hit:4 http://cermin.rumahweb.id/ubuntu noble-security InRelease
Hit:5 https://download.docker.com/linux/ubuntu noble InRelease
Ign:6 http://cermin.rumahweb.id/ubuntu noble-updates/main amd64 Packages
Get:7 http://cermin.rumahweb.id/ubuntu noble-updates/main Translation-en [331 kB]
Get:8 http://cermin.rumahweb.id/ubuntu noble-updates/main amd64 Components [175 kB]
Get:9 http://cermin.rumahweb.id/ubuntu noble-updates/main amd64 c-n-f Metadata [16.5 kB]
Get:10 http://cermin.rumahweb.id/ubuntu noble-updates/restricted amd64 Packages [2,735 kB]
Get:11 http://cermin.rumahweb.id/ubuntu noble-updates/restricted Translation-en [630 kB]
Get:12 http://cermin.rumahweb.id/ubuntu noble-updates/restricted amd64 Components [212 B]
Get:13 http://cermin.rumahweb.id/ubuntu noble-updates/universe amd64 Packages [1,557 kB]
Get:14 http://cermin.rumahweb.id/ubuntu noble-updates/universe Translation-en [316 kB]
Get:15 http://cermin.rumahweb.id/ubuntu noble-updates/universe amd64 Components [386 kB]
Get:16 http://cermin.rumahweb.id/ubuntu noble-updates/universe amd64 c-n-f Metadata [32.7 kB]
Get:17 http://cermin.rumahweb.id/ubuntu noble-updates/multiverse amd64 Components [940 B]
Get:6 http://cermin.rumahweb.id/ubuntu noble-updates/main amd64 Packages [1,800 kB]
Err:6 http://cermin.rumahweb.id/ubuntu noble-updates/main amd64 Packages
File has unexpected size (1799648 != 1799660). Mirror sync in progress? [IP: 202.10.34.6 80]
Hashes of expected file:
- Filesize:1799660 [weak]
- SHA256:d8b63acfedf52e48ea28dec2479238c1796189a26b7d3306209c3de23e9acedc
- SHA1:7985814a4ad5fc7d735246a4c42c5c16b40e1f5d [weak]
- MD5Sum:797b7cec9b33ddab1ccf1f68dbe0e5c1 [weak]
Release file created at: Thu, 26 Feb 2026 01:16:17 +0000
Reading package lists... Done
E: Failed to fetch http://cermin.rumahweb.id/ubuntu/dists/noble-updates/main/binary-amd64/Packages.xz File has unexpected size (1799648 != 1799660). Mirror sync in progress? [IP: 202.10.34.6 80]
Hashes of expected file:
- Filesize:1799660 [weak]
- SHA256:d8b63acfedf52e48ea28dec2479238c1796189a26b7d3306209c3de23e9acedc
- SHA1:7985814a4ad5fc7d735246a4c42c5c16b40e1f5d [weak]
- MD5Sum:797b7cec9b33ddab1ccf1f68dbe0e5c1 [weak]
Release file created at: Thu, 26 Feb 2026 01:16:17 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
Analisis Masalah
Error utama pada output Anda:
File has unexpected size ... Mirror sync in progress?
Serta:
E: Failed to fetch ... Packages.xz File has unexpected size
Ini menunjukkan bahwa masalah bukan disebabkan oleh jaringan Anda, melainkan karena mirror repository yang digunakan sedang tidak sinkron (mirror sync belum selesai).
Anda menggunakan mirror:
http://cermin.rumahweb.id/ubuntu
Mirror tersebut kemungkinan sedang melakukan sinkronisasi paket noble-updates, sehingga terjadi ketidaksesuaian antara:
- Metadata (Release file)
- File Packages.xz yang diunduh
APT melakukan verifikasi hash dan ukuran file untuk menjaga integritas paket. Jika ukuran file berbeda walaupun sedikit (seperti pada log Anda: 1799648 != 1799660), maka APT akan menolak file tersebut demi keamanan.
Penyebab Teknis
Alur kerja apt update:
- Mengunduh metadata repository (Release file)
- Mengunduh daftar paket (Packages.xz)
- Memverifikasi hash dan ukuran file
Jika mirror sedang dalam proses sinkronisasi:
- Metadata sudah versi baru
- File paket masih versi lama (atau sebaliknya)
Akibatnya terjadi mismatch hash dan muncul error “unexpected size”.
Bukan Disebabkan Oleh
- Koneksi internet Anda
- Konfigurasi server yang salah
- Kerusakan sistem Ubuntu
- Error pada VPS
Log Anda secara eksplisit menyebutkan:
Mirror sync in progress
Ini adalah indikator kuat bahwa sumber masalah ada pada mirror repository.
Solusi yang Direkomendasikan
Opsi 1 (Disarankan): Ganti ke Official Ubuntu Mirror
Ini solusi paling stabil, terutama untuk server produksi (Nginx, Docker, web hosting, dll).
Edit file sources:
sudo nano /etc/apt/sources.list
Ganti semua baris:
http://cermin.rumahweb.id/ubuntu
Menjadi:
http://archive.ubuntu.com/ubuntu
Atau alternatif stabil:
http://mirrors.edge.kernel.org/ubuntu
Kemudian bersihkan cache APT:
sudo apt clean
sudo rm -rf /var/lib/apt/lists/*
sudo apt update
Opsi 2: Tunggu Sinkronisasi Mirror Selesai
Karena ini murni masalah mirror sync, Anda juga bisa:
- Menunggu 10–60 menit
- Menjalankan ulang
apt updatesetelah beberapa waktu
Namun opsi ini kurang ideal untuk server yang digunakan secara aktif.
Rekomendasi Khusus untuk Server (Production)
Karena Anda menjalankan:
- Nginx
- Docker
- Web server / layanan produksi
Sebaiknya gunakan mirror resmi:
archive.ubuntu.comsecurity.ubuntu.com
Alasan:
- Lebih konsisten saat update keamanan
- Minim error hash mismatch
- Lebih stabil untuk automated update dan hardening sistem
- Tidak bergantung pada status sinkronisasi mirror lokal