Perbaiki repo error ubuntu 9.10  ncuptea blog

Perbaiki repo error ubuntu 9.10

Ubuntu 9.10 atau berkode nama Karmic Koala baik versi desktop ataupun server adalah realease End of Life (EOL) yang berarti ubuntu official akan berhenti mensupport lebih cepat daripada versi Long Term Server (LTS).

Efek paling terasa EOL ini bahwa kita akan mengalami error saat kita melakukan update etc. sudo apt-get update karena direktory repo untuk versi distribusi ubuntu yang kita pakai di sumbernya sendiri telah dipindahkan. Jadi untuk trouleshoot permasalahan repository karmic yang error berikut ini mungkin bisa membantu kalian :

Berikut ini ialah potongan output error saat melakukan sudo apt-get update :
Ign http://old-releases.ubuntu.com karmic-security/main Packages
Ign http://old-releases.ubuntu.com karmic-security/restricted Packages
Ign http://old-releases.ubuntu.com karmic-security/universe Packages
Ign http://old-releases.ubuntu.com karmic-security/multiverse Packages
Err http://old-releases.ubuntu.com karmic-security/main Packages
  404  Not Found
Err http://old-releases.ubuntu.com karmic-security/restricted Packages
  404  Not Found
Err http://old-releases.ubuntu.com karmic-security/universe Packages
  404  Not Found


Untuk memecahkan permasalahan diatas maka kita harus mengganti source repo yang di direktori /etc/apt/sources.list dalam sistem kita, eit jangan lupa backup dulu yah..langkahnya seperti berikut.

Backup sources.list sebelumnya :
sudo cp /etc/apt/sources.list /etc/apt/sources.list.asli

Ganti keseluruhan isi dari /etc/apt/sources.list dengan list di bawah ini :  
deb http://old-releases.ubuntu.com/ubuntu/dists karmic main restricted universe multiverse 
deb http://old-releases.ubuntu.com/ubuntu/dists karmic-updates main restricted universe multiverse 
deb http://old-releases.ubuntu.com/ubuntu/dists karmic-security main restricted universe multiverse 
deb http://old-releases.ubuntu.com/ubuntu/dists karmic-backports main restricted universe multiverse 
deb http://old-releases.ubuntu.com/ubuntu/dists karmic-proposed main restricted universe multiverse 
deb http://old-releases.ubuntu.com/ubuntu/dists karmic-updates main restricted universe multiverse 
deb http://old-releases.ubuntu.com/ubuntu/dists karmic main restricted universe multiverse

Lakukan update apt dan lihat hasilnya
sudo apt-get update


Sampai langkah ini seharusnya masalah error hilangnya repository versi ubuntu non LTS default sudah terpecahkan, namun jika menemui pesan kesalahan saat melakukan update apt seperti di bawah ini maka cara selanjutnya mungkin bisa membantu.

Error output setelah melakukan sudo apt-get update :
ncuptea@master:~$ sudo apt-get update
Hit http://old-releases.ubuntu.com karmic Release.gpg
Hit http://old-releases.ubuntu.com karmic-updates Release.gpg
Get:1 http://old-releases.ubuntu.com karmic-security Release.gpg [198B]
Get:2 http://old-releases.ubuntu.com karmic-backports Release.gpg [198B]
Get:3 http://old-releases.ubuntu.com karmic-proposed Release.gpg [198B]
Hit http://old-releases.ubuntu.com karmic Release
Hit http://old-releases.ubuntu.com karmic-updates Release
Get:4 http://old-releases.ubuntu.com karmic-security Release [51.3kB]
Get:5 http://old-releases.ubuntu.com karmic-backports Release [44.1kB]
Get:6 http://old-releases.ubuntu.com karmic-proposed Release [44.1kB]
Hit http://old-releases.ubuntu.com karmic/main Packages
Hit http://old-releases.ubuntu.com karmic/restricted Packages
Hit http://old-releases.ubuntu.com karmic/universe Packages
Hit http://old-releases.ubuntu.com karmic/multiverse Packages
Hit http://old-releases.ubuntu.com karmic-updates/main Packages
Hit http://old-releases.ubuntu.com karmic-updates/restricted Packages
Hit http://old-releases.ubuntu.com karmic-updates/universe Packages
Hit http://old-releases.ubuntu.com karmic-updates/multiverse Packages
Get:7 http://old-releases.ubuntu.com karmic-security/main Packages [229kB]
Get:8 http://old-releases.ubuntu.com karmic-security/restricted Packages [14B]
Get:9 http://old-releases.ubuntu.com karmic-security/universe Packages [102kB]
Get:10 http://old-releases.ubuntu.com karmic-security/multiverse Packages [7093B]
Get:11 http://old-releases.ubuntu.com karmic-backports/main Packages [70.0kB]
Fetched 621kB in 5s (115kB/s)
Reading package lists... Done
W: Duplicate sources.list entry http://old-releases.ubuntu.com karmic/main Packages (/var/lib/apt/lists/old-releases.ubuntu.com_ubuntu_dists_karmic_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://old-releases.ubuntu.com karmic/restricted Packages (/var/lib/apt/lists/old-releases.ubuntu.com_ubuntu_dists_karmic_restricted_binary-amd64_Packages)
W: Duplicate sources.list entry http://old-releases.ubuntu.com karmic/universe Packages (/var/lib/apt/lists/old-releases.ubuntu.com_ubuntu_dists_karmic_universe_binary-amd64_Packages)
W: Duplicate sources.list entry http://old-releases.ubuntu.com karmic/multiverse Packages (/var/lib/apt/lists/old-releases.ubuntu.com_ubuntu_dists_karmic_multiverse_binary-amd64_Packages)
W: Duplicate sources.list entry http://old-releases.ubuntu.com karmic-updates/restricted Packages (/var/lib/apt/lists/old-releases.ubuntu.com_ubuntu_dists_karmic-updates_restricted_binary-amd64_Packages)
W: Duplicate sources.list entry http://old-releases.ubuntu.com karmic-updates/universe Packages (/var/lib/apt/lists/old-releases.ubuntu.com_ubuntu_dists_karmic-updates_universe_binary-amd64_Packages)
W: Duplicate sources.list entry http://old-releases.ubuntu.com karmic-updates/multiverse Packages (/var/lib/apt/lists/old-releases.ubuntu.com_ubuntu_dists_karmic-updates_multiverse_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems

Untuk memperbaiki masalah duplikasi seperti error di atas sebagai berikut.
Hapus direktori /var/lib/apt/lists :  
sudo rm /var/lib/apt/lists

Buat kembali direktory yang baru saja kita hapus :  
sudo mkdir /var/lib/apt/lists

Kemudian :  
sudo mkdir /var/lib/apt/lists/partial

Selesai, silahkan update ulang apt kalian

No comments:

Facebook Blogger Plugin: Brought to by CITEUREUP FOUNDATION Enhanced by ncuptea

Post a Comment

Berkomentarlah dengan bijak untuk pengembangan dan sekaligus menjadi pembelajaran kita bersama.

Pilih Name/Url untuk mempermudah memasukan id anda!